// Decompiled with JetBrains decompiler
// Type: A.k
// 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.Runtime.CompilerServices;
using System.Runtime.InteropServices;

#nullable enable
namespace A;

internal sealed class k
{
  private static readonly IntPtr CD = new IntPtr(-1);
  private const string Cd = "{00AAC56B-CD44-11d0-8CC2-00C04FC295EE}";

  [DllImport("wintrust.dll", EntryPoint = "WinVerifyTrust", CharSet = (CharSet) 3)]
  private static extern WinVerifyTrustResult A([In] IntPtr _param0, [MarshalAs((UnmanagedType) 43), In] Guid _param1, [In] K _param2);

  internal static string A([In] string obj0)
  {
    j j = (j) null;
    K k = (K) null;
    try
    {
      Guid guid = new Guid(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.W());
      j = new j(obj0);
      k = new K(j);
      WinVerifyTrustResult verifyTrustResult = k.A(k.CD, guid, k);
      string str;
      switch (verifyTrustResult)
      {
        case WinVerifyTrustResult.Success:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.cY();
          break;
        case WinVerifyTrustResult.SignatureOrFileCorrupt:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.ei();
          break;
        case WinVerifyTrustResult.ProviderUnknown:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eJ();
          break;
        case WinVerifyTrustResult.ActionUnknown:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.ej();
          break;
        case WinVerifyTrustResult.FileNotSigned:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eG();
          break;
        case WinVerifyTrustResult.SubjectCertExpired:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eg();
          break;
        case WinVerifyTrustResult.UntrustedRoot:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eh();
          break;
        case WinVerifyTrustResult.SubjectCertificateRevoked:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eH();
          break;
        case WinVerifyTrustResult.SubjectExplicitlyDistrusted:
          str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eI();
          break;
        default:
          DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(18, 1);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eK());
          interpolatedStringHandler.AppendFormatted<uint>((uint) verifyTrustResult, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.ek());
          str = interpolatedStringHandler.ToStringAndClear();
          break;
      }
      return str;
    }
    finally
    {
      j?.Dispose();
      k?.Dispose();
    }
  }

  private k()
  {
  }
}
