Advertisement
gogo92111

Pseudo Code

Apr 10th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. int __cdecl sub_100A3EB0(int a1)
  2. {
  3. char *v1; // eax@2
  4. char *v2; // eax@5
  5. int v3; // edx@5
  6. char v5; // [sp-20h] [bp-19Ch]@3
  7. signed int v6; // [sp-Ch] [bp-188h]@7
  8. int v7; // [sp-8h] [bp-184h]@7
  9. unsigned int v8; // [sp-4h] [bp-180h]@1
  10. int v9; // [sp+Ch] [bp-170h]@1
  11. char *v10; // [sp+14h] [bp-168h]@6
  12. char *v11; // [sp+20h] [bp-15Ch]@4
  13. char *v12; // [sp+2Ch] [bp-150h]@3
  14. char v13; // [sp+38h] [bp-144h]@2
  15. char v14; // [sp+5Ch] [bp-120h]@2
  16. char v15; // [sp+83h] [bp-F9h]@2
  17. char v16; // [sp+14Ch] [bp-30h]@2
  18. unsigned int v17; // [sp+16Ch] [bp-10h]@1
  19. int v18; // [sp+178h] [bp-4h]@2
  20. int savedregs; // [sp+17Ch] [bp+0h]@1
  21.  
  22. memset(&v9, 0xCCu, 0x164u);
  23. v17 = (unsigned int)&savedregs ^ __security_cookie;
  24. v8 = (unsigned int)&savedregs ^ __security_cookie;
  25. sub_100414BE(&unk_100E311C);
  26. if ( sub_10040794(a1, -1) == 4 )
  27. {
  28. v1 = (char *)sub_100401AE(a1, -1, 0);
  29. sub_10040244(&v16, v1);
  30. v18 = 0;
  31. sub_10040244(&v14, "NzEzOQ==");
  32. LOBYTE(v18) = 1;
  33. v9 = sub_100400FA(&v13, &v14);
  34. v15 = sub_10041720(&v16, v9);
  35. sub_1004131F(&v13);
  36. LOBYTE(v18) = 0;
  37. sub_1004131F(&v14);
  38. if ( v15 )
  39. {
  40. dword_100DB954(3, "Developer mode activated!");
  41. sub_1004153B(v8);
  42. v12 = &v5;
  43. sub_10040244(
  44. &v5,
  45. "game.StarterGui:SetCore('SendNotification', {Duration = 3; Title='Robot'; Text='Developer mode activated!'})");
  46. sub_100947D0(v5);
  47. }
  48. else
  49. {
  50. v11 = &v5;
  51. sub_10040244(&v5, "game.Players.LocalPlayer:Kick('Wrong password...')");
  52. sub_100947D0(v5);
  53. }
  54. v2 = (char *)sub_100406BD(&v16);
  55. sub_100409B0(a1, v2);
  56. v18 = -1;
  57. sub_1004131F(&v16);
  58. }
  59. else
  60. {
  61. v10 = &v5;
  62. sub_10040244(&v5, "game.Players.LocalPlayer:Kick('Wrong password...')");
  63. sub_100947D0(v5);
  64. }
  65. v7 = v3;
  66. v6 = 1;
  67. sub_10041635(&savedregs, &dword_100A4078);
  68. sub_100412AC();
  69. return sub_1004153B(savedregs);
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement