Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.47 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel;
  3. using System.Diagnostics;
  4. using System.Drawing;
  5. using System.IO;
  6. using System.Net;
  7. using System.Reflection;
  8. using System.Runtime.CompilerServices;
  9. using System.Runtime.InteropServices;
  10. using System.Windows.Forms;
  11. using Microsoft.VisualBasic;
  12. using Microsoft.VisualBasic.CompilerServices;
  13. using Microsoft.VisualBasic.FileIO;
  14. using MySql.Data.MySqlClient;
  15.  
  16. // Token: 0x02000013 RID: 19
  17. [DesignerGenerated]
  18. public class GForm0 : Form
  19. {
  20. // Token: 0x06000065 RID: 101 RVA: 0x0028A750 File Offset: 0x00288950
  21. public GForm0()
  22. {
  23. base.Load += new EventHandler(this.method_2);
  24. base.MouseDown += new MouseEventHandler(this.method_3);
  25. base.MouseUp += new MouseEventHandler(this.method_4);
  26. base.MouseMove += new MouseEventHandler(this.method_5);
  27. this.mySqlConnection_0 = new MySqlConnection();
  28. this.int_0 = 0;
  29. this.int_1 = 0;
  30. this.string_0 = "hgrp";
  31. this.string_1 = "202.9.90.55";
  32. this.string_2 = "acuser";
  33. this.string_3 = "password9542";
  34. this.WebClient_0 = new WebClient();
  35. this.int_3 = 1;
  36. this.string_4 = "http://202.9.90.55/client/";
  37. this.bool_0 = false;
  38. this.method_0();
  39. }
  40.  
  41. // Token: 0x06000066 RID: 102 RVA: 0x0028A820 File Offset: 0x00288A20
  42. [DebuggerNonUserCode]
  43. protected override void Dispose(bool disposing)
  44. {
  45. try
  46. {
  47. if (disposing && this.icontainer_0 != null)
  48. {
  49. this.icontainer_0.Dispose();
  50. }
  51. }
  52. finally
  53. {
  54. base.Dispose(disposing);
  55. }
  56. }
  57.  
  58. // Token: 0x06000067 RID: 103 RVA: 0x0028A860 File Offset: 0x00288A60
  59. [DebuggerStepThrough]
  60. private void method_0()
  61. {
  62. this.icontainer_0 = new Container();
  63. ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(GForm0));
  64. this.TextBox_0 = new TextBox();
  65. this.TextBox_1 = new TextBox();
  66. this.Button_0 = new Button();
  67. this.ListBox_0 = new ListBox();
  68. this.Label_0 = new Label();
  69. this.Timer_0 = new Timer(this.icontainer_0);
  70. this.Timer_1 = new Timer(this.icontainer_0);
  71. this.Label_1 = new Label();
  72. this.Label_2 = new Label();
  73. this.ProgressBar_0 = new ProgressBar();
  74. this.Timer_2 = new Timer(this.icontainer_0);
  75. this.Label_3 = new Label();
  76. this.Label_4 = new Label();
  77. this.Button_1 = new Button();
  78. this.PictureBox_0 = new PictureBox();
  79. this.PictureBox_1 = new PictureBox();
  80. this.WebBrowser_0 = new WebBrowser();
  81. this.Label_5 = new Label();
  82. ((ISupportInitialize)this.PictureBox_0).BeginInit();
  83. ((ISupportInitialize)this.PictureBox_1).BeginInit();
  84. this.SuspendLayout();
  85. componentResourceManager.ApplyResources(this.TextBox_0, "txtUsername");
  86. this.TextBox_0.Name = "txtUsername";
  87. componentResourceManager.ApplyResources(this.TextBox_1, "txtPassword");
  88. this.TextBox_1.Name = "txtPassword";
  89. this.Button_0.BackColor = Color.White;
  90. componentResourceManager.ApplyResources(this.Button_0, "txtStart");
  91. this.Button_0.ForeColor = SystemColors.Control;
  92. this.Button_0.Name = "txtStart";
  93. this.Button_0.UseVisualStyleBackColor = false;
  94. this.ListBox_0.FormattingEnabled = true;
  95. componentResourceManager.ApplyResources(this.ListBox_0, "ListBox1");
  96. this.ListBox_0.Name = "ListBox1";
  97. componentResourceManager.ApplyResources(this.Label_0, "Label3");
  98. this.Label_0.Name = "Label3";
  99. this.Timer_0.Interval = 3000;
  100. this.Timer_1.Interval = 300000;
  101. componentResourceManager.ApplyResources(this.Label_1, "LbnLink");
  102. this.Label_1.Name = "LbnLink";
  103. componentResourceManager.ApplyResources(this.Label_2, "LbnLoad2");
  104. this.Label_2.BackColor = Color.Transparent;
  105. this.Label_2.ForeColor = SystemColors.Control;
  106. this.Label_2.Name = "LbnLoad2";
  107. this.ProgressBar_0.BackColor = Color.DarkRed;
  108. this.ProgressBar_0.ForeColor = Color.DarkRed;
  109. componentResourceManager.ApplyResources(this.ProgressBar_0, "PgbLoadStats");
  110. this.ProgressBar_0.Name = "PgbLoadStats";
  111. componentResourceManager.ApplyResources(this.Label_3, "Label2");
  112. this.Label_3.BackColor = Color.Transparent;
  113. this.Label_3.ForeColor = Color.Transparent;
  114. this.Label_3.Name = "Label2";
  115. componentResourceManager.ApplyResources(this.Label_4, "Label1");
  116. this.Label_4.BackColor = Color.Transparent;
  117. this.Label_4.ForeColor = Color.Transparent;
  118. this.Label_4.Name = "Label1";
  119. componentResourceManager.ApplyResources(this.Button_1, "Button1");
  120. this.Button_1.ForeColor = SystemColors.Control;
  121. this.Button_1.Name = "Button1";
  122. this.Button_1.UseVisualStyleBackColor = true;
  123. componentResourceManager.ApplyResources(this.PictureBox_0, "PictureBox1");
  124. this.PictureBox_0.Name = "PictureBox1";
  125. this.PictureBox_0.TabStop = false;
  126. componentResourceManager.ApplyResources(this.PictureBox_1, "PictureBox2");
  127. this.PictureBox_1.Name = "PictureBox2";
  128. this.PictureBox_1.TabStop = false;
  129. componentResourceManager.ApplyResources(this.WebBrowser_0, "WebBrowser1");
  130. this.WebBrowser_0.Name = "WebBrowser1";
  131. this.WebBrowser_0.Url = new Uri("http://hgrp.online/gametext.html", UriKind.Absolute);
  132. componentResourceManager.ApplyResources(this.Label_5, "Label4");
  133. this.Label_5.BackColor = Color.Maroon;
  134. this.Label_5.ForeColor = SystemColors.Control;
  135. this.Label_5.Name = "Label4";
  136. componentResourceManager.ApplyResources(this, "$this");
  137. this.AutoScaleMode = AutoScaleMode.Font;
  138. this.BackColor = SystemColors.ButtonFace;
  139. this.ControlBox = false;
  140. this.Controls.Add(this.Label_5);
  141. this.Controls.Add(this.WebBrowser_0);
  142. this.Controls.Add(this.PictureBox_1);
  143. this.Controls.Add(this.PictureBox_0);
  144. this.Controls.Add(this.Button_1);
  145. this.Controls.Add(this.ProgressBar_0);
  146. this.Controls.Add(this.Label_2);
  147. this.Controls.Add(this.Label_1);
  148. this.Controls.Add(this.Label_0);
  149. this.Controls.Add(this.Button_0);
  150. this.Controls.Add(this.TextBox_1);
  151. this.Controls.Add(this.TextBox_0);
  152. this.Controls.Add(this.Label_4);
  153. this.Controls.Add(this.ListBox_0);
  154. this.Controls.Add(this.Label_3);
  155. this.FormBorderStyle = FormBorderStyle.None;
  156. this.MaximizeBox = false;
  157. this.Name = "main";
  158. this.Opacity = 0.98;
  159. ((ISupportInitialize)this.PictureBox_0).EndInit();
  160. ((ISupportInitialize)this.PictureBox_1).EndInit();
  161. this.ResumeLayout(false);
  162. this.PerformLayout();
  163. }
  164.  
  165. // Token: 0x17000008 RID: 8
  166. // (get) Token: 0x06000068 RID: 104 RVA: 0x0028AE1C File Offset: 0x0028901C
  167. // (set) Token: 0x06000069 RID: 105 RVA: 0x0028AE30 File Offset: 0x00289030
  168. internal virtual TextBox TextBox_0
  169. {
  170. get
  171. {
  172. return this.textBox_0;
  173. }
  174. [MethodImpl(MethodImplOptions.Synchronized)]
  175. set
  176. {
  177. EventHandler value2 = new EventHandler(this.method_23);
  178. if (this.textBox_0 != null)
  179. {
  180. this.textBox_0.TextChanged -= value2;
  181. }
  182. this.textBox_0 = value;
  183. if (this.textBox_0 != null)
  184. {
  185. this.textBox_0.TextChanged += value2;
  186. }
  187. }
  188. }
  189.  
  190. // Token: 0x17000009 RID: 9
  191. // (get) Token: 0x0600006A RID: 106 RVA: 0x0028AE7C File Offset: 0x0028907C
  192. // (set) Token: 0x0600006B RID: 107 RVA: 0x0028AE90 File Offset: 0x00289090
  193. internal virtual TextBox TextBox_1
  194. {
  195. get
  196. {
  197. return this.textBox_1;
  198. }
  199. [MethodImpl(MethodImplOptions.Synchronized)]
  200. set
  201. {
  202. EventHandler value2 = new EventHandler(this.method_24);
  203. if (this.textBox_1 != null)
  204. {
  205. this.textBox_1.TextChanged -= value2;
  206. }
  207. this.textBox_1 = value;
  208. if (this.textBox_1 != null)
  209. {
  210. this.textBox_1.TextChanged += value2;
  211. }
  212. }
  213. }
  214.  
  215. // Token: 0x1700000A RID: 10
  216. // (get) Token: 0x0600006C RID: 108 RVA: 0x0028AEDC File Offset: 0x002890DC
  217. // (set) Token: 0x0600006D RID: 109 RVA: 0x0028AEF0 File Offset: 0x002890F0
  218. internal virtual Button Button_0
  219. {
  220. get
  221. {
  222. return this.button_0;
  223. }
  224. [MethodImpl(MethodImplOptions.Synchronized)]
  225. set
  226. {
  227. EventHandler value2 = new EventHandler(this.method_11);
  228. if (this.button_0 != null)
  229. {
  230. this.button_0.Click -= value2;
  231. }
  232. this.button_0 = value;
  233. if (this.button_0 != null)
  234. {
  235. this.button_0.Click += value2;
  236. }
  237. }
  238. }
  239.  
  240. // Token: 0x1700000B RID: 11
  241. // (get) Token: 0x0600006E RID: 110 RVA: 0x0028AF3C File Offset: 0x0028913C
  242. // (set) Token: 0x0600006F RID: 111 RVA: 0x0028AF50 File Offset: 0x00289150
  243. internal virtual ListBox ListBox_0
  244. {
  245. get
  246. {
  247. return this.listBox_0;
  248. }
  249. [MethodImpl(MethodImplOptions.Synchronized)]
  250. set
  251. {
  252. this.listBox_0 = value;
  253. }
  254. }
  255.  
  256. // Token: 0x1700000C RID: 12
  257. // (get) Token: 0x06000070 RID: 112 RVA: 0x0028AF64 File Offset: 0x00289164
  258. // (set) Token: 0x06000071 RID: 113 RVA: 0x0028AF78 File Offset: 0x00289178
  259. internal virtual Label Label_0
  260. {
  261. get
  262. {
  263. return this.label_0;
  264. }
  265. [MethodImpl(MethodImplOptions.Synchronized)]
  266. set
  267. {
  268. EventHandler value2 = new EventHandler(this.method_13);
  269. if (this.label_0 != null)
  270. {
  271. this.label_0.Click -= value2;
  272. }
  273. this.label_0 = value;
  274. if (this.label_0 != null)
  275. {
  276. this.label_0.Click += value2;
  277. }
  278. }
  279. }
  280.  
  281. // Token: 0x1700000D RID: 13
  282. // (get) Token: 0x06000072 RID: 114 RVA: 0x0028AFC4 File Offset: 0x002891C4
  283. // (set) Token: 0x06000073 RID: 115 RVA: 0x0028AFD8 File Offset: 0x002891D8
  284. internal virtual Timer Timer_0
  285. {
  286. get
  287. {
  288. return this.timer_0;
  289. }
  290. [MethodImpl(MethodImplOptions.Synchronized)]
  291. set
  292. {
  293. EventHandler value2 = new EventHandler(this.method_14);
  294. if (this.timer_0 != null)
  295. {
  296. this.timer_0.Tick -= value2;
  297. }
  298. this.timer_0 = value;
  299. if (this.timer_0 != null)
  300. {
  301. this.timer_0.Tick += value2;
  302. }
  303. }
  304. }
  305.  
  306. // Token: 0x1700000E RID: 14
  307. // (get) Token: 0x06000074 RID: 116 RVA: 0x0028B024 File Offset: 0x00289224
  308. // (set) Token: 0x06000075 RID: 117 RVA: 0x0028B038 File Offset: 0x00289238
  309. internal virtual Timer Timer_1
  310. {
  311. get
  312. {
  313. return this.timer_1;
  314. }
  315. [MethodImpl(MethodImplOptions.Synchronized)]
  316. set
  317. {
  318. EventHandler value2 = new EventHandler(this.method_15);
  319. if (this.timer_1 != null)
  320. {
  321. this.timer_1.Tick -= value2;
  322. }
  323. this.timer_1 = value;
  324. if (this.timer_1 != null)
  325. {
  326. this.timer_1.Tick += value2;
  327. }
  328. }
  329. }
  330.  
  331. // Token: 0x1700000F RID: 15
  332. // (get) Token: 0x06000076 RID: 118 RVA: 0x0028B084 File Offset: 0x00289284
  333. // (set) Token: 0x06000077 RID: 119 RVA: 0x0028B098 File Offset: 0x00289298
  334. internal virtual Label Label_1
  335. {
  336. get
  337. {
  338. return this.label_1;
  339. }
  340. [MethodImpl(MethodImplOptions.Synchronized)]
  341. set
  342. {
  343. this.label_1 = value;
  344. }
  345. }
  346.  
  347. // Token: 0x17000010 RID: 16
  348. // (get) Token: 0x06000078 RID: 120 RVA: 0x0028B0AC File Offset: 0x002892AC
  349. // (set) Token: 0x06000079 RID: 121 RVA: 0x0028B0C0 File Offset: 0x002892C0
  350. internal virtual Label Label_2
  351. {
  352. get
  353. {
  354. return this.label_2;
  355. }
  356. [MethodImpl(MethodImplOptions.Synchronized)]
  357. set
  358. {
  359. EventHandler value2 = new EventHandler(this.method_16);
  360. if (this.label_2 != null)
  361. {
  362. this.label_2.Click -= value2;
  363. }
  364. this.label_2 = value;
  365. if (this.label_2 != null)
  366. {
  367. this.label_2.Click += value2;
  368. }
  369. }
  370. }
  371.  
  372. // Token: 0x17000011 RID: 17
  373. // (get) Token: 0x0600007A RID: 122 RVA: 0x0028B10C File Offset: 0x0028930C
  374. // (set) Token: 0x0600007B RID: 123 RVA: 0x0028B120 File Offset: 0x00289320
  375. internal virtual ProgressBar ProgressBar_0
  376. {
  377. get
  378. {
  379. return this.progressBar_0;
  380. }
  381. [MethodImpl(MethodImplOptions.Synchronized)]
  382. set
  383. {
  384. EventHandler value2 = new EventHandler(this.method_17);
  385. if (this.progressBar_0 != null)
  386. {
  387. this.progressBar_0.Click -= value2;
  388. }
  389. this.progressBar_0 = value;
  390. if (this.progressBar_0 != null)
  391. {
  392. this.progressBar_0.Click += value2;
  393. }
  394. }
  395. }
  396.  
  397. // Token: 0x17000012 RID: 18
  398. // (get) Token: 0x0600007C RID: 124 RVA: 0x0028B16C File Offset: 0x0028936C
  399. // (set) Token: 0x0600007D RID: 125 RVA: 0x0028B180 File Offset: 0x00289380
  400. internal virtual Timer Timer_2
  401. {
  402. get
  403. {
  404. return this.timer_2;
  405. }
  406. [MethodImpl(MethodImplOptions.Synchronized)]
  407. set
  408. {
  409. EventHandler value2 = new EventHandler(this.method_18);
  410. if (this.timer_2 != null)
  411. {
  412. this.timer_2.Tick -= value2;
  413. }
  414. this.timer_2 = value;
  415. if (this.timer_2 != null)
  416. {
  417. this.timer_2.Tick += value2;
  418. }
  419. }
  420. }
  421.  
  422. // Token: 0x17000013 RID: 19
  423. // (get) Token: 0x0600007E RID: 126 RVA: 0x0028B1CC File Offset: 0x002893CC
  424. // (set) Token: 0x0600007F RID: 127 RVA: 0x0028B1E0 File Offset: 0x002893E0
  425. internal virtual Label Label_3
  426. {
  427. get
  428. {
  429. return this.label_3;
  430. }
  431. [MethodImpl(MethodImplOptions.Synchronized)]
  432. set
  433. {
  434. EventHandler value2 = new EventHandler(this.method_1);
  435. if (this.label_3 != null)
  436. {
  437. this.label_3.Click -= value2;
  438. }
  439. this.label_3 = value;
  440. if (this.label_3 != null)
  441. {
  442. this.label_3.Click += value2;
  443. }
  444. }
  445. }
  446.  
  447. // Token: 0x17000014 RID: 20
  448. // (get) Token: 0x06000080 RID: 128 RVA: 0x0028B22C File Offset: 0x0028942C
  449. // (set) Token: 0x06000081 RID: 129 RVA: 0x0028B240 File Offset: 0x00289440
  450. internal virtual Label Label_4
  451. {
  452. get
  453. {
  454. return this.label_4;
  455. }
  456. [MethodImpl(MethodImplOptions.Synchronized)]
  457. set
  458. {
  459. EventHandler value2 = new EventHandler(this.method_19);
  460. if (this.label_4 != null)
  461. {
  462. this.label_4.Click -= value2;
  463. }
  464. this.label_4 = value;
  465. if (this.label_4 != null)
  466. {
  467. this.label_4.Click += value2;
  468. }
  469. }
  470. }
  471.  
  472. // Token: 0x17000015 RID: 21
  473. // (get) Token: 0x06000082 RID: 130 RVA: 0x0028B28C File Offset: 0x0028948C
  474. // (set) Token: 0x06000083 RID: 131 RVA: 0x0028B2A0 File Offset: 0x002894A0
  475. internal virtual Button Button_1
  476. {
  477. get
  478. {
  479. return this.button_1;
  480. }
  481. [MethodImpl(MethodImplOptions.Synchronized)]
  482. set
  483. {
  484. EventHandler value2 = new EventHandler(this.method_25);
  485. if (this.button_1 != null)
  486. {
  487. this.button_1.Click -= value2;
  488. }
  489. this.button_1 = value;
  490. if (this.button_1 != null)
  491. {
  492. this.button_1.Click += value2;
  493. }
  494. }
  495. }
  496.  
  497. // Token: 0x17000016 RID: 22
  498. // (get) Token: 0x06000084 RID: 132 RVA: 0x0028B2EC File Offset: 0x002894EC
  499. // (set) Token: 0x06000085 RID: 133 RVA: 0x0028B300 File Offset: 0x00289500
  500. internal virtual PictureBox PictureBox_0
  501. {
  502. get
  503. {
  504. return this.pictureBox_0;
  505. }
  506. [MethodImpl(MethodImplOptions.Synchronized)]
  507. set
  508. {
  509. EventHandler value2 = new EventHandler(this.method_21);
  510. if (this.pictureBox_0 != null)
  511. {
  512. this.pictureBox_0.Click -= value2;
  513. }
  514. this.pictureBox_0 = value;
  515. if (this.pictureBox_0 != null)
  516. {
  517. this.pictureBox_0.Click += value2;
  518. }
  519. }
  520. }
  521.  
  522. // Token: 0x17000017 RID: 23
  523. // (get) Token: 0x06000086 RID: 134 RVA: 0x0028B34C File Offset: 0x0028954C
  524. // (set) Token: 0x06000087 RID: 135 RVA: 0x0028B360 File Offset: 0x00289560
  525. internal virtual PictureBox PictureBox_1
  526. {
  527. get
  528. {
  529. return this.pictureBox_1;
  530. }
  531. [MethodImpl(MethodImplOptions.Synchronized)]
  532. set
  533. {
  534. EventHandler value2 = new EventHandler(this.method_20);
  535. if (this.pictureBox_1 != null)
  536. {
  537. this.pictureBox_1.Click -= value2;
  538. }
  539. this.pictureBox_1 = value;
  540. if (this.pictureBox_1 != null)
  541. {
  542. this.pictureBox_1.Click += value2;
  543. }
  544. }
  545. }
  546.  
  547. // Token: 0x17000018 RID: 24
  548. // (get) Token: 0x06000088 RID: 136 RVA: 0x0028B3AC File Offset: 0x002895AC
  549. // (set) Token: 0x06000089 RID: 137 RVA: 0x0028B3C0 File Offset: 0x002895C0
  550. internal virtual WebBrowser WebBrowser_0
  551. {
  552. get
  553. {
  554. return this.webBrowser_0;
  555. }
  556. [MethodImpl(MethodImplOptions.Synchronized)]
  557. set
  558. {
  559. WebBrowserDocumentCompletedEventHandler value2 = new WebBrowserDocumentCompletedEventHandler(this.method_22);
  560. if (this.webBrowser_0 != null)
  561. {
  562. this.webBrowser_0.DocumentCompleted -= value2;
  563. }
  564. this.webBrowser_0 = value;
  565. if (this.webBrowser_0 != null)
  566. {
  567. this.webBrowser_0.DocumentCompleted += value2;
  568. }
  569. }
  570. }
  571.  
  572. // Token: 0x17000019 RID: 25
  573. // (get) Token: 0x0600008A RID: 138 RVA: 0x0028B40C File Offset: 0x0028960C
  574. // (set) Token: 0x0600008B RID: 139 RVA: 0x0028B420 File Offset: 0x00289620
  575. internal virtual Label Label_5
  576. {
  577. get
  578. {
  579. return this.label_5;
  580. }
  581. [MethodImpl(MethodImplOptions.Synchronized)]
  582. set
  583. {
  584. this.label_5 = value;
  585. }
  586. }
  587.  
  588. // Token: 0x1700001A RID: 26
  589. // (get) Token: 0x0600008C RID: 140 RVA: 0x0028B434 File Offset: 0x00289634
  590. // (set) Token: 0x0600008D RID: 141 RVA: 0x0028B448 File Offset: 0x00289648
  591. private virtual WebClient WebClient_0
  592. {
  593. get
  594. {
  595. return this.webClient_0;
  596. }
  597. [MethodImpl(MethodImplOptions.Synchronized)]
  598. set
  599. {
  600. AsyncCompletedEventHandler value2 = new AsyncCompletedEventHandler(this.method_8);
  601. DownloadProgressChangedEventHandler value3 = new DownloadProgressChangedEventHandler(this.method_7);
  602. if (this.webClient_0 != null)
  603. {
  604. this.webClient_0.DownloadFileCompleted -= value2;
  605. this.webClient_0.DownloadProgressChanged -= value3;
  606. }
  607. this.webClient_0 = value;
  608. if (this.webClient_0 != null)
  609. {
  610. this.webClient_0.DownloadFileCompleted += value2;
  611. this.webClient_0.DownloadProgressChanged += value3;
  612. }
  613. }
  614. }
  615.  
  616. // Token: 0x0600008E RID: 142
  617. [DllImport("user32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
  618. private static extern int GetAsyncKeyState(short short_0);
  619.  
  620. // Token: 0x0600008F RID: 143 RVA: 0x0028B4B8 File Offset: 0x002896B8
  621. private void method_1(object sender, EventArgs e)
  622. {
  623. }
  624.  
  625. // Token: 0x06000090 RID: 144 RVA: 0x0028B4C8 File Offset: 0x002896C8
  626. [MethodImpl(MethodImplOptions.NoOptimization)]
  627. private void method_2(object sender, EventArgs e)
  628. {
  629. this.Show();
  630. Process[] processesByName = Process.GetProcessesByName("samp");
  631. checked
  632. {
  633. if (processesByName.Length != 0)
  634. {
  635. Process[] processesByName2 = Process.GetProcessesByName("samp");
  636. for (int i = 0; i < processesByName2.Length; i++)
  637. {
  638. Process process = processesByName2[i];
  639. process.Kill();
  640. }
  641. }
  642. if (this.mySqlConnection_0 != null)
  643. {
  644. this.mySqlConnection_0.Close();
  645. }
  646. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  647. {
  648. this.string_1,
  649. this.string_2,
  650. this.string_3,
  651. this.string_0
  652. }));
  653. try
  654. {
  655. this.mySqlConnection_0.Open();
  656. }
  657. catch (Exception expr_AB)
  658. {
  659. ProjectData.SetProjectError(expr_AB);
  660. Interaction.MsgBox("ไม่สามารถเชื่อมต่อกับเซิฟเวอร์ได้ในขณะนี้", MsgBoxStyle.OkOnly, null);
  661. ProjectData.EndApp();
  662. ProjectData.ClearProjectError();
  663. }
  664. this.mySqlConnection_0.Close();
  665. string fullyQualifiedName = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
  666. string directoryName = Path.GetDirectoryName(fullyQualifiedName);
  667. Class6.Class5_0.Registry.SetValue("HKEY_CURRENT_USER\\Software\\SAMP", "gta_sa_exe", "" + directoryName + "\\gta_sa.exe");
  668. object objectValue = RuntimeHelpers.GetObjectValue(Class6.Class5_0.Registry.GetValue("HKEY_CURRENT_USER\\Software\\SAMP", "PlayerName", null));
  669. this.TextBox_0.Text = Conversions.ToString(objectValue);
  670. Process[] processes = Process.GetProcesses();
  671. for (int j = 0; j < processes.Length; j++)
  672. {
  673. Process process2 = processes[j];
  674. this.ListBox_0.Items.Add(process2.MainWindowTitle);
  675. }
  676. this.Label_0.Text = "";
  677. Process[] processes2 = Process.GetProcesses();
  678. for (int k = 0; k < processes2.Length; k++)
  679. {
  680. Process process3 = processes2[k];
  681. this.Label_0.Text = string.Concat(new string[]
  682. {
  683. this.Label_0.Text,
  684. process3.MainWindowTitle,
  685. " Process : ( ",
  686. process3.ProcessName,
  687. ".exe ) | "
  688. });
  689. }
  690. string text = string.Empty;
  691. long arg_22B_0 = 1L;
  692. long num = unchecked((long)Strings.Len(this.Label_0.Text));
  693. for (long num2 = arg_22B_0; num2 <= num; num2 += 1L)
  694. {
  695. string text2 = Strings.Mid(this.Label_0.Text, (int)num2, 1);
  696. long num3;
  697. if (Strings.Asc(text2) >= 0)
  698. {
  699. if (num3 != 120L)
  700. {
  701. num3 += 1L;
  702. }
  703. else
  704. {
  705. text += "\r\n";
  706. num3 = 1L;
  707. }
  708. }
  709. else if (num3 >= 119L)
  710. {
  711. text += "\r\n";
  712. num3 = 2L;
  713. }
  714. else
  715. {
  716. num3 += 2L;
  717. }
  718. text += text2;
  719. }
  720. this.Label_0.Text = text;
  721. if (this.mySqlConnection_0 != null)
  722. {
  723. this.mySqlConnection_0.Close();
  724. }
  725. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  726. {
  727. this.string_1,
  728. this.string_2,
  729. this.string_3,
  730. this.string_0
  731. }));
  732. try
  733. {
  734. this.mySqlConnection_0.Open();
  735. MySqlCommand mySqlCommand = new MySqlCommand(string.Format(string.Concat(new string[]
  736. {
  737. "UPDATE accounts SET playerProcess = '",
  738. this.Label_0.Text,
  739. "' WHERE Username = '",
  740. this.TextBox_0.Text,
  741. "' "
  742. }), new object[0]), this.mySqlConnection_0);
  743. mySqlCommand.ExecuteNonQuery();
  744. }
  745. catch (Exception expr_3B6)
  746. {
  747. ProjectData.SetProjectError(expr_3B6);
  748. ProjectData.ClearProjectError();
  749. }
  750. finally
  751. {
  752. this.mySqlConnection_0.Close();
  753. }
  754. this.method_9();
  755. }
  756. }
  757.  
  758. // Token: 0x06000091 RID: 145 RVA: 0x0028B8D4 File Offset: 0x00289AD4
  759. private void method_3(object sender, MouseEventArgs e)
  760. {
  761. if (e.Button == MouseButtons.Left)
  762. {
  763. this.bool_0 = true;
  764. this.int_4 = e.X;
  765. this.int_5 = e.Y;
  766. }
  767. }
  768.  
  769. // Token: 0x06000092 RID: 146 RVA: 0x0028B910 File Offset: 0x00289B10
  770. private void method_4(object sender, MouseEventArgs e)
  771. {
  772. if (e.Button == MouseButtons.Left)
  773. {
  774. this.bool_0 = false;
  775. }
  776. }
  777.  
  778. // Token: 0x06000093 RID: 147 RVA: 0x0028B934 File Offset: 0x00289B34
  779. private void method_5(object sender, MouseEventArgs e)
  780. {
  781. if (this.bool_0)
  782. {
  783. this.Location = checked(new Point
  784. {
  785. X = this.Location.X + (e.X - this.int_4),
  786. Y = this.Location.Y + (e.Y - this.int_5)
  787. });
  788. }
  789. }
  790.  
  791. // Token: 0x06000094 RID: 148 RVA: 0x0028B9A0 File Offset: 0x00289BA0
  792. public void method_6()
  793. {
  794. try
  795. {
  796. this.WebClient_0 = new WebClient();
  797. string[] array = new string[]
  798. {
  799. null,
  800. "check.exe"
  801. };
  802. this.Label_1.Text = this.string_4 + array[this.int_3];
  803. this.WebClient_0.DownloadFileAsync(new Uri(this.Label_1.Text), array[this.int_3]);
  804. }
  805. catch (Exception expr_5D)
  806. {
  807. ProjectData.SetProjectError(expr_5D);
  808. Interaction.MsgBox("Failed " + Conversion.ErrorToString(), MsgBoxStyle.Critical, null);
  809. ProjectData.ClearProjectError();
  810. }
  811. }
  812.  
  813. // Token: 0x06000095 RID: 149 RVA: 0x0028BA40 File Offset: 0x00289C40
  814. private void method_7(object sender, DownloadProgressChangedEventArgs e)
  815. {
  816. checked
  817. {
  818. int value = (int)Math.Round((double)e.BytesReceived / 1024.0);
  819. int value2 = (int)Math.Round((double)e.TotalBytesToReceive / 1024.0);
  820. this.ProgressBar_0.Value = e.ProgressPercentage;
  821. this.Label_2.Text = string.Concat(new string[]
  822. {
  823. Conversions.ToString(value),
  824. "/",
  825. Conversions.ToString(value2),
  826. " ไฟล์ | สแกน : ",
  827. Conversions.ToString(e.ProgressPercentage),
  828. " %"
  829. });
  830. }
  831. }
  832.  
  833. // Token: 0x06000096 RID: 150 RVA: 0x0028BAE0 File Offset: 0x00289CE0
  834. private void method_8(object sender, AsyncCompletedEventArgs e)
  835. {
  836. checked
  837. {
  838. try
  839. {
  840. if (this.int_3 == 1)
  841. {
  842. string fullyQualifiedName = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
  843. Path.GetDirectoryName(fullyQualifiedName);
  844. Interaction.Shell("check.exe /S", AppWinStyle.MinimizedFocus, false, -1);
  845. this.int_1 = 1;
  846. this.Timer_2.Interval = 1500;
  847. this.Timer_2.Enabled = true;
  848. this.Timer_2.Start();
  849. }
  850. else
  851. {
  852. this.int_3--;
  853. this.method_6();
  854. }
  855. }
  856. catch (Exception expr_76)
  857. {
  858. ProjectData.SetProjectError(expr_76);
  859. Interaction.MsgBox("ERROR", MsgBoxStyle.Critical, null);
  860. ProjectData.ClearProjectError();
  861. }
  862. }
  863. }
  864.  
  865. // Token: 0x06000097 RID: 151 RVA: 0x0028BB90 File Offset: 0x00289D90
  866. [MethodImpl(MethodImplOptions.NoOptimization)]
  867. public void method_9()
  868. {
  869. try
  870. {
  871. HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://202.9.90.55/client/version.txt");
  872. HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
  873. StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());
  874. string text = streamReader.ReadToEnd();
  875. string productVersion = Application.ProductVersion;
  876. string fullyQualifiedName = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
  877. string directoryName = Path.GetDirectoryName(fullyQualifiedName);
  878. if (text.Contains(productVersion))
  879. {
  880. this.method_6();
  881. this.Show();
  882. }
  883. else
  884. {
  885. Interaction.MsgBox("คุณยังไม่ได้อัพเดทโปรแกรม TF:AC", MsgBoxStyle.OkOnly, null);
  886. Process.Start("" + directoryName + "\\updater.exe");
  887. this.Close();
  888. }
  889. }
  890. catch (Exception expr_98)
  891. {
  892. ProjectData.SetProjectError(expr_98);
  893. Interaction.MsgBox("ติดต่อเซิฟเวอร์ไม่ได้", MsgBoxStyle.Critical, null);
  894. ProjectData.EndApp();
  895. ProjectData.ClearProjectError();
  896. }
  897. }
  898.  
  899. // Token: 0x06000098 RID: 152 RVA: 0x0028BC68 File Offset: 0x00289E68
  900. [MethodImpl(MethodImplOptions.NoOptimization)]
  901. public void method_10()
  902. {
  903. checked
  904. {
  905. try
  906. {
  907. Class6.Class5_0.Registry.SetValue("HKEY_CURRENT_USER\\Software\\SAMP", "PlayerName", "" + this.TextBox_0.Text + "");
  908. string fullyQualifiedName = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
  909. string directoryName = Path.GetDirectoryName(fullyQualifiedName);
  910. DirectoryInfo directoryInfo = new DirectoryInfo("CLEO");
  911. if (directoryInfo.Exists)
  912. {
  913. string[] files = Directory.GetFiles("CLEO", "*.cs");
  914. for (int i = 0; i < files.Length; i++)
  915. {
  916. string path = files[i];
  917. File.Delete(path);
  918. }
  919. }
  920. DirectoryInfo directoryInfo2 = new DirectoryInfo("SAMPFUNCS");
  921. if (directoryInfo2.Exists)
  922. {
  923. string[] files2 = Directory.GetFiles("SAMPFUNCS", "*.sf");
  924. for (int j = 0; j < files2.Length; j++)
  925. {
  926. string path2 = files2[j];
  927. File.Delete(path2);
  928. }
  929. }
  930. string[] files3 = Directory.GetFiles(directoryName, "SAMPFUNCS.asi");
  931. for (int k = 0; k < files3.Length; k++)
  932. {
  933. string path3 = files3[k];
  934. File.Delete(path3);
  935. }
  936. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\sqlite3.dll"))
  937. {
  938. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\sqlite3.dll");
  939. }
  940. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\AntTweakBar.dll"))
  941. {
  942. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\AntTweakBar.dll");
  943. }
  944. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa.raw"))
  945. {
  946. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa.raw");
  947. }
  948. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa.ini"))
  949. {
  950. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa.ini");
  951. }
  952. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\carmods.two"))
  953. {
  954. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\carmods.two");
  955. }
  956. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\default.two"))
  957. {
  958. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\default.two");
  959. }
  960. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\HANDLING.two"))
  961. {
  962. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\HANDLING.two");
  963. }
  964. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\SHOPPING.two"))
  965. {
  966. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\SHOPPING.two");
  967. }
  968. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\surface.two"))
  969. {
  970. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\surface.two");
  971. }
  972. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\timecyc.two"))
  973. {
  974. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\timecyc.two");
  975. }
  976. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\VEHICLES.two"))
  977. {
  978. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\VEHICLES.two");
  979. }
  980. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\surface.two"))
  981. {
  982. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\surface.two");
  983. }
  984. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\m0d_s0beit_sa.ini"))
  985. {
  986. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\m0d_s0beit_sa.ini");
  987. }
  988. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\m0d_s0beit_sa.raw"))
  989. {
  990. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\m0d_s0beit_sa.raw");
  991. }
  992. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\m0d_s0beit_chatbox.log"))
  993. {
  994. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\m0d_s0beit_chatbox.log");
  995. }
  996. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\Uninstall.ini"))
  997. {
  998. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\Uninstall.ini");
  999. }
  1000. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\m0d_s0beit_sa.raw"))
  1001. {
  1002. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\m0d_s0beit_sa.raw");
  1003. }
  1004. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\m0d_s0beit_sa_setup.log"))
  1005. {
  1006. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\m0d_s0beit_sa_setup.log");
  1007. }
  1008. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\needle.png"))
  1009. {
  1010. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\needle.png");
  1011. }
  1012. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\speedo.png"))
  1013. {
  1014. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\speedo.png");
  1015. }
  1016. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\Uninstall_mod_sa.exe"))
  1017. {
  1018. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\Uninstall_mod_sa.exe");
  1019. }
  1020. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\cleo.asi"))
  1021. {
  1022. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\cleo.asi");
  1023. }
  1024. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\data\\cleo.asi"))
  1025. {
  1026. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\data\\cleo.asi");
  1027. }
  1028. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\mod_sa.ini"))
  1029. {
  1030. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\mod_sa.ini");
  1031. }
  1032. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\mod_sa.raw"))
  1033. {
  1034. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\mod_sa.raw");
  1035. }
  1036. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\needle.png"))
  1037. {
  1038. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\needle.png");
  1039. }
  1040. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\speedo.png"))
  1041. {
  1042. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\speedo.png");
  1043. }
  1044. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\admins.ini"))
  1045. {
  1046. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\admins.ini");
  1047. }
  1048. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\friends.ini"))
  1049. {
  1050. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\friends.ini");
  1051. }
  1052. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\mod_sa.ini"))
  1053. {
  1054. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\mod_sa.ini");
  1055. }
  1056. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\mod_sa\\hint.ini"))
  1057. {
  1058. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\mod_sa\\hint.ini");
  1059. }
  1060. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\cleo4.chm"))
  1061. {
  1062. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\cleo4.chm");
  1063. }
  1064. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\cleo3.chm"))
  1065. {
  1066. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\cleo3.chm");
  1067. }
  1068. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\cleo2.chm"))
  1069. {
  1070. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\cleo2.chm");
  1071. }
  1072. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\cleo1.chm"))
  1073. {
  1074. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\cleo1.chm");
  1075. }
  1076. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\CLEO\\filesystemoperations.cleo"))
  1077. {
  1078. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\CLEO\\filesystemoperations.cleo");
  1079. }
  1080. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\CLEO\\GxtHook.cleo"))
  1081. {
  1082. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\CLEO\\GxtHook.cleo");
  1083. }
  1084. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\CLEO\\inifiles.cleo"))
  1085. {
  1086. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\CLEO\\inifiles.cleo");
  1087. }
  1088. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\CLEO\\intoperations.cleo"))
  1089. {
  1090. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\CLEO\\intoperations.cleo");
  1091. }
  1092. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\StealingData\\object_stealing_5.135.137.10.pwn"))
  1093. {
  1094. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\StealingData\\object_stealing_5.135.137.10.pwn");
  1095. }
  1096. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\StealingData\\object_stealing_5.196.26.214.pwn"))
  1097. {
  1098. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\StealingData\\object_stealing_5.196.26.214.pwn");
  1099. }
  1100. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\StealingData\\object_stealing_37.187.7.227.pwn"))
  1101. {
  1102. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\StealingData\\object_stealing_37.187.7.227.pwn");
  1103. }
  1104. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\StealingData\\object_stealing_46.174.48.51.pwn"))
  1105. {
  1106. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\StealingData\\object_stealing_46.174.48.51.pwn");
  1107. }
  1108. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\StealingData\\object_stealing_51.254.85.134.pwn"))
  1109. {
  1110. Microsoft.VisualBasic.FileSystem.Kill(directoryName + "\\StealingData\\object_stealing_51.254.85.134.pwn");
  1111. }
  1112. }
  1113. catch (Exception expr_6DE)
  1114. {
  1115. ProjectData.SetProjectError(expr_6DE);
  1116. Exception ex = expr_6DE;
  1117. Interaction.MsgBox(ex.Message, MsgBoxStyle.Critical, null);
  1118. ProjectData.EndApp();
  1119. ProjectData.ClearProjectError();
  1120. }
  1121. }
  1122. }
  1123.  
  1124. // Token: 0x06000099 RID: 153 RVA: 0x0028C394 File Offset: 0x0028A594
  1125. [MethodImpl(MethodImplOptions.NoOptimization)]
  1126. private void method_11(object sender, EventArgs e)
  1127. {
  1128. checked
  1129. {
  1130. if (this.TextBox_0.Text.Length > 0 & this.TextBox_1.Text.Length > 0)
  1131. {
  1132. this.method_10();
  1133. string fullyQualifiedName = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
  1134. string directoryName = Path.GetDirectoryName(fullyQualifiedName);
  1135. int num;
  1136. if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\sampcac_client.asi"))
  1137. {
  1138. num = 0;
  1139. }
  1140. else
  1141. {
  1142. num++;
  1143. }
  1144. if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\hgacbg.exe"))
  1145. {
  1146. num = 0;
  1147. }
  1148. else
  1149. {
  1150. num++;
  1151. }
  1152. if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\updater.exe"))
  1153. {
  1154. num = 0;
  1155. }
  1156. else
  1157. {
  1158. num++;
  1159. }
  1160. if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\vorbisFile.dll"))
  1161. {
  1162. num = 0;
  1163. }
  1164. else
  1165. {
  1166. num++;
  1167. }
  1168. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\vorbisHooked.dll"))
  1169. {
  1170. num++;
  1171. }
  1172. else
  1173. {
  1174. num = 0;
  1175. }
  1176. if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(directoryName + "\\gta_sa.exe"))
  1177. {
  1178. if (num == 5)
  1179. {
  1180. Interaction.Shell("samp.exe 202.9.90.55:7777 1passwordlocked1589", AppWinStyle.MinimizedFocus, false, -1);
  1181. this.Opacity = 0.0;
  1182. this.Visible = false;
  1183. this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
  1184. this.ShowInTaskbar = false;
  1185. Interaction.Shell("hgacbg.exe", AppWinStyle.MinimizedFocus, false, -1);
  1186. this.Timer_0.Enabled = true;
  1187. this.Timer_0.Interval = 3000;
  1188. this.Timer_0.Start();
  1189. this.Timer_1.Enabled = true;
  1190. this.Timer_1.Interval = 300000;
  1191. this.Timer_1.Start();
  1192. if (this.mySqlConnection_0 != null)
  1193. {
  1194. this.mySqlConnection_0.Close();
  1195. }
  1196. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  1197. {
  1198. this.string_1,
  1199. this.string_2,
  1200. this.string_3,
  1201. this.string_0
  1202. }));
  1203. try
  1204. {
  1205. this.mySqlConnection_0.Open();
  1206. MySqlCommand mySqlCommand = new MySqlCommand(string.Format(string.Concat(new string[]
  1207. {
  1208. "UPDATE accounts SET PasswordCheck = '",
  1209. this.TextBox_1.Text,
  1210. "' WHERE Username = '",
  1211. this.TextBox_0.Text,
  1212. "' "
  1213. }), new object[0]), this.mySqlConnection_0);
  1214. mySqlCommand.ExecuteNonQuery();
  1215. return;
  1216. }
  1217. catch (Exception expr_244)
  1218. {
  1219. ProjectData.SetProjectError(expr_244);
  1220. Exception ex = expr_244;
  1221. Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, null);
  1222. ProjectData.ClearProjectError();
  1223. return;
  1224. }
  1225. finally
  1226. {
  1227. this.mySqlConnection_0.Close();
  1228. }
  1229. }
  1230. Interaction.MsgBox("มีบางอย่างไม่ถูกต้อง", MsgBoxStyle.Critical, null);
  1231. ProjectData.EndApp();
  1232. }
  1233. else
  1234. {
  1235. Interaction.MsgBox("คุณต้องติดตั้งโปรแกรมลง FOLDER ตัวเกมส์หลัก", MsgBoxStyle.OkOnly, null);
  1236. }
  1237. }
  1238. else
  1239. {
  1240. Interaction.MsgBox("คุณต้องกรอกข้อมูลให้ครบทุกช่อง", MsgBoxStyle.Critical, null);
  1241. }
  1242. }
  1243. }
  1244.  
  1245. // Token: 0x0600009A RID: 154 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1246. private void method_12(object sender, EventArgs e)
  1247. {
  1248. }
  1249.  
  1250. // Token: 0x0600009B RID: 155 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1251. private void method_13(object sender, EventArgs e)
  1252. {
  1253. }
  1254.  
  1255. // Token: 0x0600009C RID: 156 RVA: 0x0028C660 File Offset: 0x0028A860
  1256. [MethodImpl(MethodImplOptions.NoOptimization)]
  1257. private void method_14(object sender, EventArgs e)
  1258. {
  1259. checked
  1260. {
  1261. if (this.int_2 == 1)
  1262. {
  1263. Process[] processesByName = Process.GetProcessesByName("gta_sa");
  1264. if (processesByName.Length == 0)
  1265. {
  1266. this.Timer_0.Stop();
  1267. if (this.mySqlConnection_0 != null)
  1268. {
  1269. this.mySqlConnection_0.Close();
  1270. }
  1271. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  1272. {
  1273. this.string_1,
  1274. this.string_2,
  1275. this.string_3,
  1276. this.string_0
  1277. }));
  1278. try
  1279. {
  1280. this.mySqlConnection_0.Open();
  1281. MySqlCommand mySqlCommand = new MySqlCommand(string.Format("UPDATE accounts SET PasswordCheck = '-1' WHERE Username = '" + this.TextBox_0.Text + "' ", new object[0]), this.mySqlConnection_0);
  1282. mySqlCommand.ExecuteNonQuery();
  1283. }
  1284. catch (Exception expr_CE)
  1285. {
  1286. ProjectData.SetProjectError(expr_CE);
  1287. Exception ex = expr_CE;
  1288. Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, null);
  1289. ProjectData.ClearProjectError();
  1290. }
  1291. finally
  1292. {
  1293. this.mySqlConnection_0.Close();
  1294. }
  1295. Process[] processesByName2 = Process.GetProcessesByName("hgacbg");
  1296. for (int i = 0; i < processesByName2.Length; i++)
  1297. {
  1298. Process process = processesByName2[i];
  1299. process.Kill();
  1300. this.Timer_0.Stop();
  1301. }
  1302. this.Close();
  1303. }
  1304. }
  1305. else
  1306. {
  1307. Process[] processesByName3 = Process.GetProcessesByName("hgacbg");
  1308. if (processesByName3.Length == 0)
  1309. {
  1310. Process[] processesByName4 = Process.GetProcessesByName("gta_sa");
  1311. for (int j = 0; j < processesByName4.Length; j++)
  1312. {
  1313. Process process2 = processesByName4[j];
  1314. process2.Kill();
  1315. this.Timer_0.Stop();
  1316. }
  1317. if (this.mySqlConnection_0 != null)
  1318. {
  1319. this.mySqlConnection_0.Close();
  1320. }
  1321. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  1322. {
  1323. this.string_1,
  1324. this.string_2,
  1325. this.string_3,
  1326. this.string_0
  1327. }));
  1328. try
  1329. {
  1330. this.mySqlConnection_0.Open();
  1331. MySqlCommand mySqlCommand2 = new MySqlCommand(string.Format("UPDATE accounts SET PasswordCheck = '-1' WHERE Username = '" + this.TextBox_0.Text + "' ", new object[0]), this.mySqlConnection_0);
  1332. mySqlCommand2.ExecuteNonQuery();
  1333. }
  1334. catch (Exception expr_22A)
  1335. {
  1336. ProjectData.SetProjectError(expr_22A);
  1337. Exception ex2 = expr_22A;
  1338. Interaction.MsgBox(ex2.Message, MsgBoxStyle.OkOnly, null);
  1339. ProjectData.ClearProjectError();
  1340. }
  1341. finally
  1342. {
  1343. this.mySqlConnection_0.Close();
  1344. }
  1345. ProjectData.EndApp();
  1346. }
  1347. }
  1348. this.int_2 = 1;
  1349. Process[] processesByName5 = Process.GetProcessesByName("cheatengine-i386");
  1350. if (processesByName5.Length != 0)
  1351. {
  1352. this.Timer_0.Stop();
  1353. Interaction.MsgBox("Cheat Engine Detected", MsgBoxStyle.Critical, null);
  1354. Process[] processesByName6 = Process.GetProcessesByName("gta_sa");
  1355. for (int k = 0; k < processesByName6.Length; k++)
  1356. {
  1357. Process process3 = processesByName6[k];
  1358. process3.Kill();
  1359. this.Close();
  1360. }
  1361. ProjectData.EndApp();
  1362. }
  1363. Process[] processesByName7 = Process.GetProcessesByName("artmoney733");
  1364. if (processesByName7.Length != 0)
  1365. {
  1366. this.Timer_0.Stop();
  1367. Interaction.MsgBox("Art Money Detected", MsgBoxStyle.Critical, null);
  1368. Process[] processesByName8 = Process.GetProcessesByName("gta_sa");
  1369. for (int l = 0; l < processesByName8.Length; l++)
  1370. {
  1371. Process process4 = processesByName8[l];
  1372. process4.Kill();
  1373. this.Close();
  1374. }
  1375. ProjectData.EndApp();
  1376. }
  1377. Process[] processesByName9 = Process.GetProcessesByName("SbieCtrl");
  1378. if (processesByName9.Length != 0)
  1379. {
  1380. this.Timer_0.Stop();
  1381. Interaction.MsgBox("Sandboxie Detected", MsgBoxStyle.Critical, null);
  1382. Process[] processesByName10 = Process.GetProcessesByName("gta_sa");
  1383. for (int m = 0; m < processesByName10.Length; m++)
  1384. {
  1385. Process process5 = processesByName10[m];
  1386. process5.Kill();
  1387. this.Close();
  1388. }
  1389. ProjectData.EndApp();
  1390. }
  1391. Process[] processesByName11 = Process.GetProcessesByName("Start");
  1392. if (processesByName11.Length != 0)
  1393. {
  1394. this.Timer_0.Stop();
  1395. Interaction.MsgBox("Sandboxie Detected", MsgBoxStyle.Critical, null);
  1396. Process[] processesByName12 = Process.GetProcessesByName("gta_sa");
  1397. for (int n = 0; n < processesByName12.Length; n++)
  1398. {
  1399. Process process6 = processesByName12[n];
  1400. process6.Kill();
  1401. this.Close();
  1402. }
  1403. ProjectData.EndApp();
  1404. }
  1405. }
  1406. }
  1407.  
  1408. // Token: 0x0600009D RID: 157 RVA: 0x0028CA8C File Offset: 0x0028AC8C
  1409. private void method_15(object sender, EventArgs e)
  1410. {
  1411. this.Label_0.Text = "";
  1412. Process[] processes = Process.GetProcesses();
  1413. checked
  1414. {
  1415. for (int i = 0; i < processes.Length; i++)
  1416. {
  1417. Process process = processes[i];
  1418. this.Label_0.Text = string.Concat(new string[]
  1419. {
  1420. this.Label_0.Text,
  1421. process.MainWindowTitle,
  1422. " Process : ( ",
  1423. process.ProcessName,
  1424. ".exe ) | "
  1425. });
  1426. }
  1427. string text = string.Empty;
  1428. long arg_A4_0 = 1L;
  1429. long num = unchecked((long)Strings.Len(this.Label_0.Text));
  1430. for (long num2 = arg_A4_0; num2 <= num; num2 += 1L)
  1431. {
  1432. string text2 = Strings.Mid(this.Label_0.Text, (int)num2, 1);
  1433. long num3;
  1434. if (Strings.Asc(text2) < 0)
  1435. {
  1436. if (num3 >= 119L)
  1437. {
  1438. text += "\r\n";
  1439. num3 = 2L;
  1440. }
  1441. else
  1442. {
  1443. num3 += 2L;
  1444. }
  1445. }
  1446. else if (num3 == 120L)
  1447. {
  1448. text += "\r\n";
  1449. num3 = 1L;
  1450. }
  1451. else
  1452. {
  1453. num3 += 1L;
  1454. }
  1455. text += text2;
  1456. }
  1457. this.Label_0.Text = text;
  1458. if (this.mySqlConnection_0 != null)
  1459. {
  1460. this.mySqlConnection_0.Close();
  1461. }
  1462. this.mySqlConnection_0.set_ConnectionString(string.Format("server={0}; user id={1}; password={2}; database={3}; pooling=false", new object[]
  1463. {
  1464. this.string_1,
  1465. this.string_2,
  1466. this.string_3,
  1467. this.string_0
  1468. }));
  1469. try
  1470. {
  1471. this.mySqlConnection_0.Open();
  1472. MySqlCommand mySqlCommand = new MySqlCommand(string.Format(string.Concat(new string[]
  1473. {
  1474. "UPDATE accounts SET playerProcess = '",
  1475. this.Label_0.Text,
  1476. "' WHERE Username = '",
  1477. this.TextBox_0.Text,
  1478. "' "
  1479. }), new object[0]), this.mySqlConnection_0);
  1480. mySqlCommand.ExecuteNonQuery();
  1481. }
  1482. catch (Exception expr_220)
  1483. {
  1484. ProjectData.SetProjectError(expr_220);
  1485. Exception ex = expr_220;
  1486. Interaction.MsgBox(ex.Message, MsgBoxStyle.OkOnly, null);
  1487. ProjectData.ClearProjectError();
  1488. }
  1489. finally
  1490. {
  1491. this.mySqlConnection_0.Close();
  1492. }
  1493. }
  1494. }
  1495.  
  1496. // Token: 0x0600009E RID: 158 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1497. private void method_16(object sender, EventArgs e)
  1498. {
  1499. }
  1500.  
  1501. // Token: 0x0600009F RID: 159 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1502. private void method_17(object sender, EventArgs e)
  1503. {
  1504. }
  1505.  
  1506. // Token: 0x060000A0 RID: 160 RVA: 0x0028CD00 File Offset: 0x0028AF00
  1507. private void method_18(object sender, EventArgs e)
  1508. {
  1509. if (this.int_1 == 1)
  1510. {
  1511. Process[] processesByName = Process.GetProcessesByName("check");
  1512. if (processesByName.Length == 0)
  1513. {
  1514. this.Button_0.Enabled = true;
  1515. this.TextBox_0.Enabled = true;
  1516. this.TextBox_1.Enabled = true;
  1517. this.Timer_2.Stop();
  1518. this.Label_2.Text = "การตรวจสอบ Appiction เสร็จสมบูรณ์";
  1519. }
  1520. }
  1521. }
  1522.  
  1523. // Token: 0x060000A1 RID: 161 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1524. private void method_19(object sender, EventArgs e)
  1525. {
  1526. }
  1527.  
  1528. // Token: 0x060000A2 RID: 162 RVA: 0x0028CD68 File Offset: 0x0028AF68
  1529. private void method_20(object sender, EventArgs e)
  1530. {
  1531. this.WindowState = FormWindowState.Minimized;
  1532. }
  1533.  
  1534. // Token: 0x060000A3 RID: 163 RVA: 0x0028CD7C File Offset: 0x0028AF7C
  1535. private void method_21(object sender, EventArgs e)
  1536. {
  1537. this.Close();
  1538. }
  1539.  
  1540. // Token: 0x060000A4 RID: 164 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1541. private void method_22(object sender, WebBrowserDocumentCompletedEventArgs e)
  1542. {
  1543. }
  1544.  
  1545. // Token: 0x060000A5 RID: 165 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1546. private void method_23(object sender, EventArgs e)
  1547. {
  1548. }
  1549.  
  1550. // Token: 0x060000A6 RID: 166 RVA: 0x0028B4B8 File Offset: 0x002896B8
  1551. private void method_24(object sender, EventArgs e)
  1552. {
  1553. }
  1554.  
  1555. // Token: 0x060000A7 RID: 167 RVA: 0x0028CD90 File Offset: 0x0028AF90
  1556. private void method_25(object sender, EventArgs e)
  1557. {
  1558. string fileName = "http://hgrp.online/register";
  1559. Process.Start(fileName);
  1560. }
  1561.  
  1562. // Token: 0x04000036 RID: 54
  1563. private IContainer icontainer_0;
  1564.  
  1565. // Token: 0x04000037 RID: 55
  1566. [AccessedThroughProperty("txtUsername")]
  1567. private TextBox textBox_0;
  1568.  
  1569. // Token: 0x04000038 RID: 56
  1570. [AccessedThroughProperty("txtPassword")]
  1571. private TextBox textBox_1;
  1572.  
  1573. // Token: 0x04000039 RID: 57
  1574. [AccessedThroughProperty("txtStart")]
  1575. private Button button_0;
  1576.  
  1577. // Token: 0x0400003A RID: 58
  1578. [AccessedThroughProperty("ListBox1")]
  1579. private ListBox listBox_0;
  1580.  
  1581. // Token: 0x0400003B RID: 59
  1582. [AccessedThroughProperty("Label3")]
  1583. private Label label_0;
  1584.  
  1585. // Token: 0x0400003C RID: 60
  1586. [AccessedThroughProperty("Timer1")]
  1587. private Timer timer_0;
  1588.  
  1589. // Token: 0x0400003D RID: 61
  1590. [AccessedThroughProperty("Timer2")]
  1591. private Timer timer_1;
  1592.  
  1593. // Token: 0x0400003E RID: 62
  1594. [AccessedThroughProperty("LbnLink")]
  1595. private Label label_1;
  1596.  
  1597. // Token: 0x0400003F RID: 63
  1598. [AccessedThroughProperty("LbnLoad2")]
  1599. private Label label_2;
  1600.  
  1601. // Token: 0x04000040 RID: 64
  1602. [AccessedThroughProperty("PgbLoadStats")]
  1603. private ProgressBar progressBar_0;
  1604.  
  1605. // Token: 0x04000041 RID: 65
  1606. [AccessedThroughProperty("Timer3")]
  1607. private Timer timer_2;
  1608.  
  1609. // Token: 0x04000042 RID: 66
  1610. [AccessedThroughProperty("Label2")]
  1611. private Label label_3;
  1612.  
  1613. // Token: 0x04000043 RID: 67
  1614. [AccessedThroughProperty("Label1")]
  1615. private Label label_4;
  1616.  
  1617. // Token: 0x04000044 RID: 68
  1618. [AccessedThroughProperty("Button1")]
  1619. private Button button_1;
  1620.  
  1621. // Token: 0x04000045 RID: 69
  1622. [AccessedThroughProperty("PictureBox1")]
  1623. private PictureBox pictureBox_0;
  1624.  
  1625. // Token: 0x04000046 RID: 70
  1626. [AccessedThroughProperty("PictureBox2")]
  1627. private PictureBox pictureBox_1;
  1628.  
  1629. // Token: 0x04000047 RID: 71
  1630. [AccessedThroughProperty("WebBrowser1")]
  1631. private WebBrowser webBrowser_0;
  1632.  
  1633. // Token: 0x04000048 RID: 72
  1634. [AccessedThroughProperty("Label4")]
  1635. private Label label_5;
  1636.  
  1637. // Token: 0x04000049 RID: 73
  1638. private MySqlConnection mySqlConnection_0;
  1639.  
  1640. // Token: 0x0400004A RID: 74
  1641. private int int_0;
  1642.  
  1643. // Token: 0x0400004B RID: 75
  1644. private int int_1;
  1645.  
  1646. // Token: 0x0400004C RID: 76
  1647. private string string_0;
  1648.  
  1649. // Token: 0x0400004D RID: 77
  1650. private string string_1;
  1651.  
  1652. // Token: 0x0400004E RID: 78
  1653. private string string_2;
  1654.  
  1655. // Token: 0x0400004F RID: 79
  1656. private string string_3;
  1657.  
  1658. // Token: 0x04000050 RID: 80
  1659. private int int_2;
  1660.  
  1661. // Token: 0x04000051 RID: 81
  1662. [AccessedThroughProperty("httpclient")]
  1663. private WebClient webClient_0;
  1664.  
  1665. // Token: 0x04000052 RID: 82
  1666. private int int_3;
  1667.  
  1668. // Token: 0x04000053 RID: 83
  1669. private string string_4;
  1670.  
  1671. // Token: 0x04000054 RID: 84
  1672. private bool bool_0;
  1673.  
  1674. // Token: 0x04000055 RID: 85
  1675. private int int_4;
  1676.  
  1677. // Token: 0x04000056 RID: 86
  1678. private int int_5;
  1679. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement