// Decompiled with JetBrains decompiler
// Type: A.D
// Assembly: RansomGuard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 37652FF6-4FF5-4E76-944D-E6CA5073036F
// Assembly location: RansomGuard.dll inside C:\Users\WDAGUtilityAccount\Desktop\RansomGuard.exe)

using \u003CPrivateImplementationDetails\u003E\u007B29195D03\u002D3E0A\u002D468D\u002DA5D2\u002D1BA9D027086D\u007D;
using RansomGuard;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

#nullable enable
namespace A;

internal static class D
{
  private static readonly HashSet<string> aT;

  private static string? A([In] string? obj0)
  {
    if (string.IsNullOrWhiteSpace(obj0))
      return (string) null;
    try
    {
      string fileName = Path.GetFileName(obj0);
      return string.IsNullOrWhiteSpace(fileName) ? (string) null : fileName;
    }
    catch
    {
      return (string) null;
    }
  }

  public static bool A(string? processPath, [In] RansomGuardConfig obj1)
  {
    string str = D.A(processPath);
    return str != null && (D.aT.Contains(str) || obj1.LolBinAdditionalExecutables != null && (obj1.LolBinAdditionalExecutables.Contains(str) || obj1.LolBinAdditionalExecutables.Contains(processPath ?? string.Empty)));
  }

  public static bool a(string? parentPath, [In] RansomGuardConfig obj1)
  {
    string str = D.A(parentPath);
    if (str == null)
      return false;
    HashSet<string> parentExecutables = obj1.LolBinSafeParentExecutables;
    return parentExecutables != null && parentExecutables.Count != 0 && (parentExecutables.Contains(str) || !string.IsNullOrWhiteSpace(parentPath) && parentExecutables.Contains(parentPath));
  }

  public static string A([In] string? obj0, [In] string? obj1, [In] string? obj2, [In] string? obj3)
  {
    if (obj0 == null)
      obj0 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DE();
    if (obj2 == null)
      obj2 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DE();
    DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(9, 4);
    interpolatedStringHandler.AppendFormatted(obj0);
    interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.De());
    interpolatedStringHandler.AppendFormatted(obj1 ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DF());
    interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Df());
    interpolatedStringHandler.AppendFormatted(obj2);
    interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.De());
    interpolatedStringHandler.AppendFormatted(obj3 ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DF());
    interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DG());
    return interpolatedStringHandler.ToStringAndClear();
  }

  static D()
  {
    HashSet<string> stringSet = new HashSet<string>((IEqualityComparer<string>) StringComparer.OrdinalIgnoreCase);
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dg());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DH());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dh());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DI());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Di());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DJ());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dj());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DK());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dk());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DL());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dl());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DM());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dm());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DN());
    stringSet.Add(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dn());
    D.aT = stringSet;
  }
}
