Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. int __cdecl sub_AE9DE0(int a1)
  2. {
  3. int result; // eax@1
  4. signed int v2; // esi@2
  5. int v3; // edi@2
  6. int v4; // ebx@2
  7. int v5; // eax@6
  8. const char *v6; // edi@6
  9. signed int v7; // esi@7
  10. const char *v8; // eax@8
  11. int v9; // eax@9
  12. int v10; // esi@13
  13. int v11; // eax@16
  14. char v12; // [sp+4h] [bp-134h]@4
  15. int v13; // [sp+1Ch] [bp-11Ch]@6
  16. int v14; // [sp+12Ch] [bp-Ch]@2
  17. int v15; // [sp+130h] [bp-8h]@6
  18. const char *v16; // [sp+134h] [bp-4h]@1
  19.  
  20. result = sub_7685F0(a1, 2, 0); -> Tolstring
  21. v16 = (const char *)result;
  22. if ( result )
  23. {
  24. sub_7661E0(a1, 1);-> Getmetatable
  25. v2 = sub_766410(a1);-> Gettop
  26. sub_767360(a1, "env");-> PushString
  27. sub_767640(a1, v2);
  28. v14 = sub_766410(a1);-> Gettop
  29. sub_767360(a1, "function");-> PushString
  30. sub_767640(a1, v2);
  31. sub_767360(a1, "frame");-> PushString
  32. sub_767640(a1, v2);
  33. v3 = sub_768560(a1, -1, 0);-> Tointeger
  34. sub_767360(a1, "thread");-> PushString
  35. sub_767640(a1, v2);
  36. v4 = sub_768840(a1, -1);
  37. if ( v4 == a1 )
  38. v3 += 2;
  39. sub_12A5A00(&v12, 0, 296);
  40. if ( sub_7662B0(v4, v3, &v12) == 1 && sub_765E30(v4, "uf", &v12) )
  41. {
  42. v5 = sub_766410(v4); -> Gettop
  43. v6 = v16;
  44. v15 = v5;
  45. if ( v13 <= 0 || (v7 = 1, v13 < 1) )
  46. {
  47. LABEL_13:
  48. v10 = 0;
  49. if ( sub_766060(v4, &v12, 1) )
  50. {
  51. do
  52. {
  53. ++v10;
  54. sub_7683B0(v4, -2); -> Settop
  55. }
  56. while ( sub_766060(v4, &v12, v10 + 1) );
  57. }
  58. if ( v10 <= 0 )
  59. {
  60. LABEL_20:
  61. sub_767A50(v4, v15);
  62. sub_7674D0(a1, 2);-> PushValue
  63. sub_766390(a1, v14);
  64. return 1;
  65. }
  66. while ( 1 )
  67. {
  68. v11 = strcmp((const char *)sub_766060(v4, &v12, v10), v6);
  69. if ( v11 )
  70. v11 = -(v11 < 0) | 1;
  71. if ( !v11 )
  72. break;
  73. sub_7683B0(v4, -2);-> Settop
  74. if ( --v10 <= 0 )
  75. goto LABEL_20;
  76. }
  77. }
  78. else
  79. {
  80. while ( 1 )
  81. {
  82. v8 = (const char *)sub_766430(v4, v5, v7);
  83. if ( v8 )
  84. {
  85. v9 = strcmp(v8, v6);
  86. if ( v9 )
  87. v9 = -(v9 < 0) | 1;
  88. if ( !v9 )
  89. break;
  90. }
  91. sub_7683B0(v4, -2);-> Settop
  92. v5 = v15;
  93. if ( ++v7 > v13 )
  94. goto LABEL_13;
  95. }
  96. }
  97. sub_768910(v4, a1, 1);
  98. sub_767A50(v4, v15);
  99. result = 1;
  100. }
  101. else
  102. {
  103. sub_765D40(a1, -10002, v16);-> GetField 3Arg
  104. result = 1;
  105. }
  106. }
  107. return result;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement