// Decompiled with JetBrains decompiler
// Type: A.m
// 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 Microsoft.Win32;
using System;

#nullable disable
namespace A;

internal static class m
{
  private static readonly DateTime Ci = new DateTime(2026, 7, 31 /*0x1F*/, 11, 11, 11, (DateTimeKind) 1);

  internal static void A()
  {
    DateTime dateTime = J.A();
    bool flag1 = m.a();
    int num1 = N.B() ? 1 : 0;
    bool flag2 = DateTime.op_GreaterThan(dateTime, m.Ci);
    int num2 = flag2 ? 1 : 0;
    if ((num1 | num2) != 0 && !flag1 && !i.A())
      throw new Exception(flag2 ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FB() + Environment.NewLine + Environment.NewLine + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fa() : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FA() + Environment.NewLine + Environment.NewLine + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fa());
  }

  private static bool a()
  {
    try
    {
      using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fb()))
        return registryKey != null && registryKey.GetValue(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FC()) is 1;
    }
    catch (Exception ex)
    {
      return false;
    }
  }
}
