using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Media;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using System_Security_2010.My;
using System_Security_2010.My.Resources;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using Microsoft.VisualBasic.Devices;

namespace System_Security_2010;

[DesignerGenerated]
public class Form1 : Form
{
	private static List<WeakReference> __ENCList = new List<WeakReference>();

	private IContainer components;

	[AccessedThroughProperty("Timer1")]
	private Timer _Timer1;

	[AccessedThroughProperty("PictureBox1")]
	private PictureBox _PictureBox1;

	[AccessedThroughProperty("Label1")]
	private Label _Label1;

	[AccessedThroughProperty("NotifyIcon1")]
	private NotifyIcon _NotifyIcon1;

	[AccessedThroughProperty("BalloonPopup")]
	private Timer _BalloonPopup;

	[AccessedThroughProperty("Button1")]
	private Button _Button1;

	[AccessedThroughProperty("Button2")]
	private Button _Button2;

	[AccessedThroughProperty("Button3")]
	private Button _Button3;

	[AccessedThroughProperty("Button4")]
	private Button _Button4;

	[AccessedThroughProperty("Button5")]
	private Button _Button5;

	[AccessedThroughProperty("Button6")]
	private Button _Button6;

	[AccessedThroughProperty("ProgressBar1")]
	private ProgressBar _ProgressBar1;

	[AccessedThroughProperty("ContextMenuStrip1")]
	private ContextMenuStrip _ContextMenuStrip1;

	[AccessedThroughProperty("StartScanToolStripMenuItem")]
	private ToolStripMenuItem _StartScanToolStripMenuItem;

	[AccessedThroughProperty("RegisterToolStripMenuItem")]
	private ToolStripMenuItem _RegisterToolStripMenuItem;

	[AccessedThroughProperty("QuitToolStripMenuItem")]
	private ToolStripMenuItem _QuitToolStripMenuItem;

	[AccessedThroughProperty("PictureBox2")]
	private PictureBox _PictureBox2;

	[AccessedThroughProperty("ScanBar")]
	private Timer _ScanBar;

	[AccessedThroughProperty("Label2")]
	private Label _Label2;

	[AccessedThroughProperty("Label3")]
	private Label _Label3;

	[AccessedThroughProperty("ScanResults")]
	private Timer _ScanResults;

	[AccessedThroughProperty("ListView1")]
	private ListView _ListView1;

	[AccessedThroughProperty("ColumnHeader1")]
	private ColumnHeader _ColumnHeader1;

	[AccessedThroughProperty("ColumnHeader2")]
	private ColumnHeader _ColumnHeader2;

	[AccessedThroughProperty("ColumnHeader3")]
	private ColumnHeader _ColumnHeader3;

	[AccessedThroughProperty("Label4")]
	private Label _Label4;

	[AccessedThroughProperty("VirusCount")]
	private Label _VirusCount;

	[AccessedThroughProperty("Label5")]
	private Label _Label5;

	[AccessedThroughProperty("Timer2")]
	private Timer _Timer2;

	[AccessedThroughProperty("RegistrationUpdate")]
	private Timer _RegistrationUpdate;

	private Point AppLocation;

	private Point CurLocation;

	private Process process;

	private ProcessStartInfo processStartInfo;

	internal virtual Timer Timer1
	{
		[DebuggerNonUserCode]
		get
		{
			return _Timer1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Timer1_Tick;
			if (_Timer1 != null)
			{
				_Timer1.Tick -= value2;
			}
			_Timer1 = value;
			if (_Timer1 != null)
			{
				_Timer1.Tick += value2;
			}
		}
	}

	internal virtual PictureBox PictureBox1
	{
		[DebuggerNonUserCode]
		get
		{
			return _PictureBox1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			MouseEventHandler value2 = PictureBox1_MouseUp;
			MouseEventHandler value3 = PictureBox1_MouseDown;
			EventHandler value4 = PictureBox1_Click;
			EventHandler value5 = PictureBox1_MouseHover;
			if (_PictureBox1 != null)
			{
				_PictureBox1.MouseUp -= value2;
				_PictureBox1.MouseDown -= value3;
				_PictureBox1.Click -= value4;
				_PictureBox1.MouseHover -= value5;
			}
			_PictureBox1 = value;
			if (_PictureBox1 != null)
			{
				_PictureBox1.MouseUp += value2;
				_PictureBox1.MouseDown += value3;
				_PictureBox1.Click += value4;
				_PictureBox1.MouseHover += value5;
			}
		}
	}

	internal virtual Label Label1
	{
		[DebuggerNonUserCode]
		get
		{
			return _Label1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_Label1 = value;
		}
	}

	internal virtual NotifyIcon NotifyIcon1
	{
		[DebuggerNonUserCode]
		get
		{
			return _NotifyIcon1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			MouseEventHandler value2 = NotifyIcon1_MouseDoubleClick;
			if (_NotifyIcon1 != null)
			{
				_NotifyIcon1.MouseDoubleClick -= value2;
			}
			_NotifyIcon1 = value;
			if (_NotifyIcon1 != null)
			{
				_NotifyIcon1.MouseDoubleClick += value2;
			}
		}
	}

	internal virtual Timer BalloonPopup
	{
		[DebuggerNonUserCode]
		get
		{
			return _BalloonPopup;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = BalloonPopup_Tick;
			if (_BalloonPopup != null)
			{
				_BalloonPopup.Tick -= value2;
			}
			_BalloonPopup = value;
			if (_BalloonPopup != null)
			{
				_BalloonPopup.Tick += value2;
			}
		}
	}

	internal virtual Button Button1
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button1_Click;
			if (_Button1 != null)
			{
				_Button1.Click -= value2;
			}
			_Button1 = value;
			if (_Button1 != null)
			{
				_Button1.Click += value2;
			}
		}
	}

	internal virtual Button Button2
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button2;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button2_Click;
			if (_Button2 != null)
			{
				_Button2.Click -= value2;
			}
			_Button2 = value;
			if (_Button2 != null)
			{
				_Button2.Click += value2;
			}
		}
	}

	internal virtual Button Button3
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button3;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button3_Click;
			if (_Button3 != null)
			{
				_Button3.Click -= value2;
			}
			_Button3 = value;
			if (_Button3 != null)
			{
				_Button3.Click += value2;
			}
		}
	}

	internal virtual Button Button4
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button4;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button4_Click;
			if (_Button4 != null)
			{
				_Button4.Click -= value2;
			}
			_Button4 = value;
			if (_Button4 != null)
			{
				_Button4.Click += value2;
			}
		}
	}

	internal virtual Button Button5
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button5;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button5_Click;
			if (_Button5 != null)
			{
				_Button5.Click -= value2;
			}
			_Button5 = value;
			if (_Button5 != null)
			{
				_Button5.Click += value2;
			}
		}
	}

	internal virtual Button Button6
	{
		[DebuggerNonUserCode]
		get
		{
			return _Button6;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Button6_Click;
			if (_Button6 != null)
			{
				_Button6.Click -= value2;
			}
			_Button6 = value;
			if (_Button6 != null)
			{
				_Button6.Click += value2;
			}
		}
	}

	internal virtual ProgressBar ProgressBar1
	{
		[DebuggerNonUserCode]
		get
		{
			return _ProgressBar1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = ProgressBar1_Click;
			if (_ProgressBar1 != null)
			{
				_ProgressBar1.Click -= value2;
			}
			_ProgressBar1 = value;
			if (_ProgressBar1 != null)
			{
				_ProgressBar1.Click += value2;
			}
		}
	}

	internal virtual ContextMenuStrip ContextMenuStrip1
	{
		[DebuggerNonUserCode]
		get
		{
			return _ContextMenuStrip1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			CancelEventHandler value2 = ContextMenuStrip1_Opening;
			if (_ContextMenuStrip1 != null)
			{
				_ContextMenuStrip1.Opening -= value2;
			}
			_ContextMenuStrip1 = value;
			if (_ContextMenuStrip1 != null)
			{
				_ContextMenuStrip1.Opening += value2;
			}
		}
	}

	internal virtual ToolStripMenuItem StartScanToolStripMenuItem
	{
		[DebuggerNonUserCode]
		get
		{
			return _StartScanToolStripMenuItem;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = StartScanToolStripMenuItem_Click;
			if (_StartScanToolStripMenuItem != null)
			{
				_StartScanToolStripMenuItem.Click -= value2;
			}
			_StartScanToolStripMenuItem = value;
			if (_StartScanToolStripMenuItem != null)
			{
				_StartScanToolStripMenuItem.Click += value2;
			}
		}
	}

	internal virtual ToolStripMenuItem RegisterToolStripMenuItem
	{
		[DebuggerNonUserCode]
		get
		{
			return _RegisterToolStripMenuItem;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = RegisterToolStripMenuItem_Click;
			if (_RegisterToolStripMenuItem != null)
			{
				_RegisterToolStripMenuItem.Click -= value2;
			}
			_RegisterToolStripMenuItem = value;
			if (_RegisterToolStripMenuItem != null)
			{
				_RegisterToolStripMenuItem.Click += value2;
			}
		}
	}

	internal virtual ToolStripMenuItem QuitToolStripMenuItem
	{
		[DebuggerNonUserCode]
		get
		{
			return _QuitToolStripMenuItem;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = QuitToolStripMenuItem_Click;
			if (_QuitToolStripMenuItem != null)
			{
				_QuitToolStripMenuItem.Click -= value2;
			}
			_QuitToolStripMenuItem = value;
			if (_QuitToolStripMenuItem != null)
			{
				_QuitToolStripMenuItem.Click += value2;
			}
		}
	}

	internal virtual PictureBox PictureBox2
	{
		[DebuggerNonUserCode]
		get
		{
			return _PictureBox2;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			MouseEventHandler value2 = PictureBox2_MouseUp;
			MouseEventHandler value3 = PictureBox2_MouseDown;
			EventHandler value4 = PictureBox2_Click;
			if (_PictureBox2 != null)
			{
				_PictureBox2.MouseUp -= value2;
				_PictureBox2.MouseDown -= value3;
				_PictureBox2.Click -= value4;
			}
			_PictureBox2 = value;
			if (_PictureBox2 != null)
			{
				_PictureBox2.MouseUp += value2;
				_PictureBox2.MouseDown += value3;
				_PictureBox2.Click += value4;
			}
		}
	}

	internal virtual Timer ScanBar
	{
		[DebuggerNonUserCode]
		get
		{
			return _ScanBar;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = LocalBlocker_Tick;
			if (_ScanBar != null)
			{
				_ScanBar.Tick -= value2;
			}
			_ScanBar = value;
			if (_ScanBar != null)
			{
				_ScanBar.Tick += value2;
			}
		}
	}

	internal virtual Label Label2
	{
		[DebuggerNonUserCode]
		get
		{
			return _Label2;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_Label2 = value;
		}
	}

	internal virtual Label Label3
	{
		[DebuggerNonUserCode]
		get
		{
			return _Label3;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Label3_Click;
			if (_Label3 != null)
			{
				_Label3.Click -= value2;
			}
			_Label3 = value;
			if (_Label3 != null)
			{
				_Label3.Click += value2;
			}
		}
	}

	internal virtual Timer ScanResults
	{
		[DebuggerNonUserCode]
		get
		{
			return _ScanResults;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = ScanResults_Tick;
			if (_ScanResults != null)
			{
				_ScanResults.Tick -= value2;
			}
			_ScanResults = value;
			if (_ScanResults != null)
			{
				_ScanResults.Tick += value2;
			}
		}
	}

	internal virtual ListView ListView1
	{
		[DebuggerNonUserCode]
		get
		{
			return _ListView1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = ListView1_SelectedIndexChanged;
			if (_ListView1 != null)
			{
				_ListView1.SelectedIndexChanged -= value2;
			}
			_ListView1 = value;
			if (_ListView1 != null)
			{
				_ListView1.SelectedIndexChanged += value2;
			}
		}
	}

	internal virtual ColumnHeader ColumnHeader1
	{
		[DebuggerNonUserCode]
		get
		{
			return _ColumnHeader1;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_ColumnHeader1 = value;
		}
	}

	internal virtual ColumnHeader ColumnHeader2
	{
		[DebuggerNonUserCode]
		get
		{
			return _ColumnHeader2;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_ColumnHeader2 = value;
		}
	}

	internal virtual ColumnHeader ColumnHeader3
	{
		[DebuggerNonUserCode]
		get
		{
			return _ColumnHeader3;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_ColumnHeader3 = value;
		}
	}

	internal virtual Label Label4
	{
		[DebuggerNonUserCode]
		get
		{
			return _Label4;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_Label4 = value;
		}
	}

	internal virtual Label VirusCount
	{
		[DebuggerNonUserCode]
		get
		{
			return _VirusCount;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_VirusCount = value;
		}
	}

	internal virtual Label Label5
	{
		[DebuggerNonUserCode]
		get
		{
			return _Label5;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			_Label5 = value;
		}
	}

	internal virtual Timer Timer2
	{
		[DebuggerNonUserCode]
		get
		{
			return _Timer2;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = Timer2_Tick;
			if (_Timer2 != null)
			{
				_Timer2.Tick -= value2;
			}
			_Timer2 = value;
			if (_Timer2 != null)
			{
				_Timer2.Tick += value2;
			}
		}
	}

	internal virtual Timer RegistrationUpdate
	{
		[DebuggerNonUserCode]
		get
		{
			return _RegistrationUpdate;
		}
		[MethodImpl(MethodImplOptions.Synchronized)]
		[DebuggerNonUserCode]
		set
		{
			EventHandler value2 = RegistrationUpdate_Tick;
			if (_RegistrationUpdate != null)
			{
				_RegistrationUpdate.Tick -= value2;
			}
			_RegistrationUpdate = value;
			if (_RegistrationUpdate != null)
			{
				_RegistrationUpdate.Tick += value2;
			}
		}
	}

	public Form1()
	{
		base.MouseDown += Form1_MouseDown1;
		base.MouseUp += Form1_MouseUp1;
		base.FormClosing += Form1_FormClosing;
		base.Load += Form1_Load;
		__ENCAddToList(this);
		ref Point appLocation = ref AppLocation;
		appLocation = new Point(0, 0);
		ref Point curLocation = ref CurLocation;
		curLocation = new Point(0, 0);
		process = null;
		InitializeComponent();
	}

	[DebuggerNonUserCode]
	private static void __ENCAddToList(object value)
	{
		checked
		{
			lock (__ENCList)
			{
				if (__ENCList.Count == __ENCList.Capacity)
				{
					int num = 0;
					int num2 = __ENCList.Count - 1;
					int num3 = 0;
					while (true)
					{
						int num4 = num3;
						int num5 = num2;
						if (num4 > num5)
						{
							break;
						}
						WeakReference weakReference = __ENCList[num3];
						if (weakReference.IsAlive)
						{
							if (num3 != num)
							{
								__ENCList[num] = __ENCList[num3];
							}
							num++;
						}
						num3++;
					}
					__ENCList.RemoveRange(num, __ENCList.Count - num);
					__ENCList.Capacity = __ENCList.Count;
				}
				__ENCList.Add(new WeakReference(RuntimeHelpers.GetObjectValue(value)));
			}
		}
	}

	[STAThread]
	public static void Main()
	{
		Application.Run(MyProject.Forms.Form1);
	}

	[DebuggerNonUserCode]
	protected override void Dispose(bool disposing)
	{
		try
		{
			if ((disposing && components != null) ? true : false)
			{
				components.Dispose();
			}
		}
		finally
		{
			base.Dispose(disposing);
		}
	}

	[System.Diagnostics.DebuggerStepThrough]
	private void InitializeComponent()
	{
		components = new System.ComponentModel.Container();
		System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(System_Security_2010.Form1));
		Timer1 = new System.Windows.Forms.Timer(components);
		PictureBox1 = new System.Windows.Forms.PictureBox();
		Label1 = new System.Windows.Forms.Label();
		NotifyIcon1 = new System.Windows.Forms.NotifyIcon(components);
		ContextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components);
		StartScanToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
		RegisterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
		QuitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
		BalloonPopup = new System.Windows.Forms.Timer(components);
		Button1 = new System.Windows.Forms.Button();
		Button2 = new System.Windows.Forms.Button();
		Button3 = new System.Windows.Forms.Button();
		Button4 = new System.Windows.Forms.Button();
		Button5 = new System.Windows.Forms.Button();
		Button6 = new System.Windows.Forms.Button();
		ProgressBar1 = new System.Windows.Forms.ProgressBar();
		PictureBox2 = new System.Windows.Forms.PictureBox();
		ScanBar = new System.Windows.Forms.Timer(components);
		Label2 = new System.Windows.Forms.Label();
		Label3 = new System.Windows.Forms.Label();
		ScanResults = new System.Windows.Forms.Timer(components);
		ListView1 = new System.Windows.Forms.ListView();
		ColumnHeader1 = new System.Windows.Forms.ColumnHeader();
		ColumnHeader2 = new System.Windows.Forms.ColumnHeader();
		ColumnHeader3 = new System.Windows.Forms.ColumnHeader();
		Label4 = new System.Windows.Forms.Label();
		VirusCount = new System.Windows.Forms.Label();
		Label5 = new System.Windows.Forms.Label();
		Timer2 = new System.Windows.Forms.Timer(components);
		RegistrationUpdate = new System.Windows.Forms.Timer(components);
		((System.ComponentModel.ISupportInitialize)PictureBox1).BeginInit();
		ContextMenuStrip1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)PictureBox2).BeginInit();
		SuspendLayout();
		Timer1.Interval = 2;
		PictureBox1.BackColor = System.Drawing.Color.Transparent;
		PictureBox1.Image = System_Security_2010.My.Resources.Resources.Image;
		System.Drawing.Point point2 = (PictureBox1.Location = new System.Drawing.Point(12, 12));
		PictureBox1.Name = "PictureBox1";
		System.Drawing.Size size2 = (PictureBox1.Size = new System.Drawing.Size(88, 95));
		PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
		PictureBox1.TabIndex = 0;
		PictureBox1.TabStop = false;
		Label1.AutoSize = true;
		Label1.BackColor = System.Drawing.Color.Transparent;
		Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		Label1.ForeColor = System.Drawing.Color.White;
		point2 = (Label1.Location = new System.Drawing.Point(106, 48));
		Label1.Name = "Label1";
		size2 = (Label1.Size = new System.Drawing.Size(183, 20));
		Label1.TabIndex = 1;
		Label1.Text = "System Security 2010";
		NotifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Warning;
		NotifyIcon1.BalloonTipText = "Warning!\r\nPotential threats were found on your PC!\r\nRegister System Security to Remove these Threats!";
		NotifyIcon1.BalloonTipTitle = "System Security 2010";
		NotifyIcon1.ContextMenuStrip = ContextMenuStrip1;
		NotifyIcon1.Icon = (System.Drawing.Icon)resources.GetObject("NotifyIcon1.Icon");
		NotifyIcon1.Text = "System Security";
		NotifyIcon1.Visible = true;
		ContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[3] { StartScanToolStripMenuItem, RegisterToolStripMenuItem, QuitToolStripMenuItem });
		ContextMenuStrip1.Name = "ContextMenuStrip1";
		size2 = (ContextMenuStrip1.Size = new System.Drawing.Size(127, 70));
		StartScanToolStripMenuItem.Image = System_Security_2010.My.Resources.Resources.button_blue_play;
		StartScanToolStripMenuItem.Name = "StartScanToolStripMenuItem";
		size2 = (StartScanToolStripMenuItem.Size = new System.Drawing.Size(126, 22));
		StartScanToolStripMenuItem.Text = "Start Scan";
		RegisterToolStripMenuItem.Image = System_Security_2010.My.Resources.Resources.@lock;
		RegisterToolStripMenuItem.Name = "RegisterToolStripMenuItem";
		size2 = (RegisterToolStripMenuItem.Size = new System.Drawing.Size(126, 22));
		RegisterToolStripMenuItem.Text = "Register";
		QuitToolStripMenuItem.Name = "QuitToolStripMenuItem";
		size2 = (QuitToolStripMenuItem.Size = new System.Drawing.Size(126, 22));
		QuitToolStripMenuItem.Text = "Quit";
		BalloonPopup.Enabled = true;
		BalloonPopup.Interval = 40000;
		Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button1.Image = System_Security_2010.My.Resources.Resources.button_blue_play;
		Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		point2 = (Button1.Location = new System.Drawing.Point(12, 121));
		Button1.Name = "Button1";
		size2 = (Button1.Size = new System.Drawing.Size(126, 44));
		Button1.TabIndex = 3;
		Button1.Text = "Start Virus Scan";
		Button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		Button1.UseVisualStyleBackColor = true;
		Button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button2.Image = System_Security_2010.My.Resources.Resources.@lock;
		Button2.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
		point2 = (Button2.Location = new System.Drawing.Point(12, 385));
		Button2.Name = "Button2";
		size2 = (Button2.Size = new System.Drawing.Size(126, 50));
		Button2.TabIndex = 4;
		Button2.Text = "Register Product";
		Button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		Button2.UseVisualStyleBackColor = true;
		Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button3.Image = System_Security_2010.My.Resources.Resources.tools;
		Button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		point2 = (Button3.Location = new System.Drawing.Point(12, 335));
		Button3.Name = "Button3";
		size2 = (Button3.Size = new System.Drawing.Size(126, 44));
		Button3.TabIndex = 5;
		Button3.Text = "SS10 Settings";
		Button3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		Button3.UseVisualStyleBackColor = true;
		Button4.BackColor = System.Drawing.Color.Green;
		Button4.FlatAppearance.BorderColor = System.Drawing.Color.Black;
		Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button4.ForeColor = System.Drawing.Color.LimeGreen;
		Button4.Image = System_Security_2010.My.Resources.Resources.shield;
		Button4.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
		point2 = (Button4.Location = new System.Drawing.Point(12, 271));
		Button4.Name = "Button4";
		size2 = (Button4.Size = new System.Drawing.Size(126, 58));
		Button4.TabIndex = 6;
		Button4.Text = "Website Saftey: ON";
		Button4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
		Button4.UseVisualStyleBackColor = false;
		Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button5.Image = System_Security_2010.My.Resources.Resources.recycle_bin;
		Button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		point2 = (Button5.Location = new System.Drawing.Point(12, 171));
		Button5.Name = "Button5";
		size2 = (Button5.Size = new System.Drawing.Size(126, 44));
		Button5.TabIndex = 7;
		Button5.Text = "Remove Viruses";
		Button5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		Button5.UseVisualStyleBackColor = true;
		Button6.BackColor = System.Drawing.Color.Green;
		Button6.FlatAppearance.BorderColor = System.Drawing.Color.Black;
		Button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
		Button6.ForeColor = System.Drawing.Color.LimeGreen;
		Button6.Image = System_Security_2010.My.Resources.Resources.chart_bar;
		Button6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		point2 = (Button6.Location = new System.Drawing.Point(12, 221));
		Button6.Name = "Button6";
		size2 = (Button6.Size = new System.Drawing.Size(126, 44));
		Button6.TabIndex = 8;
		Button6.Text = "Protection: ON";
		Button6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		Button6.UseVisualStyleBackColor = false;
		ProgressBar1.BackColor = System.Drawing.Color.Navy;
		ProgressBar1.ForeColor = System.Drawing.Color.FromArgb(128, 255, 255);
		point2 = (ProgressBar1.Location = new System.Drawing.Point(12, 441));
		ProgressBar1.Maximum = 500;
		ProgressBar1.Name = "ProgressBar1";
		size2 = (ProgressBar1.Size = new System.Drawing.Size(564, 24));
		ProgressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
		ProgressBar1.TabIndex = 9;
		PictureBox2.BackColor = System.Drawing.Color.Transparent;
		PictureBox2.Image = System_Security_2010.My.Resources.Resources.Keyreg;
		point2 = (PictureBox2.Location = new System.Drawing.Point(673, 12));
		PictureBox2.Name = "PictureBox2";
		size2 = (PictureBox2.Size = new System.Drawing.Size(76, 77));
		PictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
		PictureBox2.TabIndex = 10;
		PictureBox2.TabStop = false;
		ScanBar.Enabled = true;
		Label2.AutoSize = true;
		Label2.BackColor = System.Drawing.Color.Transparent;
		Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		Label2.ForeColor = System.Drawing.Color.White;
		point2 = (Label2.Location = new System.Drawing.Point(665, 92));
		Label2.Name = "Label2";
		size2 = (Label2.Size = new System.Drawing.Size(94, 15));
		Label2.TabIndex = 11;
		Label2.Text = "Unregistered.";
		Label3.AutoSize = true;
		Label3.BackColor = System.Drawing.Color.Transparent;
		Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		Label3.ForeColor = System.Drawing.Color.White;
		point2 = (Label3.Location = new System.Drawing.Point(774, 6));
		Label3.Name = "Label3";
		size2 = (Label3.Size = new System.Drawing.Size(16, 15));
		Label3.TabIndex = 12;
		Label3.Text = "X";
		ScanResults.Enabled = true;
		ScanResults.Interval = 750;
		ListView1.BackColor = System.Drawing.Color.FromArgb(0, 0, 64);
		ListView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		ListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[3] { ColumnHeader1, ColumnHeader2, ColumnHeader3 });
		ListView1.ForeColor = System.Drawing.Color.White;
		point2 = (ListView1.Location = new System.Drawing.Point(144, 121));
		ListView1.Name = "ListView1";
		size2 = (ListView1.Size = new System.Drawing.Size(643, 314));
		ListView1.TabIndex = 13;
		ListView1.UseCompatibleStateImageBehavior = false;
		ListView1.View = System.Windows.Forms.View.Details;
		ColumnHeader1.Text = "Type";
		ColumnHeader1.Width = 100;
		ColumnHeader2.Text = "Name";
		ColumnHeader2.Width = 150;
		ColumnHeader3.Text = "Details";
		ColumnHeader3.Width = 392;
		Label4.AutoSize = true;
		Label4.BackColor = System.Drawing.Color.Transparent;
		Label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		Label4.ForeColor = System.Drawing.Color.White;
		point2 = (Label4.Location = new System.Drawing.Point(582, 445));
		Label4.Name = "Label4";
		size2 = (Label4.Size = new System.Drawing.Size(119, 15));
		Label4.TabIndex = 14;
		Label4.Text = "Viruses Detected:";
		VirusCount.AutoSize = true;
		VirusCount.BackColor = System.Drawing.Color.Transparent;
		VirusCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		VirusCount.ForeColor = System.Drawing.Color.Red;
		point2 = (VirusCount.Location = new System.Drawing.Point(696, 441));
		VirusCount.Name = "VirusCount";
		size2 = (VirusCount.Size = new System.Drawing.Size(24, 25));
		VirusCount.TabIndex = 15;
		VirusCount.Text = "0";
		Label5.AutoSize = true;
		Label5.BackColor = System.Drawing.Color.Transparent;
		Label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 0);
		Label5.ForeColor = System.Drawing.Color.White;
		point2 = (Label5.Location = new System.Drawing.Point(193, 68));
		Label5.Name = "Label5";
		size2 = (Label5.Size = new System.Drawing.Size(121, 16));
		Label5.TabIndex = 16;
		Label5.Text = "Protecting your PC.";
		Timer2.Enabled = true;
		RegistrationUpdate.Enabled = true;
		System.Drawing.SizeF sizeF2 = (AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f));
		AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		BackgroundImage = System_Security_2010.My.Resources.Resources.Background;
		BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
		size2 = (ClientSize = new System.Drawing.Size(799, 475));
		Controls.Add(Label5);
		Controls.Add(VirusCount);
		Controls.Add(Label4);
		Controls.Add(ListView1);
		Controls.Add(Label3);
		Controls.Add(Label2);
		Controls.Add(PictureBox2);
		Controls.Add(ProgressBar1);
		Controls.Add(Button6);
		Controls.Add(Button5);
		Controls.Add(Button1);
		Controls.Add(Button2);
		Controls.Add(Button4);
		Controls.Add(Label1);
		Controls.Add(Button3);
		Controls.Add(PictureBox1);
		FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
		Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
		Name = "Form1";
		ShowInTaskbar = false;
		StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
		Text = "System Security 2010";
		TopMost = true;
		((System.ComponentModel.ISupportInitialize)PictureBox1).EndInit();
		ContextMenuStrip1.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)PictureBox2).EndInit();
		ResumeLayout(false);
		PerformLayout();
	}

	public static void AddStartup(string Name, string Path)
	{
	}

	private void Form1_FormClosing(object sender, FormClosingEventArgs e)
	{
		e.Cancel = true;
	}

	private int RandomNumber()
	{
		Random random = new Random();
		return random.Next(0, 10);
	}

	private int RandomTimer()
	{
		Random random = new Random();
		return random.Next(1, 3000);
	}

	private void Form1_Load(object sender, EventArgs e)
	{
		if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			Button2.Enabled = false;
			Button2.Text = "Registered.";
			Label2.ForeColor = Color.Green;
			Label2.Text = "  Registered.";
			Button2.Image = Resources.unlock;
			RegisterToolStripMenuItem.Enabled = false;
			RegisterToolStripMenuItem.Text = "Registered.";
			RegisterToolStripMenuItem.Image = Resources.unlock;
		}
		else
		{
			((Computer)MyProject.Computer).get_Audio().Play((Stream)Resources.Virus_Detected, (AudioPlayMode)1);
			NotifyIcon1.ShowBalloonTip(10000);
		}
		NotifyIcon1.Visible = true;
	}

	private void Sync()
	{
		AppLocation = Location;
		CurLocation = Cursor.Position;
	}

	private void Timer1_Tick(object sender, EventArgs e)
	{
		Location = AppLocation - (Size)CurLocation + (Size)Cursor.Position;
	}

	private void Form1_MouseDown1(object sender, MouseEventArgs e)
	{
		Timer1.Enabled = true;
		Timer1.Start();
		Sync();
	}

	private void Form1_MouseUp1(object sender, MouseEventArgs e)
	{
		Timer1.Stop();
		Sync();
	}

	private void PictureBox1_Click(object sender, EventArgs e)
	{
	}

	private void PictureBox1_MouseDown(object sender, MouseEventArgs e)
	{
		Timer1.Enabled = true;
		Timer1.Start();
		Sync();
	}

	private void PictureBox1_MouseHover(object sender, EventArgs e)
	{
	}

	private void PictureBox1_MouseUp(object sender, MouseEventArgs e)
	{
		Timer1.Stop();
		Sync();
	}

	private void BalloonPopup_Tick(object sender, EventArgs e)
	{
		if (!((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			NotifyIcon1.ShowBalloonTip(10000);
			((Computer)MyProject.Computer).get_Audio().Play((Stream)Resources.Virus_Detected, (AudioPlayMode)1);
			CenterToScreen();
		}
		NotifyIcon1.Visible = true;
	}

	private void QuitToolStripMenuItem_Click(object sender, EventArgs e)
	{
		if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			Visible = false;
		}
		else
		{
			MyProject.Forms.Quit.Show();
		}
	}

	private void ContextMenuStrip1_Opening(object sender, CancelEventArgs e)
	{
	}

	private void Button2_Click(object sender, EventArgs e)
	{
		MyProject.Forms.Register.Show();
	}

	private void RegisterToolStripMenuItem_Click(object sender, EventArgs e)
	{
		MyProject.Forms.Register.Show();
	}

	private void Button5_Click(object sender, EventArgs e)
	{
		//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
		if ((double)ListView1.Items.Count <= Conversions.ToDouble("0"))
		{
			((Computer)MyProject.Computer).get_Audio().Play((Stream)Resources.No_Viruses, (AudioPlayMode)1);
		}
		else if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			ScanResults.Stop();
			ScanBar.Stop();
			ProgressBar1.Value = Conversions.ToInteger("500");
			ListView1.Items.Clear();
			Interaction.MsgBox((object)"The Viruses were removed!, Please Reboot your Computer to Complete the Removal Process.", (MsgBoxStyle)48, (object)"SS10");
			VirusCount.Text = "0";
		}
		else
		{
			((Computer)MyProject.Computer).get_Audio().PlaySystemSound(SystemSounds.Hand);
			MyProject.Forms.Quit.Show();
		}
	}

	private void NotifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
	{
		if (!Visible)
		{
			Visible = true;
		}
	}

	private void PictureBox2_Click(object sender, EventArgs e)
	{
	}

	private void PictureBox2_MouseDown(object sender, MouseEventArgs e)
	{
		Timer1.Enabled = true;
		Timer1.Start();
		Sync();
	}

	private void PictureBox2_MouseUp(object sender, MouseEventArgs e)
	{
		Timer1.Stop();
		Sync();
	}

	private void Label3_Click(object sender, EventArgs e)
	{
		if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			Visible = false;
		}
		else
		{
			MyProject.Forms.Quit.Show();
		}
	}

	private void LocalBlocker_Tick(object sender, EventArgs e)
	{
		if ((double)ProgressBar1.Value < Conversions.ToDouble("500"))
		{
			ProgressBar1.Increment(1);
		}
		else
		{
			ScanBar.Enabled = false;
		}
	}

	private void ProgressBar1_Click(object sender, EventArgs e)
	{
	}

	private void ScanResults_Tick(object sender, EventArgs e)
	{
		if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			return;
		}
		if ((double)ProgressBar1.Value < Conversions.ToDouble("500"))
		{
			switch (RandomNumber())
			{
			case 0:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Trojan");
				listViewItem.SubItems.Add("W32.Infecious");
				listViewItem.SubItems.Add("Injects files with unwanted malware.");
				break;
			}
			case 1:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Worm");
				listViewItem.SubItems.Add("W32.Conficker");
				listViewItem.SubItems.Add("Spreads over Instant chat messengers and Emails.");
				break;
			}
			case 2:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Rogue Component");
				listViewItem.SubItems.Add("Green AV");
				listViewItem.SubItems.Add("A Component that can Reinstall a Rouge/Virus.");
				break;
			}
			case 3:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Cookie");
				listViewItem.SubItems.Add("Tracking Cookie");
				listViewItem.SubItems.Add("Records the Websites you visit.");
				break;
			}
			case 4:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Trojan");
				listViewItem.SubItems.Add("W32.SkinTrim");
				listViewItem.SubItems.Add("Displays a 'Emotions' Tab in Outlook Express");
				break;
			}
			case 5:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Trojan");
				listViewItem.SubItems.Add("W32.Hangame");
				listViewItem.SubItems.Add("Logs Keystrokes, Process List and Browser History.");
				break;
			}
			case 6:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Worm");
				listViewItem.SubItems.Add("Email-Worm.Win32.Anset.a");
				listViewItem.SubItems.Add("Sends itself through Outlook Express.");
				break;
			}
			case 7:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Worm");
				listViewItem.SubItems.Add("W32.Yimfoca");
				listViewItem.SubItems.Add("Spreads through Yahoo!, Downloads Additional Malware.");
				break;
			}
			case 8:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Trojan");
				listViewItem.SubItems.Add("Mebratix.B");
				listViewItem.SubItems.Add("Alters the MBR of the Target Computer.");
				break;
			}
			case 9:
			{
				ListViewItem listViewItem = ListView1.Items.Add("Rogue Component");
				listViewItem.SubItems.Add("VirusProtector");
				listViewItem.SubItems.Add("A Component that can Reinstall a Rouge/Virus.");
				break;
			}
			}
			VirusCount.Text = Conversions.ToString(ListView1.Items.Count);
		}
		else
		{
			ScanResults.Enabled = false;
		}
	}

	private void ListView1_SelectedIndexChanged(object sender, EventArgs e)
	{
	}

	private void Button1_Click(object sender, EventArgs e)
	{
		if ((double)ProgressBar1.Value == Conversions.ToDouble("500"))
		{
			ScanResults.Start();
			ProgressBar1.Value = Conversions.ToInteger("0");
			ScanBar.Start();
			ListView1.Items.Clear();
			VirusCount.Text = "0";
		}
		else
		{
			ScanResults.Stop();
			ScanBar.Stop();
			ProgressBar1.Value = Conversions.ToInteger("500");
		}
	}

	private void Timer2_Tick(object sender, EventArgs e)
	{
		ScanResults.Interval = RandomTimer();
		if (ScanBar.Enabled)
		{
			Button1.Text = "Stop Virus Scan";
			Button1.Image = Resources.button_blue_stop;
			StartScanToolStripMenuItem.Text = "Stop Virus Scan";
			StartScanToolStripMenuItem.Image = Resources.button_blue_stop;
		}
		else
		{
			Button1.Text = "Start Virus Scan";
			Button1.Image = Resources.button_blue_play;
			StartScanToolStripMenuItem.Text = "Start Virus Scan";
			StartScanToolStripMenuItem.Image = Resources.button_blue_play;
		}
		if (Operators.CompareString(VirusCount.Text, "0", false) == 0)
		{
			VirusCount.ForeColor = Color.LimeGreen;
		}
		else
		{
			VirusCount.ForeColor = Color.Red;
		}
	}

	private void Button6_Click(object sender, EventArgs e)
	{
		if (Operators.CompareString(Button6.Text, "Protection: ON", false) == 0)
		{
			Button6.Text = "Protection: OFF";
			Button6.ForeColor = Color.OrangeRed;
			Button6.BackColor = Color.DarkRed;
			Button6.Image = Resources.warning_black;
		}
		else
		{
			Button6.Text = "Protection: ON";
			Button6.ForeColor = Color.LimeGreen;
			Button6.BackColor = Color.Green;
			Button6.Image = Resources.chart_bar;
		}
	}

	private void Button3_Click(object sender, EventArgs e)
	{
		MyProject.Forms.Settings.Show();
	}

	private void Button4_Click(object sender, EventArgs e)
	{
		if (Operators.CompareString(Button4.Text, "Website Saftey: ON", false) == 0)
		{
			Button4.Text = "Website Saftey: OFF";
			Button4.ForeColor = Color.OrangeRed;
			Button4.BackColor = Color.DarkRed;
			Button4.Image = Resources.warning_black;
		}
		else
		{
			Button4.Text = "Website Saftey: ON";
			Button4.ForeColor = Color.LimeGreen;
			Button4.BackColor = Color.Green;
			Button4.Image = Resources.shield;
		}
	}

	private void StartScanToolStripMenuItem_Click(object sender, EventArgs e)
	{
		if ((double)ProgressBar1.Value == Conversions.ToDouble("500"))
		{
			ScanResults.Start();
			ProgressBar1.Value = Conversions.ToInteger("0");
			ScanBar.Start();
			ListView1.Items.Clear();
			VirusCount.Text = "0";
		}
		else
		{
			((Computer)MyProject.Computer).get_Audio().PlaySystemSound(SystemSounds.Hand);
		}
	}

	private void RegistrationUpdate_Tick(object sender, EventArgs e)
	{
		if (((ServerComputer)MyProject.Computer).get_FileSystem().FileExists("RegSS10.dll.egisenc"))
		{
			Button2.Enabled = false;
			Button2.Text = "Registered.";
			Label2.ForeColor = Color.Green;
			Label2.Text = "  Registered.";
			Button2.Image = Resources.unlock;
			RegisterToolStripMenuItem.Enabled = false;
			RegisterToolStripMenuItem.Text = "Registered.";
			RegisterToolStripMenuItem.Image = Resources.unlock;
		}
		else
		{
			Button2.Enabled = true;
			Button2.Text = "Register Product";
			Label2.ForeColor = Color.White;
			Label2.Text = "Unregistered.";
			Button2.Image = Resources.@lock;
			RegisterToolStripMenuItem.Enabled = true;
			RegisterToolStripMenuItem.Text = "Register";
			RegisterToolStripMenuItem.Image = Resources.@lock;
		}
	}

	private void Button7_Click(object sender, EventArgs e)
	{
	}
}
