// 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 Microsoft.Management.Infrastructure;
using RansomGuard;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

#nullable enable
namespace A;

internal class n : Form
{
  private readonly NotifyIcon Cj;
  private RansomGuardConfig CK;
  private A.A Ck;
  private bool CL;
  private static readonly string Cl = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GQ();
  private static readonly string CM = Path.Combine(A.n.Cl, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gq());
  private static readonly string Cm = Path.Combine(A.n.Cl, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GR());
  private readonly SynchronizationContext CN;
  private Panel Cn;
  private DataGridView CO;
  private ContextMenuStrip Co;
  private ToolStrip CP;
  private ToolStripComboBox Cp;
  private ToolStripTextBox CQ;
  private ToolStripButton Cq;
  private ToolStripButton CR;
  private ToolStripButton Cr;
  private ToolStripButton CS;
  private O Cs;
  private ToolStripControlHost CT;
  private A.n.LogViewMode Ct = A.n.LogViewMode.Security;
  private string CU = string.Empty;
  private bool Cu;
  private const string CV = "Search (Ctrl+F)...";
  private bool Cv;
  private bool CW;
  private readonly Queue<A.e> Cw = new Queue<A.e>();
  private const int CX = 5000;
  private bool Cx;
  private System.Windows.Forms.Timer? CY;
  private int Cy = -1;
  private const int CZ = 1000;
  private int Cz;
  private DateTime cA;
  private bool ca;
  private const int cB = 9;
  private const int cb = 400;
  private Image? cC;
  private Image? cc;
  private Image? cD;
  private Image? cd;
  private P? cE;
  private readonly System.Windows.Forms.Timer ce = new System.Windows.Forms.Timer()
  {
    Interval = 500
  };
  private (int Row, int Col)? cF;
  private static readonly ConcurrentDictionary<int, (string Chain, DateTime Timestamp)> cf = new ConcurrentDictionary<int, (string, DateTime)>();
  private static readonly TimeSpan cG = TimeSpan.FromMinutes(1.0);
  private 
  #nullable disable
  IContainer cg;

  internal n()
  {
    this.l();
    using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fd()))
    {
      if (manifestResourceStream != null)
        this.Icon = new Icon(manifestResourceStream);
      this.ce.Tick += new EventHandler(this.b);
      this.KeyPreview = true;
      this.KeyDown += new KeyEventHandler(this.A);
      this.CN = SynchronizationContext.Current ?? new SynchronizationContext();
      if (!Directory.Exists(A.n.Cl))
        Directory.CreateDirectory(A.n.Cl);
      this.CL = !File.Exists(A.n.CM);
      this.CK = RansomGuardConfig.A(A.n.CM);
      if (!File.Exists(A.n.CM))
        this.CK.a(A.n.CM);
      this.a();
      this.b();
      this.Cj = this.D();
      if (!this.CL)
      {
        this.Opacity = 0.0;
        this.Visible = false;
        this.WindowState = FormWindowState.Minimized;
        this.ShowInTaskbar = false;
      }
      else
        this.Cj.ShowBalloonTip(0, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FE(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fe(), ToolTipIcon.None);
      this.Ck = new A.A(this.CK);
      this.Ck.FileOperationDetected += new EventHandler<A.e>(this.A);
      this.Ck.ThreatDetected += new EventHandler<A.f>(this.A);
      Task.Run((Action) (() =>
      {
        try
        {
          Thread.Sleep(500);
          this.Ck.A();
        }
        catch
        {
        }
      }));
    }
  }

  protected virtual void OnHandleCreated([In] 
  #nullable enable
  EventArgs obj0)
  {
    this.OnHandleCreated(obj0);
    this.k();
  }

  protected virtual void OnLoad([In] EventArgs obj0)
  {
    this.OnLoad(obj0);
    if (this.CK.WindowLeft.HasValue && this.CK.WindowTop.HasValue && this.CK.WindowWidth.HasValue && this.CK.WindowHeight.HasValue)
      this.StartPosition = FormStartPosition.Manual;
    else
      this.StartPosition = FormStartPosition.CenterScreen;
  }

  protected virtual void OnShown([In] EventArgs obj0_1)
  {
    this.OnShown(obj0_1);
    if (this.CK.WindowLeft.HasValue && this.CK.WindowTop.HasValue && this.CK.WindowWidth.HasValue && this.CK.WindowHeight.HasValue)
    {
      this.StartPosition = FormStartPosition.Manual;
      this.Location = new Point(this.CK.WindowLeft.Value, this.CK.WindowTop.Value);
      int? nullable = this.CK.WindowWidth;
      int num1 = nullable.Value;
      nullable = this.CK.WindowHeight;
      int num2 = nullable.Value;
      this.Size = new Size(num1, num2);
      if (!Enumerable.Any<Screen>((IEnumerable<Screen>) Screen.AllScreens, (Func<Screen, bool>) (([In] obj0_2) => obj0_2.WorkingArea.IntersectsWith(new Rectangle(this.Location, this.Size)))))
      {
        this.StartPosition = FormStartPosition.CenterScreen;
        this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Left + 100, Screen.PrimaryScreen.WorkingArea.Top + 100);
      }
      if (this.WindowState != FormWindowState.Normal)
        this.WindowState = FormWindowState.Normal;
    }
    if (this.CK.LastWindowState.GetValueOrDefault() == FormWindowState.Maximized)
      this.WindowState = FormWindowState.Maximized;
    this.k();
    Task.Run((Func<Task>) (async () => await this.K()));
  }

  public void A()
  {
    if (this.Cj != null)
    {
      this.Cj.BalloonTipTitle = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.A();
      this.Cj.BalloonTipText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FF();
      this.Cj.BalloonTipIcon = ToolTipIcon.Info;
      this.Cj.ShowBalloonTip(3000);
      this.Cj.BalloonTipClicked -= new EventHandler(this.A);
      this.Cj.BalloonTipClicked += new EventHandler(this.A);
    }
    if (this.WindowState != FormWindowState.Minimized)
      return;
    this.WindowState = FormWindowState.Normal;
    this.Show();
    this.Activate();
  }

  private void A(object? sender, [In] EventArgs obj1)
  {
    this.WindowState = FormWindowState.Normal;
    this.Show();
    this.Activate();
    this.BringToFront();
  }

  private void a()
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.c c1 = new A.n.c();
    // ISSUE: reference to a compiler-generated field
    c1.eV = this;
    ToolStrip toolStrip = new ToolStrip();
    toolStrip.GripStyle = ToolStripGripStyle.Hidden;
    toolStrip.Dock = DockStyle.Top;
    toolStrip.BackColor = A.b.ac;
    toolStrip.RenderMode = ToolStripRenderMode.ManagerRenderMode;
    toolStrip.Height = 40;
    this.CP = toolStrip;
    this.CP.Renderer = (ToolStripRenderer) new A.n.a();
    ToolStripComboBox toolStripComboBox = new ToolStripComboBox();
    toolStripComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
    toolStripComboBox.AutoSize = false;
    toolStripComboBox.Width = 250;
    toolStripComboBox.BackColor = A.b.aD;
    toolStripComboBox.ForeColor = Color.White;
    toolStripComboBox.Margin = (Padding) new Padding(5, 0, 13, 0);
    this.Cp = toolStripComboBox;
    this.Cp.Items.AddRange((object[]) new string[3]
    {
      F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ff(),
      F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FG(),
      F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fg()
    });
    this.Cp.AutoSize = false;
    this.Cp.ComboBox.Width = 250;
    this.Cp.ComboBox.DropDownWidth = 250;
    this.Cp.SelectedIndex = 1;
    this.Cp.SelectedIndexChanged += new EventHandler(this.E);
    this.Cp.ComboBox.BackColor = A.b.aD;
    this.Cp.ComboBox.ForeColor = Color.White;
    this.Cp.ComboBox.FlatStyle = FlatStyle.Flat;
    ToolStripTextBox toolStripTextBox = new ToolStripTextBox();
    toolStripTextBox.AutoSize = false;
    toolStripTextBox.Width = 300;
    toolStripTextBox.ToolTipText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FH();
    toolStripTextBox.BackColor = A.b.aD;
    toolStripTextBox.ForeColor = Color.White;
    toolStripTextBox.BorderStyle = BorderStyle.None;
    toolStripTextBox.Margin = (Padding) new Padding(12, 0, 13, 0);
    this.CQ = toolStripTextBox;
    this.CQ.TextChanged += new EventHandler(this.e);
    this.CQ.Enter += new EventHandler(this.F);
    this.CQ.Leave += new EventHandler(this.f);
    this.Cu = true;
    this.CQ.ForeColor = Color.Gray;
    this.CQ.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fh();
    // ISSUE: variable of a compiler-generated type
    A.n.c c2 = c1;
    Button button = new Button();
    button.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FI();
    button.Font = new Font(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fi(), 11f, FontStyle.Bold);
    button.ForeColor = Color.Gray;
    button.BackColor = A.b.aD;
    button.FlatStyle = FlatStyle.Flat;
    button.Width = 18;
    button.Height = this.CQ.Control.Height;
    button.Cursor = Cursors.Hand;
    button.Visible = false;
    button.TabStop = false;
    // ISSUE: reference to a compiler-generated field
    c2.ev = button;
    // ISSUE: reference to a compiler-generated field
    c1.ev.FlatAppearance.BorderSize = 0;
    // ISSUE: reference to a compiler-generated field
    // ISSUE: reference to a compiler-generated field
    c1.ev.Location = new Point(this.CQ.Width - c1.ev.Width + 1, -8);
    // ISSUE: reference to a compiler-generated field
    c1.ev.Anchor = AnchorStyles.Top | AnchorStyles.Right;
    // ISSUE: reference to a compiler-generated field
    // ISSUE: reference to a compiler-generated method
    c1.ev.Click += new EventHandler(c1.A);
    this.CQ.Control.Padding = (Padding) new Padding(0, 0, 22, 0);
    // ISSUE: reference to a compiler-generated field
    this.CQ.Control.Controls.Add((Control) c1.ev);
    ToolStripLabel toolStripLabel1 = new ToolStripLabel(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FJ());
    toolStripLabel1.ForeColor = Color.White;
    toolStripLabel1.Margin = (Padding) new Padding(5, 0, 5, 0);
    toolStripLabel1.Visible = false;
    ToolStripLabel toolStripLabel2 = toolStripLabel1;
    ToolStripLabel toolStripLabel3 = new ToolStripLabel(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fj());
    toolStripLabel3.ForeColor = Color.White;
    toolStripLabel3.Margin = (Padding) new Padding(20, 0, 5, 0);
    toolStripLabel3.Visible = false;
    ToolStripLabel toolStripLabel4 = toolStripLabel3;
    ToolStripButton toolStripButton1 = new ToolStripButton(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FK());
    toolStripButton1.ForeColor = Color.White;
    toolStripButton1.Alignment = ToolStripItemAlignment.Right;
    toolStripButton1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
    toolStripButton1.ToolTipText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fk();
    this.CS = toolStripButton1;
    this.CS.Click += new EventHandler(this.h);
    ToolStripButton toolStripButton2 = new ToolStripButton(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FL());
    toolStripButton2.ForeColor = Color.White;
    toolStripButton2.Alignment = ToolStripItemAlignment.Right;
    toolStripButton2.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
    toolStripButton2.ToolTipText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fl();
    this.Cr = toolStripButton2;
    this.Cr.Click += new EventHandler(this.I);
    ToolStripButton toolStripButton3 = new ToolStripButton(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FM());
    toolStripButton3.ForeColor = Color.White;
    toolStripButton3.Alignment = ToolStripItemAlignment.Right;
    toolStripButton3.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
    toolStripButton3.ToolTipText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fm();
    this.CR = toolStripButton3;
    this.CR.Click += new EventHandler(this.i);
    this.CP.Items.Add((ToolStripItem) toolStripLabel2);
    this.CP.Items.Add((ToolStripItem) this.Cp);
    this.CP.Items.Add((ToolStripItem) new ToolStripSeparator());
    this.CP.Items.Add((ToolStripItem) toolStripLabel4);
    this.CP.Items.Add((ToolStripItem) this.CQ);
    this.CP.Items.Add((ToolStripItem) new ToolStripSeparator());
    this.Cs = new O();
    this.Cs.CheckedChanged += new EventHandler(this.j);
    ToolStripControlHost stripControlHost = new ToolStripControlHost((Control) this.Cs);
    stripControlHost.Margin = (Padding) new Padding(10, 0, 5, 3);
    stripControlHost.Alignment = ToolStripItemAlignment.Left;
    this.CT = stripControlHost;
    this.CP.Items.Add((ToolStripItem) this.CT);
    ToolStripLabel toolStripLabel5 = new ToolStripLabel(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FN());
    toolStripLabel5.ForeColor = Color.White;
    toolStripLabel5.Margin = (Padding) new Padding(0, 0, 15, 0);
    this.CP.Items.Add((ToolStripItem) toolStripLabel5);
    this.CP.Items.Add((ToolStripItem) this.CS);
    this.CP.Items.Add((ToolStripItem) this.Cr);
    this.CP.Items.Add((ToolStripItem) this.CR);
    this.Controls.Add((Control) this.CP);
    Panel panel = new Panel();
    panel.BackColor = A.b.aD;
    panel.Dock = DockStyle.Fill;
    panel.Padding = (Padding) new Padding(10, 35, 10, 10);
    this.Cn = panel;
    this.Controls.Add((Control) this.Cn);
    DataGridView dataGridView = new DataGridView();
    dataGridView.AllowUserToAddRows = false;
    dataGridView.AllowUserToResizeRows = false;
    dataGridView.BackgroundColor = A.b.aD;
    dataGridView.BorderStyle = BorderStyle.None;
    dataGridView.ReadOnly = true;
    dataGridView.RowHeadersVisible = false;
    dataGridView.ScrollBars = ScrollBars.Vertical;
    dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
    dataGridView.Dock = DockStyle.Fill;
    this.CO = dataGridView;
    ContextMenuStrip contextMenuStrip = new ContextMenuStrip();
    contextMenuStrip.BackColor = A.b.ac;
    contextMenuStrip.ShowImageMargin = false;
    contextMenuStrip.Renderer = (ToolStripRenderer) new A.n.a();
    this.Co = contextMenuStrip;
    ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FL());
    toolStripMenuItem1.ForeColor = Color.White;
    ToolStripMenuItem toolStripMenuItem2 = toolStripMenuItem1;
    // ISSUE: reference to a compiler-generated method
    toolStripMenuItem2.Click += new EventHandler(c1.a);
    this.Co.Items.Add((ToolStripItem) toolStripMenuItem2);
    ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fn());
    toolStripMenuItem3.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FO();
    toolStripMenuItem3.ForeColor = Color.White;
    ToolStripMenuItem toolStripMenuItem4 = toolStripMenuItem3;
    toolStripMenuItem4.Click += new EventHandler(this.a);
    this.Co.Items.Add((ToolStripItem) toolStripMenuItem4);
    this.Co.Items.Add((ToolStripItem) new ToolStripSeparator());
    ToolStripMenuItem toolStripMenuItem5 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fo());
    toolStripMenuItem5.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FP();
    toolStripMenuItem5.ForeColor = Color.White;
    ToolStripMenuItem toolStripMenuItem6 = toolStripMenuItem5;
    toolStripMenuItem6.Click += new EventHandler(this.C);
    this.Co.Items.Add((ToolStripItem) toolStripMenuItem6);
    ToolStripMenuItem toolStripMenuItem7 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fp());
    toolStripMenuItem7.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FQ();
    toolStripMenuItem7.ForeColor = Color.White;
    ToolStripMenuItem toolStripMenuItem8 = toolStripMenuItem7;
    toolStripMenuItem8.Click += new EventHandler(this.c);
    this.Co.Items.Add((ToolStripItem) toolStripMenuItem8);
    ToolStripMenuItem toolStripMenuItem9 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fq());
    toolStripMenuItem9.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FR();
    toolStripMenuItem9.ForeColor = Color.White;
    ToolStripMenuItem toolStripMenuItem10 = toolStripMenuItem9;
    toolStripMenuItem10.Click += new EventHandler(this.D);
    this.Co.Items.Add((ToolStripItem) toolStripMenuItem10);
    this.CO.ContextMenuStrip = this.Co;
    this.CO.CellMouseDown += new DataGridViewCellMouseEventHandler(this.A);
    this.CO.MouseDown += new MouseEventHandler(this.A);
    this.CO.CellMouseEnter += new DataGridViewCellEventHandler(this.A);
    this.CO.MouseMove += new MouseEventHandler(this.B);
    this.CO.MouseLeave += new EventHandler(this.B);
    this.CO.MouseWheel += new MouseEventHandler(this.a);
    this.CO.Scroll += new ScrollEventHandler(this.A);
    this.Cn.Controls.Add((Control) this.CO);
    this.A((Control) this.CO);
    this.B();
    // ISSUE: reference to a compiler-generated method
    this.CQ.TextChanged += new EventHandler(c1.B);
  }

  private void B()
  {
    try
    {
      this.cC = (Image) A.n.A(0);
      this.cc = (Image) A.n.a(0);
      this.cD = (Image) A.n.B(-1);
      this.cd = (Image) A.n.b(0);
      if (this.CR != null)
      {
        this.CR.Image = this.cC;
        this.CR.TextImageRelation = TextImageRelation.ImageBeforeText;
        this.CR.Margin = (Padding) new Padding(0, 0, 5, 0);
      }
      if (this.Cr != null)
      {
        this.Cr.Image = this.cD;
        this.Cr.TextImageRelation = TextImageRelation.ImageBeforeText;
        this.Cr.Margin = (Padding) new Padding(5, 0, 5, 0);
      }
      if (this.CS == null)
        return;
      this.CS.Image = this.cd;
      this.CS.TextImageRelation = TextImageRelation.ImageBeforeText;
      this.CS.Margin = (Padding) new Padding(5, 0, 0, 0);
    }
    catch
    {
    }
  }

  private static Bitmap A(int _param0 = 0)
  {
    Bitmap bitmap = new Bitmap(16 /*0x10*/, 16 /*0x10*/);
    using (Graphics graphics = Graphics.FromImage((Image) bitmap))
    {
      graphics.Clear(Color.Transparent);
      using (SolidBrush solidBrush = new SolidBrush(Color.White))
      {
        graphics.FillRectangle((Brush) solidBrush, 7, 3 + _param0, 2, 11);
        graphics.FillRectangle((Brush) solidBrush, 11, 3 + _param0, 2, 11);
      }
    }
    return bitmap;
  }

  private static Bitmap a(int _param0 = 0)
  {
    Bitmap bitmap = new Bitmap(16 /*0x10*/, 16 /*0x10*/);
    using (Graphics graphics = Graphics.FromImage((Image) bitmap))
    {
      graphics.Clear(Color.Transparent);
      using (SolidBrush solidBrush = new SolidBrush(A.b.aJ))
        graphics.FillPolygon((Brush) solidBrush, new Point[3]
        {
          new Point(4, 3 + _param0),
          new Point(12, 8 + _param0),
          new Point(4, 13 + _param0)
        });
    }
    return bitmap;
  }

  private static Bitmap B(int _param0 = 0)
  {
    Bitmap bitmap = new Bitmap(16 /*0x10*/, 16 /*0x10*/);
    using (Graphics graphics = Graphics.FromImage((Image) bitmap))
    {
      graphics.Clear(Color.Transparent);
      using (Pen pen = new Pen(Color.White, 1f))
      {
        using (SolidBrush solidBrush = new SolidBrush(Color.FromArgb(40, Color.White)))
        {
          int y = 4 + _param0;
          graphics.FillRectangle((Brush) solidBrush, 4, y, 8, 9);
          graphics.DrawRectangle(pen, 4, y, 8, 9);
          graphics.DrawRectangle(pen, 6, y + 2, 8, 9);
        }
      }
    }
    return bitmap;
  }

  private static Bitmap b(int _param0 = 0)
  {
    Bitmap bitmap = new Bitmap(16 /*0x10*/, 16 /*0x10*/);
    using (Graphics graphics = Graphics.FromImage((Image) bitmap))
    {
      graphics.Clear(Color.Transparent);
      using (Pen pen = new Pen(Color.White, 2f))
      {
        int num = _param0;
        graphics.DrawLine(pen, 4, 4 + num, 12, 12 + num);
        graphics.DrawLine(pen, 12, 4 + num, 4, 12 + num);
      }
    }
    return bitmap;
  }

  private void b()
  {
    this.CO.AutoGenerateColumns = false;
    this.CO.AllowUserToAddRows = false;
    this.CO.AllowUserToDeleteRows = false;
    this.CO.ReadOnly = true;
    this.CO.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
    this.CO.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
    this.CO.RowHeadersVisible = false;
    this.CO.RowTemplate.Height = 32 /*0x20*/;
    this.CO.EnableHeadersVisualStyles = false;
    this.CO.ShowCellToolTips = false;
    this.CO.Columns.Clear();
    DataGridViewColumnCollection columns = this.CO.Columns;
    DataGridViewColumn[] dataGridViewColumnArray = new DataGridViewColumn[5];
    DataGridViewTextBoxColumn viewTextBoxColumn1 = new DataGridViewTextBoxColumn();
    viewTextBoxColumn1.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr();
    viewTextBoxColumn1.HeaderText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FS();
    viewTextBoxColumn1.DataPropertyName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr();
    viewTextBoxColumn1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
    viewTextBoxColumn1.FillWeight = 200f;
    dataGridViewColumnArray[0] = (DataGridViewColumn) viewTextBoxColumn1;
    DataGridViewTextBoxColumn viewTextBoxColumn2 = new DataGridViewTextBoxColumn();
    viewTextBoxColumn2.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fs();
    viewTextBoxColumn2.HeaderText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FT();
    viewTextBoxColumn2.DataPropertyName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fs();
    viewTextBoxColumn2.Width = 160 /*0xA0*/;
    dataGridViewColumnArray[1] = (DataGridViewColumn) viewTextBoxColumn2;
    DataGridViewTextBoxColumn viewTextBoxColumn3 = new DataGridViewTextBoxColumn();
    viewTextBoxColumn3.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft();
    viewTextBoxColumn3.HeaderText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FU();
    viewTextBoxColumn3.DataPropertyName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft();
    viewTextBoxColumn3.Width = 60;
    dataGridViewColumnArray[2] = (DataGridViewColumn) viewTextBoxColumn3;
    DataGridViewTextBoxColumn viewTextBoxColumn4 = new DataGridViewTextBoxColumn();
    viewTextBoxColumn4.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fu();
    viewTextBoxColumn4.HeaderText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FV();
    viewTextBoxColumn4.DataPropertyName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fu();
    viewTextBoxColumn4.Width = 83;
    dataGridViewColumnArray[3] = (DataGridViewColumn) viewTextBoxColumn4;
    DataGridViewTextBoxColumn viewTextBoxColumn5 = new DataGridViewTextBoxColumn();
    viewTextBoxColumn5.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fv();
    viewTextBoxColumn5.HeaderText = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fv();
    viewTextBoxColumn5.DataPropertyName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fv();
    viewTextBoxColumn5.Width = 92;
    viewTextBoxColumn5.DefaultCellStyle = new DataGridViewCellStyle()
    {
      Format = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FW()
    };
    dataGridViewColumnArray[4] = (DataGridViewColumn) viewTextBoxColumn5;
    columns.AddRange(dataGridViewColumnArray);
    this.CO.ColumnHeadersDefaultCellStyle.BackColor = A.b.ac;
    this.CO.ColumnHeadersDefaultCellStyle.ForeColor = A.b.aI;
    this.CO.ColumnHeadersDefaultCellStyle.Font = new Font(this.CO.Font.FontFamily, this.CO.Font.Size + 2f, FontStyle.Bold);
    this.CO.DefaultCellStyle.BackColor = A.b.aD;
    this.CO.DefaultCellStyle.ForeColor = A.b.ae;
    this.CO.DefaultCellStyle.SelectionBackColor = Color.FromArgb((int) byte.MaxValue, 50, 56, 70);
    this.CO.DefaultCellStyle.SelectionForeColor = Color.White;
    this.CO.DefaultCellStyle.Font = new Font(this.CO.Font.FontFamily, this.CO.Font.Size + 2f);
    this.CO.GridColor = Color.FromArgb((int) byte.MaxValue, 60, 60, 70);
    this.CO.BackgroundColor = A.b.aD;
    this.CO.BorderStyle = BorderStyle.None;
    foreach (DataGridViewColumn column in (BaseCollection) this.CO.Columns)
      column.SortMode = DataGridViewColumnSortMode.NotSortable;
  }

  private void A(object? sender, [In] DataGridViewCellMouseEventArgs obj1)
  {
    if (obj1.RowIndex < 0 || obj1.Button != MouseButtons.Right)
      return;
    if (!this.CW)
    {
      this.CW = true;
      this.CR.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fw();
      this.CR.ForeColor = A.b.aJ;
      this.CR.Image = this.cc;
    }
    this.CO.ClearSelection();
    if (obj1.RowIndex >= this.CO.Rows.Count)
      return;
    this.CO.Rows[obj1.RowIndex].Selected = true;
    if (obj1.ColumnIndex < 0 || obj1.ColumnIndex >= this.CO.Columns.Count)
      return;
    int? rowIndex1 = this.CO.CurrentCell?.RowIndex;
    int rowIndex2 = obj1.RowIndex;
    if (rowIndex1.GetValueOrDefault() == rowIndex2 & rowIndex1.HasValue)
    {
      int? columnIndex1 = this.CO.CurrentCell?.ColumnIndex;
      int columnIndex2 = obj1.ColumnIndex;
      if (columnIndex1.GetValueOrDefault() == columnIndex2 & columnIndex1.HasValue)
        return;
    }
    this.CO.CurrentCell = this.CO.Rows[obj1.RowIndex].Cells[obj1.ColumnIndex];
  }

  private void A(object? sender, [In] MouseEventArgs obj1)
  {
    if (obj1.Button != MouseButtons.Left)
      return;
    int rowIndex = this.CO.HitTest(obj1.X, obj1.Y).RowIndex;
    if (rowIndex < 0 || rowIndex >= this.CO.RowCount)
      return;
    if (Control.ModifierKeys == Keys.Shift && this.Cy >= 0)
    {
      this.CO.ClearSelection();
      int num1 = Math.Min(this.Cy, rowIndex);
      int num2 = Math.Max(this.Cy, rowIndex);
      for (int index = num1; index <= num2; ++index)
      {
        if (this.CO.Rows[index].Visible)
          this.CO.Rows[index].Selected = true;
      }
    }
    else
    {
      this.CO.ClearSelection();
      this.CO.Rows[rowIndex].Selected = true;
      this.Cy = rowIndex;
    }
  }

  private void a(object? sender, [In] MouseEventArgs obj1)
  {
    if (this.Cv || this.IsDisposed || !this.CW)
      return;
    DateTime utcNow = DateTime.UtcNow;
    bool flag = obj1.Delta < 0;
    if (flag != this.ca)
    {
      this.Cz = 0;
      this.cA = utcNow;
    }
    this.ca = flag;
    if (flag)
    {
      if (DateTime.op_Subtraction(utcNow, this.cA).TotalMilliseconds < 400.0)
        ++this.Cz;
      else
        this.Cz = 1;
      this.cA = utcNow;
      if (this.Cz < 9 && !this.E())
        return;
      if (this.CW)
        this.G();
      this.Cz = 0;
    }
    else
    {
      this.Cz = 0;
      this.cA = utcNow;
    }
  }

  private void A(object? sender, [In] ScrollEventArgs obj1)
  {
    if (this.Cv || this.IsDisposed)
      return;
    this.cF = new (int, int)?();
    this.ce.Stop();
    this.cE?.Hide();
    DateTime utcNow = DateTime.UtcNow;
    if (obj1.NewValue < obj1.OldValue)
    {
      if (!this.CW)
        this.G();
      this.Cz = 0;
      this.cA = utcNow;
    }
    else if (!this.CW)
    {
      this.cA = utcNow;
    }
    else
    {
      if (DateTime.op_Subtraction(utcNow, this.cA).TotalMilliseconds < 400.0)
        ++this.Cz;
      else
        this.Cz = 1;
      this.cA = utcNow;
      if (!this.E() && this.Cz < 9)
        return;
      if (this.CW)
        this.G();
      this.Cz = 0;
    }
  }

  private void a(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.CO.SelectedRows.Count == 0)
        return;
      DataGridViewRow selectedRow = this.CO.SelectedRows[0];
      string str = (string) null;
      if (this.CO.CurrentCell != null)
      {
        string name = this.CO.Columns[this.CO.CurrentCell.ColumnIndex].Name;
        int num;
        if ((string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fs()) || string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft())) && int.TryParse(selectedRow.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft()].Value?.ToString(), ref num))
        {
          (string FullPath, string Signer, bool IsUnsigned)? nullable = this.C(num);
          if (nullable.HasValue)
            str = nullable.Value.FullPath;
        }
      }
      if (str == null)
        str = selectedRow.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr()].Value?.ToString();
      if (string.IsNullOrWhiteSpace(str))
        return;
      if (File.Exists(str))
      {
        Process.Start(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.dm(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FX() + str + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fx());
      }
      else
      {
        string directoryName = Path.GetDirectoryName(str);
        if (string.IsNullOrWhiteSpace(directoryName) || !Directory.Exists(directoryName))
          return;
        Process.Start(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.dm(), directoryName);
      }
    }
    catch
    {
    }
  }

  private (string FullPath, string Signer, bool IsUnsigned)? C([In] int obj0)
  {
    try
    {
      using (Process processById = Process.GetProcessById(obj0))
      {
        string fileName;
        try
        {
          fileName = processById.MainModule?.FileName ?? processById.ProcessName;
        }
        catch
        {
          fileName = processById.ProcessName;
        }
        if (string.IsNullOrWhiteSpace(fileName))
          fileName = processById.ProcessName;
        string str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DC();
        bool flag = true;
        try
        {
          if (File.Exists(fileName))
          {
            str = new X509Certificate2(fileName).GetNameInfo(X509NameType.SimpleName, false);
            flag = false;
          }
        }
        catch
        {
        }
        return new (string, string, bool)?((fileName, str, flag));
      }
    }
    catch
    {
      return new (string, string, bool)?();
    }
  }

  internal static string c([In] int obj0)
  {
    (string, DateTime) valueTuple;
    if (A.n.cf.TryGetValue(obj0, ref valueTuple) && TimeSpan.op_LessThan(DateTime.op_Subtraction(DateTime.UtcNow, valueTuple.Item2), A.n.cG))
      return valueTuple.Item1;
    List<string> stringList1 = new List<string>();
    HashSet<int> intSet = new HashSet<int>();
    int num1 = obj0;
    while (!intSet.Contains(num1))
    {
      intSet.Add(num1);
      try
      {
        using (Process processById = Process.GetProcessById(num1))
        {
          string processName = processById.ProcessName;
          List<string> stringList2 = stringList1;
          DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(12, 2);
          interpolatedStringHandler.AppendFormatted(processName);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FY());
          interpolatedStringHandler.AppendFormatted<int>(num1);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DG());
          string stringAndClear = interpolatedStringHandler.ToStringAndClear();
          stringList2.Add(stringAndClear);
          int num2 = A.n.A(processById);
          if (num2 > 0)
          {
            if (num2 != num1)
              num1 = num2;
            else
              break;
          }
          else
            break;
        }
      }
      catch
      {
        break;
      }
    }
    stringList1.Reverse();
    string str = string.Join(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.N(), (IEnumerable<string>) stringList1);
    A.n.cf[obj0] = (str, DateTime.UtcNow);
    return str;
  }

  private static int A([In] Process obj0)
  {
    try
    {
      using (CimSession cimSession = CimSession.Create((string) null))
      {
        DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(60, 1);
        interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fy());
        interpolatedStringHandler.AppendFormatted<int>(obj0.Id);
        string stringAndClear = interpolatedStringHandler.ToStringAndClear();
        CimInstance cimInstance = Enumerable.FirstOrDefault<CimInstance>(cimSession.QueryInstances(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FZ(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fz(), stringAndClear));
        if (cimInstance != null)
        {
          if (cimInstance.CimInstanceProperties[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fA()]?.Value is uint num)
            return (int) num;
        }
      }
    }
    catch
    {
    }
    return -1;
  }

  internal static void C()
  {
    try
    {
      DateTime dateTime = DateTime.UtcNow.AddMinutes(-5.0);
      foreach (KeyValuePair<int, (string Chain, DateTime Timestamp)> keyValuePair in A.n.cf)
      {
        if (DateTime.op_LessThan(keyValuePair.Value.Timestamp, dateTime))
        {
          (string, DateTime) valueTuple;
          A.n.cf.TryRemove(keyValuePair.Key, ref valueTuple);
        }
      }
    }
    catch
    {
    }
  }

  internal static A.n.ProcessTrustCategory A([In] string? obj0)
  {
    if (string.IsNullOrWhiteSpace(obj0))
      return A.n.ProcessTrustCategory.CriticalSystem;
    string lowerInvariant = Path.GetFileName(obj0).ToLowerInvariant();
    if (A.h.br.Contains(lowerInvariant))
      return A.n.ProcessTrustCategory.CriticalSystem;
    return A.h.bS.Contains(lowerInvariant) ? A.n.ProcessTrustCategory.HighRiskRuntime : A.n.ProcessTrustCategory.Normal;
  }

  private void A(object? sender, [In] DataGridViewCellEventArgs obj1)
  {
    if (this.Cv)
      return;
    if (this.IsDisposed)
      return;
    try
    {
      if (this.cE != null && this.cE.Visible && this.cE.A(Cursor.Position))
        return;
      if (obj1.RowIndex < 0 || obj1.ColumnIndex < 0)
      {
        this.cF = new (int, int)?();
        this.ce.Stop();
        this.cE?.Hide();
      }
      else
      {
        string name = this.CO.Columns[obj1.ColumnIndex].Name;
        int num = string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fs()) ? 1 : (string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft()) ? 1 : 0);
        bool flag = string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr());
        if (num == 0 && !flag)
        {
          this.cF = new (int, int)?();
          this.ce.Stop();
          this.cE?.Hide();
        }
        else
        {
          this.cF = new (int, int)?((obj1.RowIndex, obj1.ColumnIndex));
          this.ce.Stop();
          this.ce.Start();
        }
      }
    }
    catch
    {
      this.cF = new (int, int)?();
      this.ce.Stop();
      this.cE?.Hide();
    }
  }

  protected virtual void OnVisibleChanged([In] EventArgs obj0)
  {
    this.OnVisibleChanged(obj0);
    if (this.Visible)
      return;
    this.cF = new (int, int)?();
    this.ce.Stop();
  }

  private void B(object? sender, [In] MouseEventArgs obj1)
  {
    if (this.Cv)
      return;
    if (this.IsDisposed)
      return;
    try
    {
      if (this.cE == null || !this.cE.Visible || this.cE.A(Cursor.Position) || this.CO.HitTest(obj1.X, obj1.Y).RowIndex >= 0)
        return;
      this.cF = new (int, int)?();
      this.ce.Stop();
      this.cE?.Hide();
    }
    catch
    {
    }
  }

  private void B(object? sender, [In] EventArgs obj1)
  {
    if (this.Cv || this.IsDisposed || this.cE != null && this.cE.Visible && this.cE.A(Cursor.Position))
      return;
    this.cF = new (int, int)?();
    this.ce.Stop();
    this.cE?.Hide();
  }

  private void c()
  {
    if (this.Cv || this.IsDisposed || this.cE != null)
      return;
    P p = new P();
    p.Owner = (Form) this;
    this.cE = p;
  }

  private void A([In] string obj0, [In] Rectangle obj1, [In] TooltipKind obj2)
  {
    if (this.Cv || this.IsDisposed || string.IsNullOrWhiteSpace(obj0))
      return;
    this.c();
    string name = this.CO.Columns[this.CO.HitTest(obj1.X, obj1.Y).ColumnIndex].Name;
    Point point = this.A(obj1, name, obj2);
    this.cE.A(obj0, point, obj2);
  }

  private Point A([In] Rectangle obj0, [In] string obj1, [In] TooltipKind obj2)
  {
    if (obj2 != TooltipKind.Process)
      return this.CO.PointToScreen(new Point(obj0.Left, obj0.Bottom + 2));
    Point screen = this.CO.PointToScreen(new Point(obj0.Right, obj0.Top));
    this.cE.A(string.Empty, new Point(0, 0), TooltipKind.Process);
    int width = this.cE.Width;
    return new Point(screen.X - width, screen.Y);
  }

  private void b(object? sender, [In] EventArgs obj1)
  {
    if (this.Cv || this.IsDisposed || this.cE != null && this.cE.Visible && this.cE.A(Cursor.Position))
      return;
    this.ce.Stop();
    (int Row, int Col)? cF = this.cF;
    if (!cF.HasValue)
      return;
    (int Row, int Col) valueOrDefault = cF.GetValueOrDefault();
    if (valueOrDefault.Row < 0 || valueOrDefault.Row >= this.CO.RowCount || valueOrDefault.Col < 0 || valueOrDefault.Col >= this.CO.ColumnCount)
      this.cE?.Hide();
    else
      this.A(valueOrDefault.Row, valueOrDefault.Col);
  }

  private void A([In] int obj0, [In] int obj1)
  {
    if (this.Cv || this.IsDisposed)
      return;
    if (obj0 < 0 || obj0 >= this.CO.RowCount || obj1 < 0 || obj1 >= this.CO.ColumnCount)
    {
      this.cE?.Hide();
    }
    else
    {
      string name = this.CO.Columns[obj1].Name;
      bool flag = string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fs()) || string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft());
      int num = string.op_Equality(name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr()) ? 1 : 0;
      Rectangle displayRectangle = this.CO.GetCellDisplayRectangle(obj1, obj0, true);
      if (num != 0)
      {
        string text = this.CO.Rows[obj0].Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr()].Value?.ToString() ?? string.Empty;
        string str;
        if ((!text.StartsWith(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fa(), (StringComparison) 5) ? 0 : (text.Contains('➜') ? 1 : 0)) != 0)
        {
          try
          {
            string[] strArray = text.Substring(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fa().Length).Trim().Split(new string[1]
            {
              F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fB()
            }, 2, (StringSplitOptions) 2);
            if (strArray.Length == 2)
            {
              DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(9, 4);
              interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fa());
              interpolatedStringHandler.AppendFormatted(Environment.NewLine);
              interpolatedStringHandler.AppendFormatted(strArray[0]);
              interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fb());
              interpolatedStringHandler.AppendFormatted(Environment.NewLine);
              interpolatedStringHandler.AppendFormatted(strArray[1]);
              str = interpolatedStringHandler.ToStringAndClear();
            }
            else
              str = text;
          }
          catch
          {
            str = text;
          }
        }
        else
        {
          Font font = this.CO[obj1, obj0].InheritedStyle.Font ?? this.CO.Font;
          if (TextRenderer.MeasureText(text, font).Width <= displayRectangle.Width - 8)
          {
            this.cE?.Hide();
            return;
          }
          str = text;
        }
        this.A(str, displayRectangle, TooltipKind.FilePath);
      }
      else
      {
        if (!flag)
          return;
        string str = this.D(obj0);
        if (string.IsNullOrWhiteSpace(str))
          this.cE?.Hide();
        else
          this.A(str, displayRectangle, TooltipKind.Process);
      }
    }
  }

  private static string a(string? s)
  {
    return (s ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dp()).Trim();
  }

  private string D([In] int obj0)
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.D d = new A.n.D();
    // ISSUE: reference to a compiler-generated field
    d.eW = this;
    try
    {
      // ISSUE: reference to a compiler-generated field
      if (!int.TryParse(this.CO.Rows[obj0].Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft()]?.Value?.ToString(), ref d.ew))
        return string.Empty;
      // ISSUE: reference to a compiler-generated field
      A.F f = A.H.a(d.ew);
      if (f == null)
      {
        DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(26, 1);
        interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fC());
        // ISSUE: reference to a compiler-generated field
        interpolatedStringHandler.AppendFormatted<int>(d.ew);
        interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fc());
        return interpolatedStringHandler.ToStringAndClear();
      }
      if (string.IsNullOrWhiteSpace(f.B()))
        f.B(false);
      A.H.a(f);
      string str1 = f.B() ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DE();
      string str2 = !string.IsNullOrWhiteSpace(f.a()) ? f.a() : Path.GetFileName(str1);
      string stringAndClear1;
      if (f.H())
      {
        DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(4, 1);
        interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fC());
        // ISSUE: reference to a compiler-generated field
        interpolatedStringHandler.AppendFormatted<int>(d.ew);
        stringAndClear1 = interpolatedStringHandler.ToStringAndClear();
      }
      else
      {
        // ISSUE: reference to a compiler-generated method
        if (Enumerable.Any<Process>((IEnumerable<Process>) Process.GetProcesses(), new Func<Process, bool>(d.A)))
        {
          f.B(true);
          DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(4, 1);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fC());
          // ISSUE: reference to a compiler-generated field
          interpolatedStringHandler.AppendFormatted<int>(d.ew);
          stringAndClear1 = interpolatedStringHandler.ToStringAndClear();
        }
        else if (DateTime.op_Inequality(f.G(), new DateTime()))
        {
          TimeSpan timeSpan = DateTime.op_Subtraction(DateTime.UtcNow, f.G());
          double totalSeconds = timeSpan.TotalSeconds;
          DefaultInterpolatedStringHandler interpolatedStringHandler;
          string stringAndClear2;
          if (totalSeconds >= 60.0)
          {
            if (totalSeconds >= 3600.0)
            {
              if (totalSeconds < 86400.0)
              {
                interpolatedStringHandler = new DefaultInterpolatedStringHandler(5, 1);
                interpolatedStringHandler.AppendFormatted<double>(Math.Round(timeSpan.TotalHours));
                interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fE());
                stringAndClear2 = interpolatedStringHandler.ToStringAndClear();
              }
              else
              {
                interpolatedStringHandler = new DefaultInterpolatedStringHandler(5, 1);
                interpolatedStringHandler.AppendFormatted<double>(Math.Round(timeSpan.TotalDays));
                interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fe());
                stringAndClear2 = interpolatedStringHandler.ToStringAndClear();
              }
            }
            else
            {
              interpolatedStringHandler = new DefaultInterpolatedStringHandler(5, 1);
              interpolatedStringHandler.AppendFormatted<double>(Math.Round(timeSpan.TotalMinutes));
              interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fd());
              stringAndClear2 = interpolatedStringHandler.ToStringAndClear();
            }
          }
          else
          {
            interpolatedStringHandler = new DefaultInterpolatedStringHandler(5, 1);
            interpolatedStringHandler.AppendFormatted<double>(Math.Round(timeSpan.TotalSeconds));
            interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fD());
            stringAndClear2 = interpolatedStringHandler.ToStringAndClear();
          }
          string str3 = stringAndClear2;
          interpolatedStringHandler = new DefaultInterpolatedStringHandler(15, 2);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fC());
          // ISSUE: reference to a compiler-generated field
          interpolatedStringHandler.AppendFormatted<int>(d.ew);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fF());
          interpolatedStringHandler.AppendFormatted(str3);
          stringAndClear1 = interpolatedStringHandler.ToStringAndClear();
        }
        else
        {
          DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(15, 1);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fC());
          // ISSUE: reference to a compiler-generated field
          interpolatedStringHandler.AppendFormatted<int>(d.ew);
          interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.ff());
          stringAndClear1 = interpolatedStringHandler.ToStringAndClear();
        }
      }
      string str4;
      switch (f.c())
      {
        case SignerStatus.Trusted:
          str4 = !f.e() ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fG() + A.n.a(f.D()) : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fG() + A.n.a(f.D()) + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fg();
          break;
        case SignerStatus.MicrosoftCatalog:
          str4 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fH();
          break;
        case SignerStatus.UnknownPublisher:
        case SignerStatus.Unavailable:
          str4 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fi() + A.n.a(f.E());
          break;
        case SignerStatus.Unsigned:
        case SignerStatus.MalformedSignature:
        case SignerStatus.Blocked:
          str4 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fh() + A.n.a(f.E());
          break;
        case SignerStatus.Unverified:
          str4 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fI() + A.n.a(f.E()) + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DG();
          break;
        default:
          str4 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fi() + A.n.a(f.E());
          break;
      }
      string str5 = str4;
      string str6 = f.C() ?? A.H.A(f);
      // ISSUE: reference to a compiler-generated field
      string[] strArray = A.n.c(d.ew).Split(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fJ(), (StringSplitOptions) 1);
      List<string> stringList = new List<string>(strArray.Length);
      for (int index = 0; index < strArray.Length; ++index)
      {
        string str7 = strArray[index].Trim();
        string str8 = index == 0 ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fj() : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fj() + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dp().PadLeft(index * 2) + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fK();
        int num1 = str7.IndexOf(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fk(), (StringComparison) 5);
        if (num1 > 0)
        {
          string str9 = str7.Substring(0, num1).Trim();
          string str10 = str7;
          int num2 = num1;
          string str11 = str10.Substring(num2, str10.Length - num2).Trim();
          stringList.Add(str8 + str9 + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.b() + str11);
        }
        else
          stringList.Add(str8 + str7);
      }
      bool flag = stringList.Count >= 2;
      // ISSUE: reference to a compiler-generated field
      d.eX = this.CO.CreateGraphics();
      try
      {
        // ISSUE: reference to a compiler-generated method
        int num = Enumerable.Max<string>((IEnumerable<string>) new string[4]
        {
          F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fL(),
          F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fl(),
          F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fM(),
          F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fm()
        }, new Func<string, int>(d.A)) + 6;
        StringBuilder stringBuilder1 = new StringBuilder(512 /*0x0200*/);
        stringBuilder1.AppendLine(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fN());
        stringBuilder1.AppendLine();
        StringBuilder stringBuilder2 = stringBuilder1;
        StringBuilder stringBuilder3 = stringBuilder2;
        StringBuilder.AppendInterpolatedStringHandler interpolatedStringHandler = new StringBuilder.AppendInterpolatedStringHandler(3, 3, stringBuilder2);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fL().PadRight(num));
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(str2);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.De());
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(stringAndClear1);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DG());
        ref StringBuilder.AppendInterpolatedStringHandler local1 = ref interpolatedStringHandler;
        stringBuilder3.AppendLine(ref local1);
        StringBuilder stringBuilder4 = stringBuilder1;
        StringBuilder stringBuilder5 = stringBuilder4;
        interpolatedStringHandler = new StringBuilder.AppendInterpolatedStringHandler(0, 2, stringBuilder4);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fl().PadRight(num));
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(str1);
        ref StringBuilder.AppendInterpolatedStringHandler local2 = ref interpolatedStringHandler;
        stringBuilder5.AppendLine(ref local2);
        StringBuilder stringBuilder6 = stringBuilder1;
        StringBuilder stringBuilder7 = stringBuilder6;
        interpolatedStringHandler = new StringBuilder.AppendInterpolatedStringHandler(0, 2, stringBuilder6);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fM().PadRight(num));
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(str5);
        ref StringBuilder.AppendInterpolatedStringHandler local3 = ref interpolatedStringHandler;
        stringBuilder7.AppendLine(ref local3);
        StringBuilder stringBuilder8 = stringBuilder1;
        StringBuilder stringBuilder9 = stringBuilder8;
        interpolatedStringHandler = new StringBuilder.AppendInterpolatedStringHandler(0, 2, stringBuilder8);
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fm().PadRight(num));
        ((StringBuilder.AppendInterpolatedStringHandler) ref interpolatedStringHandler).AppendFormatted(str6);
        ref StringBuilder.AppendInterpolatedStringHandler local4 = ref interpolatedStringHandler;
        stringBuilder9.AppendLine(ref local4);
        if (flag)
        {
          stringBuilder1.AppendLine();
          stringBuilder1.AppendLine();
          stringBuilder1.AppendLine(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fn());
          stringBuilder1.AppendLine();
          foreach (string str12 in stringList)
            stringBuilder1.AppendLine(str12);
        }
        return stringBuilder1.ToString();
      }
      finally
      {
        // ISSUE: reference to a compiler-generated field
        if (d.eX != null)
        {
          // ISSUE: reference to a compiler-generated field
          d.eX.Dispose();
        }
      }
    }
    catch
    {
      return string.Empty;
    }
  }

  private void A(object? sender, [In] CancelEventArgs obj1)
  {
    if (!(this.Co.Items[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FR()] is ToolStripMenuItem toolStripMenuItem1) || !(this.Co.Items[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FO()] is ToolStripMenuItem toolStripMenuItem2))
      return;
    toolStripMenuItem1.Visible = false;
    toolStripMenuItem2.Visible = true;
    int num1;
    if (this.CO.SelectedRows.Count == 0 || !int.TryParse(this.CO.SelectedRows[0].Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft()].Value?.ToString(), ref num1))
      return;
    (string FullPath, string Signer, bool IsUnsigned)? nullable = this.C(num1);
    if (!nullable.HasValue)
      return;
    string fullPath = nullable.Value.FullPath;
    ToolStripMenuItem toolStripMenuItem3 = toolStripMenuItem2;
    int num2;
    if (!string.IsNullOrWhiteSpace(fullPath) && File.Exists(fullPath))
    {
      string directoryName = Path.GetDirectoryName(fullPath);
      if (directoryName != null)
      {
        num2 = Directory.Exists(directoryName) ? 1 : 0;
        goto label_10;
      }
    }
    num2 = 0;
label_10:
    toolStripMenuItem3.Visible = num2 != 0;
    switch (A.n.A(fullPath))
    {
      case A.n.ProcessTrustCategory.CriticalSystem:
      case A.n.ProcessTrustCategory.HighRiskRuntime:
        toolStripMenuItem1.Visible = false;
        break;
      case A.n.ProcessTrustCategory.Normal:
        toolStripMenuItem1.Visible = true;
        break;
    }
  }

  private void C(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.CO.SelectedRows.Count == 0)
        return;
      HashSet<string> stringSet = new HashSet<string>((IEqualityComparer<string>) StringComparer.OrdinalIgnoreCase);
      foreach (DataGridViewRow selectedRow in (BaseCollection) this.CO.SelectedRows)
      {
        string str1 = selectedRow.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr()].Value?.ToString();
        if (!string.IsNullOrWhiteSpace(str1))
        {
          string extension = Path.GetExtension(str1);
          if (!string.IsNullOrWhiteSpace(extension))
          {
            string str2 = extension.Trim().ToLowerInvariant();
            if (!str2.StartsWith('.'))
              str2 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.O() + str2;
            stringSet.Add(str2);
          }
        }
      }
      if (stringSet.Count == 0)
      {
        int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fO(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fo(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
      }
      else
      {
        string str3 = string.Join(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fo(), (IEnumerable<string>) Enumerable.OrderBy<string, string>((IEnumerable<string>) stringSet, (Func<string, string>) (([In] obj0) => obj0)));
        if (MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fP() + str3 + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fp(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fQ(), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) != DialogResult.Yes)
          return;
        bool flag = false;
        foreach (string str4 in stringSet)
        {
          if (this.CK.IgnoredExtensions.Add(str4))
            flag = true;
        }
        if (!flag)
          return;
        this.CK.a(A.n.CM);
      }
    }
    catch
    {
      int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fq(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fo(), MessageBoxButtons.OK, MessageBoxIcon.Hand);
    }
  }

  private void c(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.CO.SelectedRows.Count == 0)
        return;
      HashSet<string> stringSet = new HashSet<string>((IEqualityComparer<string>) StringComparer.OrdinalIgnoreCase);
      foreach (DataGridViewRow selectedRow in (BaseCollection) this.CO.SelectedRows)
      {
        string str1 = selectedRow.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fr()].Value?.ToString();
        if (!string.IsNullOrWhiteSpace(str1))
        {
          string str2 = !Directory.Exists(str1) ? Path.GetDirectoryName(str1) : str1;
          if (!string.IsNullOrWhiteSpace(str2))
          {
            string str3 = str2.Trim().Replace('/', '\\');
            if (!str3.EndsWith('\\'))
              str3 += F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.M();
            stringSet.Add(str3);
          }
        }
      }
      if (stringSet.Count == 0)
      {
        int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fR(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fp(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
      }
      else
      {
        string str4 = string.Join(Environment.NewLine, (IEnumerable<string>) Enumerable.OrderBy<string, string>((IEnumerable<string>) stringSet, (Func<string, string>) (([In] obj0) => obj0)));
        if (MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fr() + str4 + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fS(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fs(), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) != DialogResult.Yes)
          return;
        bool flag = false;
        foreach (string str5 in stringSet)
        {
          if (this.CK.IgnoredDirectories.Add(str5))
            flag = true;
        }
        if (!flag)
          return;
        this.CK.a(A.n.CM);
      }
    }
    catch
    {
      int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fT(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fp(), MessageBoxButtons.OK, MessageBoxIcon.Hand);
    }
  }

  private void D(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.CO.SelectedRows.Count == 0)
        return;
      HashSet<string> stringSet = new HashSet<string>((IEqualityComparer<string>) StringComparer.OrdinalIgnoreCase);
      foreach (DataGridViewRow selectedRow in (BaseCollection) this.CO.SelectedRows)
      {
        int num;
        if (int.TryParse(selectedRow.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ft()].Value?.ToString(), ref num))
        {
          (string FullPath, string Signer, bool IsUnsigned)? nullable = this.C(num);
          if (nullable.HasValue && !string.IsNullOrWhiteSpace(nullable.Value.FullPath))
          {
            string str = nullable.Value.FullPath.Trim();
            stringSet.Add(str);
          }
        }
      }
      if (stringSet.Count == 0)
      {
        int num1 = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.ft(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fq(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
      }
      else
      {
        string str1 = string.Join(Environment.NewLine, (IEnumerable<string>) Enumerable.OrderBy<string, string>((IEnumerable<string>) stringSet, (Func<string, string>) (([In] obj0) => obj0)));
        if (MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fU() + str1 + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fu(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fV(), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) != DialogResult.Yes)
          return;
        bool flag = false;
        foreach (string str2 in stringSet)
        {
          if (this.CK.WhitelistedProcesses.Add(str2))
            flag = true;
        }
        if (!flag)
          return;
        this.CK.a(A.n.CM);
      }
    }
    catch
    {
      int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fv(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fq(), MessageBoxButtons.OK, MessageBoxIcon.Hand);
    }
  }

  private NotifyIcon D()
  {
    ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip();
    contextMenuStrip1.BackColor = A.b.ac;
    contextMenuStrip1.ShowImageMargin = false;
    ContextMenuStrip contextMenuStrip2 = contextMenuStrip1;
    contextMenuStrip2.Renderer = (ToolStripRenderer) new A.n.a();
    ToolStripItemCollection items1 = contextMenuStrip2.Items;
    ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fW(), (Image) null, new EventHandler(this.d));
    toolStripMenuItem1.ForeColor = Color.White;
    items1.Add((ToolStripItem) toolStripMenuItem1);
    ToolStripItemCollection items2 = contextMenuStrip2.Items;
    ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fw(), (Image) null, new EventHandler(this.g));
    toolStripMenuItem2.ForeColor = Color.White;
    items2.Add((ToolStripItem) toolStripMenuItem2);
    ToolStripItemCollection items3 = contextMenuStrip2.Items;
    ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fX(), (Image) null, new EventHandler(this.H));
    toolStripMenuItem3.ForeColor = Color.White;
    items3.Add((ToolStripItem) toolStripMenuItem3);
    contextMenuStrip2.Items.Add((ToolStripItem) new ToolStripSeparator());
    ToolStripItemCollection items4 = contextMenuStrip2.Items;
    ToolStripMenuItem toolStripMenuItem4 = new ToolStripMenuItem(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fx(), (Image) null, new EventHandler(this.J));
    toolStripMenuItem4.ForeColor = Color.White;
    items4.Add((ToolStripItem) toolStripMenuItem4);
    using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fd()))
    {
      NotifyIcon notifyIcon = new NotifyIcon();
      notifyIcon.Icon = manifestResourceStream != null ? new Icon(manifestResourceStream) : this.Icon;
      notifyIcon.Visible = true;
      DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(13, 2);
      interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.eZ());
      interpolatedStringHandler.AppendFormatted<int>(Assembly.GetExecutingAssembly().GetName().Version.Major);
      interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.O());
      interpolatedStringHandler.AppendFormatted<int>(Assembly.GetExecutingAssembly().GetName().Version.Minor, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fY());
      notifyIcon.Text = interpolatedStringHandler.ToStringAndClear();
      notifyIcon.ContextMenuStrip = contextMenuStrip2;
      notifyIcon.MouseDown += (MouseEventHandler) ((_, [In] obj1) =>
      {
        if (obj1.Button != MouseButtons.Left)
          return;
        this.d((object) this, EventArgs.Empty);
      });
      return notifyIcon;
    }
  }

  private void d(object? sender, [In] EventArgs obj1)
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.d d = new A.n.d();
    // ISSUE: reference to a compiler-generated field
    d.ex = this;
    this.ShowInTaskbar = true;
    this.k();
    if (this.WindowState == FormWindowState.Minimized)
      this.WindowState = FormWindowState.Normal;
    this.Opacity = 0.0;
    this.Visible = true;
    this.Show();
    this.BringToFront();
    this.Activate();
    // ISSUE: reference to a compiler-generated field
    d.eY = new System.Windows.Forms.Timer() { Interval = 12 };
    // ISSUE: reference to a compiler-generated field
    // ISSUE: reference to a compiler-generated method
    d.eY.Tick += new EventHandler(d.A);
    // ISSUE: reference to a compiler-generated field
    d.eY.Start();
    if (!this.CW)
      return;
    this.CW = false;
    this.CR.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FM();
    this.CR.ForeColor = Color.White;
    if (this.cC == null)
      return;
    this.CR.Image = this.cC;
  }

  private void E(object? sender, [In] EventArgs obj1)
  {
    A.n.LogViewMode logViewMode;
    switch (this.Cp.SelectedIndex)
    {
      case 0:
        logViewMode = A.n.LogViewMode.Basic;
        break;
      case 1:
        logViewMode = A.n.LogViewMode.Security;
        break;
      case 2:
        logViewMode = A.n.LogViewMode.Forensics;
        break;
      default:
        logViewMode = A.n.LogViewMode.Security;
        break;
    }
    this.Ct = logViewMode;
    this.d();
  }

  private void e(object? sender, [In] EventArgs obj1_1)
  {
    if (this.Cu)
    {
      this.CU = string.Empty;
      if (this.Cq == null)
        return;
      this.Cq.Visible = false;
    }
    else
    {
      this.CU = this.CQ.Text?.Trim() ?? string.Empty;
      if (this.Cq != null)
        this.Cq.Visible = !string.IsNullOrEmpty(this.CU);
      this.CY?.Stop();
      this.CY?.Dispose();
      this.CY = new System.Windows.Forms.Timer() { Interval = 300 };
      this.CY.Tick += (EventHandler) ((s, [In] obj1_2) =>
      {
        this.CY?.Stop();
        this.CY?.Dispose();
        this.CY = (System.Windows.Forms.Timer) null;
        this.d();
      });
      this.CY.Start();
    }
  }

  private void F(object? sender, [In] EventArgs obj1)
  {
    if (!this.Cu)
      return;
    this.Cu = false;
    this.CQ.Text = string.Empty;
    this.CQ.ForeColor = Color.White;
  }

  private void f(object? sender, [In] EventArgs obj1)
  {
    if (!string.IsNullOrWhiteSpace(this.CQ.Text))
      return;
    this.Cu = true;
    this.CQ.ForeColor = Color.Gray;
    this.CQ.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fh();
  }

  private void G(object? sender, [In] EventArgs obj1)
  {
    this.CQ.Text = string.Empty;
    this.Cu = true;
    this.CQ.ForeColor = Color.Gray;
    this.Cq.Visible = false;
    this.CQ.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fh();
    this.CQ.Focus();
  }

  private void A(object? sender, [In] KeyEventArgs obj1)
  {
    if (!obj1.Control || obj1.KeyCode != Keys.F)
      return;
    this.CQ.Focus();
    this.CQ.SelectAll();
    obj1.Handled = true;
  }

  private void d()
  {
    if (this.CO == null || this.CO.Columns.Count == 0 || this.CO.Rows.Count == 0)
      return;
    bool flag1 = !string.IsNullOrWhiteSpace(this.CU);
    foreach (DataGridViewRow row in (IEnumerable) this.CO.Rows)
    {
      if (!row.IsNewRow)
      {
        bool flag2 = true;
        string str = row.Cells[F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fu()].Value?.ToString() ?? string.Empty;
        if (this.Ct == A.n.LogViewMode.Basic && (str.Equals(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.j()) || str.Equals(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.k())))
          flag2 = false;
        if (flag2 & flag1)
          flag2 = Enumerable.Any<DataGridViewCell>(Enumerable.Cast<DataGridViewCell>((IEnumerable) row.Cells), (Func<DataGridViewCell, bool>) (([In] obj0) =>
          {
            object obj = obj0.Value;
            if (obj == null)
              return false;
            int? nullable = obj.ToString()?.IndexOf(this.CU, (StringComparison) 5);
            int num = 0;
            return nullable.GetValueOrDefault() >= num & nullable.HasValue;
          }));
        row.Visible = flag2;
      }
    }
    this.CO.ClearSelection();
  }

  private bool E()
  {
    if (this.CO.RowCount == 0)
      return true;
    int num = this.CO.DisplayedRowCount(false);
    int scrollingRowIndex = this.CO.FirstDisplayedScrollingRowIndex;
    return num <= 0 || scrollingRowIndex < 0 || scrollingRowIndex + num - 1 >= this.CO.RowCount - 1;
  }

  private void A([In] bool obj0)
  {
    if (!obj0)
      return;
    try
    {
      if (this.CO.RowCount == 0)
        return;
      int index1;
      for (int index2 = index1 = this.CO.RowCount - 1; index2 >= 0; --index2)
      {
        if (this.CO.Rows[index2].Visible)
        {
          index1 = index2;
          break;
        }
      }
      if (index1 < 0 || index1 >= this.CO.RowCount || !this.CO.Rows[index1].Visible || index1 == this.CO.FirstDisplayedScrollingRowIndex)
        return;
      this.CO.FirstDisplayedScrollingRowIndex = index1;
    }
    catch
    {
    }
  }

  private void A(object? sender, [In] A.e obj1)
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.E e = new A.n.E();
    // ISSUE: reference to a compiler-generated field
    e.ey = this;
    // ISSUE: reference to a compiler-generated field
    e.eZ = sender;
    // ISSUE: reference to a compiler-generated field
    e.ez = obj1;
    // ISSUE: reference to a compiler-generated field
    // ISSUE: reference to a compiler-generated field
    if (this.Cv || this.CO.IsDisposed || e.ez == null || string.IsNullOrWhiteSpace(e.ez.A()))
      return;
    if (this.CO.InvokeRequired)
    {
      // ISSUE: reference to a compiler-generated method
      this.CO.Invoke(new Action(e.A));
    }
    else if (this.CW)
    {
      if (this.Cw.Count >= 5000)
        this.Cw.Dequeue();
      // ISSUE: reference to a compiler-generated field
      this.Cw.Enqueue(e.ez);
    }
    else
    {
      // ISSUE: reference to a compiler-generated field
      this.A(e.ez);
    }
  }

  private void A([In] A.e obj0)
  {
    if (this.Cv || this.CO.IsDisposed)
      return;
    if (this.CO.Columns.Count == 0)
      return;
    try
    {
      // ISSUE: object of a compiler-generated type is created
      // ISSUE: variable of a compiler-generated type
      A.n.e e = new A.n.e();
      if (this.CK.IgnoredExtensions.Contains(obj0.D()))
        return;
      // ISSUE: reference to a compiler-generated field
      e.FA = Path.GetDirectoryName(obj0.A())?.Trim().Replace('/', '\\') ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dp();
      // ISSUE: reference to a compiler-generated field
      // ISSUE: reference to a compiler-generated field
      if (!string.IsNullOrWhiteSpace(e.FA) && !e.FA.EndsWith('\\'))
      {
        // ISSUE: reference to a compiler-generated field
        e.FA += F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.M();
      }
      // ISSUE: reference to a compiler-generated method
      if (Enumerable.Any<string>((IEnumerable<string>) this.CK.IgnoredDirectories, new Func<string, bool>(e.A)))
        return;
    }
    catch
    {
    }
    string str = obj0.a().Equals(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.I(), (StringComparison) 5) ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.h() : obj0.a();
    DataGridViewRowCollection rows = this.CO.Rows;
    object[] objArray = new object[5]
    {
      (object) obj0.A(),
      string.IsNullOrWhiteSpace(obj0.fb) ? (object) F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fy() : (object) obj0.fb,
      (object) obj0.C().ToString(),
      (object) str,
      null
    };
    DateTime dateTime = obj0.c();
    dateTime = dateTime.ToLocalTime();
    objArray[4] = (object) dateTime.ToString(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FW());
    this.CO.Rows[rows.Add(objArray)].DefaultCellStyle.ForeColor = string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.K()) ? A.b.aF : (string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.j()) ? A.b.af : (string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.k()) ? A.b.aG : (string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.h()) ? A.b.ag : (string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.i()) || string.op_Equality(str, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.J()) ? A.b.aH : Color.White))));
    if (this.CO.Rows.Count > 1000)
      this.CO.Rows.RemoveAt(0);
    if (!this.Cx)
      this.d();
    if (this.CW)
      return;
    this.A(true);
  }

  private void A(object? sender, [In] A.f obj1)
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.F f = new A.n.F();
    // ISSUE: reference to a compiler-generated field
    f.Fa = this;
    // ISSUE: reference to a compiler-generated field
    f.FB = obj1;
    // ISSUE: reference to a compiler-generated field
    if (this.Cv || this.IsDisposed || f.FB == null)
      return;
    // ISSUE: reference to a compiler-generated method
    this.CN.Post(new SendOrPostCallback(f.A), (object) null);
  }

  private void A([In] A.f obj0)
  {
    // ISSUE: object of a compiler-generated type is created
    // ISSUE: variable of a compiler-generated type
    A.n.f f = new A.n.f();
    // ISSUE: reference to a compiler-generated field
    f.Fb = this;
    // ISSUE: reference to a compiler-generated field
    f.FC = obj0;
    if (this.Cv || this.IsDisposed)
      return;
    if (this.InvokeRequired)
    {
      // ISSUE: reference to a compiler-generated method
      this.Invoke(new Action(f.A));
    }
    else
    {
      // ISSUE: reference to a compiler-generated field
      using (p p = new p(f.FC))
      {
        switch (p.ShowDialog())
        {
          case DialogResult.Cancel:
            // ISSUE: reference to a compiler-generated field
            this.Ck.A(f.FC.A());
            // ISSUE: reference to a compiler-generated field
            A.L.a(f.FC.A());
            // ISSUE: reference to a compiler-generated field
            this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GC(), f.FC.fc);
            break;
          case DialogResult.Abort:
            // ISSUE: reference to a compiler-generated field
            A.L.B(f.FC.A());
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            this.A(A.L.A(f.FC.fc, A.n.Cm) ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fz() : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.fZ(), f.FC.fc);
            break;
          case DialogResult.Retry:
            // ISSUE: reference to a compiler-generated field
            A.L.B(f.FC.A());
            // ISSUE: reference to a compiler-generated field
            this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GA(), f.FC.fc);
            break;
          case DialogResult.Ignore:
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            if (!string.IsNullOrWhiteSpace(f.FC.fc) && !f.FC.fc.Equals(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.DO(), (StringComparison) 5) && f.FC.fc.Contains('\\'))
            {
              // ISSUE: reference to a compiler-generated field
              this.CK.WhitelistedProcesses.Add(f.FC.fc);
              this.CK.a(A.n.CM);
              // ISSUE: reference to a compiler-generated field
              this.Ck.A(f.FC.A());
              // ISSUE: reference to a compiler-generated field
              A.L.a(f.FC.A());
              // ISSUE: reference to a compiler-generated field
              this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ga(), f.FC.fc);
              break;
            }
            // ISSUE: reference to a compiler-generated field
            this.Ck.A(f.FC.A());
            // ISSUE: reference to a compiler-generated field
            A.L.a(f.FC.A());
            this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GB(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gb());
            break;
        }
      }
    }
  }

  private void A([In] string? obj0, [In] string? obj1)
  {
    if (this.Cv)
      return;
    if (this.IsDisposed)
      return;
    try
    {
      if (string.IsNullOrWhiteSpace(obj0) && string.IsNullOrWhiteSpace(obj1) || string.IsNullOrWhiteSpace(obj1))
        return;
      this.Cj.ShowBalloonTip(3000, obj0 ?? string.Empty, obj1, ToolTipIcon.None);
    }
    catch
    {
    }
  }

  private void g(object? sender, [In] EventArgs obj1)
  {
    Process.Start(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gc(), A.n.CM);
  }

  private void H(object? sender, [In] EventArgs obj1)
  {
    if (Directory.Exists(A.n.Cm))
    {
      Process.Start(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.dm(), A.n.Cm);
    }
    else
    {
      int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GD(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.A(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
    }
  }

  private void A([In] Control obj0)
  {
    try
    {
      typeof (Control).InvokeMember(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gd(), (BindingFlags) 8228, (Binder) null, (object) obj0, new object[1]
      {
        (object) true
      });
    }
    catch
    {
    }
  }

  private void h(object? sender, [In] EventArgs obj1) => this.CO.Rows.Clear();

  private void I(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.CO.Rows.Count == 0)
      {
        this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GE(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Ge());
      }
      else
      {
        StringBuilder stringBuilder = new StringBuilder();
        for (int index = 0; index < this.CO.Columns.Count; ++index)
        {
          if (index > 0)
            stringBuilder.Append('\t');
          stringBuilder.Append(this.CO.Columns[index].HeaderText);
        }
        stringBuilder.AppendLine();
        foreach (DataGridViewRow dataGridViewRow in this.CO.SelectedRows.Count <= 0 ? Enumerable.Where<DataGridViewRow>(Enumerable.Cast<DataGridViewRow>((IEnumerable) this.CO.Rows), (Func<DataGridViewRow, bool>) (([In] obj0) => obj0.Visible && !obj0.IsNewRow)) : (IEnumerable<DataGridViewRow>) Enumerable.OrderBy<DataGridViewRow, int>(Enumerable.Cast<DataGridViewRow>((IEnumerable) this.CO.SelectedRows), (Func<DataGridViewRow, int>) (([In] obj0) => obj0.Index)))
        {
          for (int index = 0; index < dataGridViewRow.Cells.Count; ++index)
          {
            if (index > 0)
              stringBuilder.Append('\t');
            stringBuilder.Append(dataGridViewRow.Cells[index].Value?.ToString());
          }
          stringBuilder.AppendLine();
        }
        string str1 = stringBuilder.ToString();
        if (string.IsNullOrWhiteSpace(str1))
        {
          this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GF(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gf());
        }
        else
        {
          this.B(str1);
          string str2 = this.CO.SelectedRows.Count > 0 ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gg() : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GG();
          this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GH(), str2);
        }
      }
    }
    catch
    {
      this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gh(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GI());
    }
  }

  private void B([In] string obj0)
  {
    for (int index = 0; index < 5; ++index)
    {
      try
      {
        Clipboard.SetText(obj0);
        break;
      }
      catch
      {
        Thread.Sleep(50);
      }
    }
  }

  protected virtual bool ProcessCmdKey([In] ref Message obj0, [In] Keys obj1)
  {
    switch (obj1)
    {
      case Keys.A | Keys.Control:
        this.f();
        return true;
      case Keys.C | Keys.Control:
        this.e();
        return true;
      case Keys.F | Keys.Control:
        this.CQ.Focus();
        this.CQ.SelectAll();
        return true;
      case Keys.C | Keys.Shift | Keys.Control:
        this.F();
        return true;
      default:
        // ISSUE: cast to a reference type
        return this.ProcessCmdKey((Message&) ref obj0, obj1);
    }
  }

  private void e()
  {
    try
    {
      if (this.CO.CurrentCell != null && this.CO.SelectedRows.Count == 0)
      {
        string str = this.CO.CurrentCell.Value?.ToString();
        if (!string.IsNullOrWhiteSpace(str))
        {
          this.B(str);
          this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gi(), str);
          return;
        }
      }
      if (this.CO.SelectedRows.Count > 0)
        this.I((object) null, EventArgs.Empty);
      else if (Enumerable.Any<DataGridViewRow>(Enumerable.Cast<DataGridViewRow>((IEnumerable) this.CO.Rows), (Func<DataGridViewRow, bool>) (([In] obj0) => obj0.Visible && !obj0.IsNewRow)))
        this.F();
      else
        this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GE(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GJ());
    }
    catch
    {
      this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gj(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GK());
    }
  }

  private void F()
  {
    try
    {
      if (this.CO.Rows.Count == 0)
      {
        this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gk(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GL());
      }
      else
      {
        StringBuilder stringBuilder = new StringBuilder();
        for (int index = 0; index < this.CO.Columns.Count; ++index)
        {
          if (index > 0)
            stringBuilder.Append(',');
          stringBuilder.Append(A.n.b(this.CO.Columns[index].HeaderText));
        }
        stringBuilder.AppendLine();
        foreach (DataGridViewRow row in (IEnumerable) this.CO.Rows)
        {
          if (row.Visible && !row.IsNewRow)
          {
            for (int index = 0; index < row.Cells.Count; ++index)
            {
              if (index > 0)
                stringBuilder.Append(',');
              stringBuilder.Append(A.n.b(row.Cells[index].Value?.ToString() ?? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Dp()));
            }
            stringBuilder.AppendLine();
          }
        }
        this.B(stringBuilder.ToString());
        this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gl(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GM());
      }
    }
    catch
    {
      this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gj(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gm());
    }
  }

  private static string b(string? value)
  {
    if (string.IsNullOrEmpty(value))
      return string.Empty;
    return value.Contains('"') || value.Contains(',') || value.Contains('\n') ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fx() + value.Replace(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fx(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GN()) + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fx() : value;
  }

  private void f()
  {
    this.CO.ClearSelection();
    foreach (DataGridViewRow row in (IEnumerable) this.CO.Rows)
    {
      if (row.Visible && !row.IsNewRow)
        row.Selected = true;
    }
    this.A(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gn(), F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GO());
  }

  private void G()
  {
    this.CW = !this.CW;
    this.CR.Text = this.CW ? F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fw() : F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.FM();
    this.CR.ForeColor = this.CW ? A.b.aJ : Color.White;
    this.CR.Image = this.CW ? this.cc : this.cC;
    if (this.CW)
      return;
    this.g();
  }

  private void g()
  {
    if (this.Cw.Count == 0)
      return;
    this.Cx = true;
    try
    {
      int num = 0;
      while (this.Cw.Count > 0)
      {
        if (num < 500)
        {
          this.A(this.Cw.Dequeue());
          ++num;
        }
        else
          break;
      }
    }
    finally
    {
      this.Cx = false;
      this.d();
    }
    if (this.Cw.Count <= 0)
      return;
    this.BeginInvoke(new Action(this.g));
  }

  private void i(object? sender, [In] EventArgs obj1) => this.G();

  private void H()
  {
    try
    {
      this.CK.LastWindowState = new FormWindowState?(this.WindowState);
      Rectangle rectangle = this.RestoreBounds;
      if (rectangle.Width == 0 || rectangle.X < 0)
        rectangle = new Rectangle(this.Location, this.Size);
      this.CK.WindowLeft = new int?(rectangle.Left);
      this.CK.WindowTop = new int?(rectangle.Top);
      this.CK.WindowWidth = new int?(rectangle.Width);
      this.CK.WindowHeight = new int?(rectangle.Height);
      this.CK.a(A.n.CM);
    }
    catch
    {
    }
  }

  private async void J(object? sender, [In] EventArgs obj1) => await this.h();

  private async Task h()
  {
    this.H();
    this.Cv = true;
    this.Ck.a();
    this.Cj.Visible = false;
    await Task.Delay(50);
    Application.Exit();
  }

  private void A([In] object obj0, [In] FormClosingEventArgs obj1)
  {
    if (this.Cv || obj1.CloseReason != CloseReason.UserClosing)
      return;
    this.H();
    obj1.Cancel = true;
    this.Opacity = 0.0;
    this.Hide();
    this.WindowState = FormWindowState.Minimized;
    this.ShowInTaskbar = false;
  }

  private async void j(object? sender, [In] EventArgs obj1)
  {
    try
    {
      if (this.Cs.A())
      {
        await this.I();
        this.CK.StartWithWindows = true;
      }
      else
      {
        await this.i();
        this.CK.StartWithWindows = false;
      }
      this.CK.a(A.n.CM);
    }
    catch (Exception ex)
    {
      int num = (int) MessageBox.Show(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hi() + ex.Message, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HJ(), MessageBoxButtons.OK, MessageBoxIcon.Hand);
      this.Cs.A(!this.Cs.A());
    }
  }

  private async Task I()
  {
    await Task.Run((Action) (() =>
    {
      try
      {
        string executablePath = Application.ExecutablePath;
        string str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hb();
        DefaultInterpolatedStringHandler interpolatedStringHandler1 = new DefaultInterpolatedStringHandler(52, 2);
        interpolatedStringHandler1.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HC());
        interpolatedStringHandler1.AppendFormatted(str);
        interpolatedStringHandler1.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hc());
        interpolatedStringHandler1.AppendFormatted(executablePath);
        interpolatedStringHandler1.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HD());
        interpolatedStringHandler1.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hd());
        string stringAndClear = interpolatedStringHandler1.ToStringAndClear();
        using (Process process = Process.Start(new ProcessStartInfo()
        {
          FileName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HE(),
          Arguments = stringAndClear,
          UseShellExecute = false,
          CreateNoWindow = true,
          RedirectStandardOutput = true,
          RedirectStandardError = true
        }))
        {
          if (process == null)
            return;
          process.WaitForExit();
          if (process.ExitCode != 0)
          {
            string end = ((TextReader) process.StandardError).ReadToEnd();
            DefaultInterpolatedStringHandler interpolatedStringHandler2 = new DefaultInterpolatedStringHandler(33, 2);
            interpolatedStringHandler2.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.He());
            interpolatedStringHandler2.AppendFormatted<int>(process.ExitCode);
            interpolatedStringHandler2.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.C());
            interpolatedStringHandler2.AppendFormatted(end);
            throw new Exception(interpolatedStringHandler2.ToStringAndClear());
          }
        }
      }
      catch (Exception ex)
      {
        throw new Exception(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HF() + ex.Message, ex);
      }
    }));
  }

  private async Task i()
  {
    await Task.Run((Action) (() =>
    {
      try
      {
        string str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hb();
        using (Process process = Process.Start(new ProcessStartInfo()
        {
          FileName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HE(),
          Arguments = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hf() + str + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HG(),
          UseShellExecute = false,
          CreateNoWindow = true,
          RedirectStandardOutput = true,
          RedirectStandardError = true
        }))
        {
          if (process == null)
            return;
          process.WaitForExit();
          if (process.ExitCode != 0 && process.ExitCode != 1)
          {
            string end = ((TextReader) process.StandardError).ReadToEnd();
            DefaultInterpolatedStringHandler interpolatedStringHandler = new DefaultInterpolatedStringHandler(33, 2);
            interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.He());
            interpolatedStringHandler.AppendFormatted<int>(process.ExitCode);
            interpolatedStringHandler.AppendLiteral(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.C());
            interpolatedStringHandler.AppendFormatted(end);
            throw new Exception(interpolatedStringHandler.ToStringAndClear());
          }
        }
      }
      catch (Exception ex)
      {
        throw new Exception(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hg() + ex.Message, ex);
      }
    }));
  }

  private async Task<bool> J()
  {
    return await Task.Run<bool>((Func<bool>) (() =>
    {
      try
      {
        string str = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hb();
        using (Process process = Process.Start(new ProcessStartInfo()
        {
          FileName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HE(),
          Arguments = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HH() + str + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Fx(),
          UseShellExecute = false,
          CreateNoWindow = true,
          RedirectStandardOutput = true,
          RedirectStandardError = true
        }))
        {
          if (process == null)
            return false;
          process.WaitForExit();
          return process.ExitCode == 0;
        }
      }
      catch
      {
        return false;
      }
    }));
  }

  private async Task<string?> j()
  {
    return await Task.Run<string>((Func<string>) (() =>
    {
      try
      {
        string str1 = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hb();
        using (Process process = Process.Start(new ProcessStartInfo()
        {
          FileName = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HE(),
          Arguments = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HH() + str1 + F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Hh(),
          UseShellExecute = false,
          CreateNoWindow = true,
          RedirectStandardOutput = true,
          RedirectStandardError = true
        }))
        {
          if (process != null)
          {
            string end = ((TextReader) process.StandardOutput).ReadToEnd();
            process.WaitForExit();
            if (process.ExitCode == 0)
            {
              string str2 = end;
              char[] chArray = new char[2]{ '\r', '\n' };
              foreach (string str3 in str2.Split(chArray, (StringSplitOptions) 1))
              {
                if (str3.StartsWith(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HI(), (StringComparison) 5))
                  return str3.Substring(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HI().Length).Trim().Trim('"');
              }
            }
          }
          return (string) null;
        }
      }
      catch
      {
        return (string) null;
      }
    }));
  }

  private async Task K()
  {
    A.n n = this;
    try
    {
      string str = Application.ExecutablePath;
      bool flag = await n.J();
      string str1;
      if (flag)
        str1 = await n.j();
      else
        str1 = (string) null;
      string str2 = str1;
      if (n.CK.StartWithWindows)
      {
        if (!flag)
          await n.I();
        else if (str2 != null && !str2.Equals(str, (StringComparison) 5))
          await n.I();
      }
      else if (flag)
        await n.i();
      // ISSUE: reference to a compiler-generated method
      n.Invoke(new Action(n.N));
      str = (string) null;
    }
    catch
    {
      // ISSUE: reference to a compiler-generated method
      n.Invoke(new Action(n.n));
    }
  }

  private void k()
  {
    try
    {
      int num = 1;
      A.G.A(this.Handle, 20, ref num, 4);
      A.G.A(this.Handle, 19, ref num, 4);
    }
    catch
    {
    }
  }

  internal void L()
  {
    try
    {
      A.G.A(this.Handle, A.G.Bx, 0, 0, 0, 0, 19U);
    }
    catch
    {
      try
      {
        this.WindowState = FormWindowState.Minimized;
      }
      catch
      {
      }
    }
  }

  protected override void Dispose([In] bool obj0)
  {
    if (obj0)
    {
      if (this.cg != null)
        ((IDisposable) this.cg).Dispose();
      this.cE?.Dispose();
      this.ce?.Dispose();
      this.cC?.Dispose();
      this.cc?.Dispose();
      this.cD?.Dispose();
      this.cd?.Dispose();
    }
    base.Dispose(obj0);
  }

  private void l()
  {
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (A.n));
    this.SuspendLayout();
    this.AutoScaleDimensions = new SizeF(7f, 15f);
    this.AutoScaleMode = AutoScaleMode.Font;
    this.BackColor = Color.FromArgb(27, 28, 33);
    this.ClientSize = new Size(1358, 708);
    this.DoubleBuffered = true;
    this.Icon = (Icon) ((ResourceManager) componentResourceManager).GetObject(F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Go());
    this.Name = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.GP();
    this.StartPosition = FormStartPosition.CenterScreen;
    this.Text = F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.Gp();
    this.FormClosing += new FormClosingEventHandler(this.A);
    this.ResumeLayout(false);
  }

  internal enum ProcessTrustCategory
  {
    CriticalSystem,
    HighRiskRuntime,
    Normal,
  }

  private sealed class a : ToolStripProfessionalRenderer
  {
    private static readonly Color eM = Color.FromArgb((int) byte.MaxValue, 60, 60, 70);
    private static readonly Color em = Color.FromArgb((int) byte.MaxValue, 60, 60, 70);
    private static readonly Color eN = SystemColors.Highlight;

    private static Color A([In] Color obj0)
    {
      int num1 = Math.Min((int) byte.MaxValue, (int) obj0.R + 20);
      int num2 = Math.Min((int) byte.MaxValue, (int) obj0.G + 20);
      int num3 = Math.Min((int) byte.MaxValue, (int) obj0.B + 20);
      return Color.FromArgb((int) obj0.A, num1, num2, num3);
    }

    protected override void OnRenderToolStripBorder([In] ToolStripRenderEventArgs obj0)
    {
      using (Pen pen = new Pen(A.n.a.eM))
        obj0.Graphics.DrawLine(pen, 0, obj0.ToolStrip.Height - 1, obj0.ToolStrip.Width, obj0.ToolStrip.Height - 1);
    }

    protected override void OnRenderToolStripBackground([In] ToolStripRenderEventArgs obj0)
    {
      using (SolidBrush solidBrush = new SolidBrush(A.b.ac))
        obj0.Graphics.FillRectangle((Brush) solidBrush, obj0.AffectedBounds);
    }

    protected override void OnRenderSeparator([In] ToolStripSeparatorRenderEventArgs obj0)
    {
      using (SolidBrush solidBrush = new SolidBrush(A.n.a.em))
      {
        Rectangle contentRectangle = obj0.Item.ContentRectangle;
        contentRectangle.Width = 1;
        obj0.Graphics.FillRectangle((Brush) solidBrush, contentRectangle);
      }
    }

    protected override void OnRenderButtonBackground([In] ToolStripItemRenderEventArgs obj0)
    {
      if (obj0.Item is ToolStripButton toolStripButton)
      {
        int num = string.Equals(toolStripButton.Name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HB(), (StringComparison) 4) ? 1 : 0;
        Rectangle rect = new Rectangle(Point.Empty, obj0.Item.Size);
        if (num != 0)
        {
          using (SolidBrush solidBrush = new SolidBrush(A.b.aD))
            obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
          if (!toolStripButton.Selected && !toolStripButton.Pressed)
            return;
          using (SolidBrush solidBrush = new SolidBrush(Color.FromArgb(80 /*0x50*/, A.n.a.eN)))
            obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
        }
        else
        {
          Color color = obj0.ToolStrip == null || !Color.op_Inequality(obj0.ToolStrip.BackColor, Color.Empty) ? A.b.ac : obj0.ToolStrip.BackColor;
          using (SolidBrush solidBrush = new SolidBrush(color))
            obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
          if (!toolStripButton.Selected && !toolStripButton.Pressed)
            return;
          using (SolidBrush solidBrush = new SolidBrush(A.n.a.A(color)))
            obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
        }
      }
      else
        base.OnRenderButtonBackground(obj0);
    }

    protected override void OnRenderMenuItemBackground([In] ToolStripItemRenderEventArgs obj0)
    {
      Rectangle rect = new Rectangle(Point.Empty, obj0.Item.Size);
      Color color = obj0.ToolStrip == null || !Color.op_Inequality(obj0.ToolStrip.BackColor, Color.Empty) ? A.b.ac : obj0.ToolStrip.BackColor;
      using (SolidBrush solidBrush = new SolidBrush(color))
        obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
      if (!obj0.Item.Selected && !obj0.Item.Pressed)
        return;
      using (SolidBrush solidBrush = new SolidBrush(A.n.a.A(color)))
        obj0.Graphics.FillRectangle((Brush) solidBrush, rect);
    }

    protected override void OnRenderItemText([In] ToolStripItemTextRenderEventArgs obj0)
    {
      if (obj0.Item is ToolStripButton toolStripButton && string.Equals(toolStripButton.Name, F5D1BF18\u002D5FBA\u002D43C1\u002DA4E0\u002D6D909C027158.HB(), (StringComparison) 4))
      {
        bool flag = toolStripButton.Selected || toolStripButton.Pressed;
        obj0.TextColor = flag ? A.n.a.eN : Color.Gray;
      }
      base.OnRenderItemText(obj0);
    }
  }

  private enum LogViewMode
  {
    Basic,
    Security,
    Forensics,
  }
}
