// Decompiled with JetBrains decompiler
// Type: A.N
// 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 System;
using System.Net.Http;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;

#nullable enable
namespace A;

internal static class N
{
  private static readonly Uri CJ = new Uri(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FD());

  internal static Version A()
  {
    return Assembly.GetExecutingAssembly().GetName().Version ?? new Version(1, 0, 0, 0);
  }

  internal static Version? a()
  {
    try
    {
      using (HttpClient httpClient = J.A(J.A.ec))
      {
        using (CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(J.A.ec))
        {
          Task<string> stringAsync = httpClient.GetStringAsync(N.CJ, cancellationTokenSource.Token);
          ((Task) stringAsync).Wait(cancellationTokenSource.Token);
          Version version;
          return Version.TryParse(stringAsync.Result.Trim().Replace(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.r(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.O()).Replace(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fc(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.O()).Trim(), ref version) ? version : (Version) null;
        }
      }
    }
    catch (Exception ex)
    {
      return (Version) null;
    }
  }

  internal static bool B()
  {
    Version version1 = N.A();
    Version version2 = N.a();
    return Version.op_Inequality(version2, (Version) null) && Version.op_GreaterThan(version2, version1);
  }
}
