Code:
using System;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace FOVCHANGERwaw
{
public class Form1 : Form
{
private TextBox textBox1;
private Button button1;
private Button button2;
private Button button3;
private Container components;
public Form1()
{
// ISSUE: fault handler
try
{
this.InitializeComponent();
}
__fault
{
base.Dispose(true);
}
}
private void \u007EForm1()
{
Container container = this.components;
if (container == null)
return;
container.Dispose();
}
private void InitializeComponent()
{
this.textBox1 = new TextBox();
this.button1 = new Button();
this.button2 = new Button();
this.button3 = new Button();
this.SuspendLayout();
this.textBox1.Font = new Font("Microsoft Sans Serif", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.textBox1.Location = new Point(7, 72);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(104, 24);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "Enter FOV";
this.button1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button1.Location = new Point(117, 40);
this.button1.Name = "button1";
this.button1.Size = new Size(166, 46);
this.button1.TabIndex = 1;
this.button1.Text = "Singleplayer FOV";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new EventHandler(this.button1_Click);
this.button2.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button2.Location = new Point(117, 86);
this.button2.Name = "button2";
this.button2.Size = new Size(166, 46);
this.button2.TabIndex = 2;
this.button2.Text = "Multiplayer FOV";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new EventHandler(this.button2_Click);
this.button3.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.button3.Location = new Point(2, 1);
this.button3.Name = "button3";
this.button3.Size = new Size(281, 33);
this.button3.TabIndex = 3;
this.button3.Text = "Read Me";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new EventHandler(this.button3_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(287, 134);
this.Controls.Add((Control) this.button3);
this.Controls.Add((Control) this.button2);
this.Controls.Add((Control) this.button1);
this.Controls.Add((Control) this.textBox1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
private unsafe void button1_Click(object sender, EventArgs e)
{
string text = this.textBox1.Text;
float num1 = Convert.ToSingle(text);
float num2 = 0.0f;
uint num3 = 0U;
HWND__* windowW = \u003CModule\u003E.FindWindowW((char*) 0, (char*) &\u003CModule\u003E.\u003F\u003F_C\u0040_1BM\u0040FOHENENA\u0040\u003F\u0024AAC\u003F\u0024AAa\u003F\u0024AAl\u003F\u0024AAl\u003F\u0024AA\u003F5\u003F\u0024AAo\u003F\u0024AAf\u003F\u0024AA\u003F5\u003F\u0024AAD\u003F\u0024AAu\u003F\u0024AAt\u003F\u0024AAy\u003F\u0024AA\u003F\u0024KO\u003F\u0024AA\u003F\u0024AA\u0040);
if ((IntPtr) windowW != IntPtr.Zero)
{
int num4 = (int) \u003CModule\u003E.GetWindowThreadProcessId(windowW, &num3);
}
void* voidPtr = \u003CModule\u003E.OpenProcess(1080U, 0, num3);
\u003CModule\u003E.ReadProcessMemory(voidPtr, (void*) 35410368, (void*) &num2, 4U, (uint*) 0);
if ((double) num2 == 0.0)
{
int num5 = (int) MessageBox.Show("You Clicked The Wrong Button, Click Multiplayer");
}
else
{
\u003CModule\u003E.WriteProcessMemory(voidPtr, (void*) 35410368, (void*) &num1, 4U, (uint*) 0);
\u003CModule\u003E.VirtualProtectEx(voidPtr, (void*) 35410368, 256U, 64U, (uint*) 0);
int num6 = (int) MessageBox.Show("Your FOV Has Been Changed To " + text);
}
}
private unsafe void button2_Click(object sender, EventArgs e)
{
string text = this.textBox1.Text;
float num1 = Convert.ToSingle(text);
float num2 = 0.0f;
uint num3 = 0U;
HWND__* windowW = \u003CModule\u003E.FindWindowW((char*) 0, (char*) &\u003CModule\u003E.\u003F\u003F_C\u0040_1BM\u0040FOHENENA\u0040\u003F\u0024AAC\u003F\u0024AAa\u003F\u0024AAl\u003F\u0024AAl\u003F\u0024AA\u003F5\u003F\u0024AAo\u003F\u0024AAf\u003F\u0024AA\u003F5\u003F\u0024AAD\u003F\u0024AAu\u003F\u0024AAt\u003F\u0024AAy\u003F\u0024AA\u003F\u0024KO\u003F\u0024AA\u003F\u0024AA\u0040);
if ((IntPtr) windowW != IntPtr.Zero)
{
int num4 = (int) \u003CModule\u003E.GetWindowThreadProcessId(windowW, &num3);
}
void* voidPtr = \u003CModule\u003E.OpenProcess(1080U, 0, num3);
\u003CModule\u003E.ReadProcessMemory(voidPtr, (void*) 255827828, (void*) &num2, 4U, (uint*) 0);
if ((double) num2 == 0.0)
{
int num5 = (int) MessageBox.Show("You Clicked The Wrong Button, Click Singleplayer");
}
else
{
\u003CModule\u003E.WriteProcessMemory(voidPtr, (void*) 255827828, (void*) &num1, 4U, (uint*) 0);
\u003CModule\u003E.VirtualProtectEx(voidPtr, (void*) 255827828, 256U, 64U, (uint*) 0);
int num6 = (int) MessageBox.Show("Your FOV Has Been Changed To " + text);
}
}
private void button3_Click(object sender, EventArgs e)
{
int num = (int) MessageBox.Show("Enter Your Desired FOV In The Text Box, Then Click Either Singleplayer Or Multiplayer Depending On What You Are Currently Playing");
}
[HandleProcessCorruptedStateExceptions]
protected override void Dispose([MarshalAs(UnmanagedType.U1)] bool _param1)
{
if (param0)
{
try
{
this.\u007EForm1();
}
finally
{
base.Dispose(true);
}
}
else
base.Dispose(false);
}
}
}