Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. int __cdecl sub_B663D0(int a1)
  2. {
  3. int result; // eax@1
  4. int v2; // eax@2
  5. int v3; // esi@2
  6. int *v4; // eax@3
  7. int v5; // ebx@3
  8. int v6; // esi@3
  9. int v7; // [sp+4h] [bp-88h]@2
  10. int v8; // [sp+8h] [bp-84h]@2
  11. char v9; // [sp+Ch] [bp-80h]@10
  12. char v10; // [sp+6Ch] [bp-20h]@3
  13. int v11; // [sp+70h] [bp-1Ch]@3
  14. int v12; // [sp+74h] [bp-18h]@2
  15. int v13; // [sp+78h] [bp-14h]@2
  16. int v14; // [sp+7Ch] [bp-10h]@3
  17. int v15; // [sp+88h] [bp-4h]@2
  18.  
  19. result = sub_851E80(a1, -1);
  20. if ( result )
  21. {
  22. v12 = 2;
  23. v13 = a1;
  24. v15 = 0;
  25. sub_8515F0(a1, -1); //GETFENV
  26. v2 = sub_851CE0(a1); // GETTOP
  27. sub_853060(a1, v2, "script");
  28. v7 = sub_605AA0();
  29. v8 = 0;
  30. LOBYTE(v15) = 1;
  31. sub_75C4A0(a1, -1, &v7, 0, 0);
  32. v3 = v7;
  33. if ( v3 == sub_60B410() )
  34. {
  35. v4 = (int *)sub_67AFD0(&v10);
  36. v5 = *v4;
  37. v14 = *v4;
  38. v6 = v11;
  39. LOBYTE(v15) = 2;
  40. if ( v11 )
  41. {
  42. if ( !_InterlockedExchangeAdd((volatile signed __int32 *)(v11 + 4), 0xFFFFFFFF) )
  43. {
  44. (*(void (__thiscall **)(int))(*(_DWORD *)v6 + 4))(v6);
  45. if ( !_InterlockedDecrement((volatile signed __int32 *)(v6 + 8)) )
  46. (*(void (__thiscall **)(int))(*(_DWORD *)v6 + 8))(v6);
  47. }
  48. v5 = v14;
  49. }
  50. }
  51. else
  52. {
  53. v5 = 0;
  54. }
  55. LOBYTE(v15) = 4;
  56. if ( v8 )
  57. (*(void (__cdecl **)(char *))(v8 + 8))(&v9);
  58. v15 = 5;
  59. sub_853E60(a1, -3);
  60. result = v5;
  61. }
  62. return result;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement