Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:005B2890 ; =============== S U B R O U T I N E =======================================
  2. .text:005B2890
  3. .text:005B2890
  4. .text:005B2890 void_WIN_Main   proc near               ; CODE XREF: WinMain(x,x,x,x)+428p
  5. .text:005B2890
  6. .text:005B2890 var_18          = dword ptr -18h
  7. .text:005B2890 var_14          = dword ptr -14h
  8. .text:005B2890 var_4           = dword ptr -4
  9. .text:005B2890 arg_4           = dword ptr  8
  10. .text:005B2890
  11. .text:005B2890                 push    ecx
  12. .text:005B2891                 push    ebp
  13. .text:005B2892                 push    esi
  14. .text:005B2893                 xor     ebp, ebp
  15. .text:005B2895                 push    edi
  16. .text:005B2896                 mov     [esp+10h+var_4], ebp
  17. .text:005B289A                 call    sub_42D740
  18. .text:005B289F                 test    al, al
  19. .text:005B28A1                 mov     esi, [esp+10h+arg_4]
  20. .text:005B28A5                 mov     edi, [esp+14h]
  21. .text:005B28A9                 jnz     short loc_5B28B6
  22. .text:005B28AB                 push    esi
  23. .text:005B28AC                 push    edi
  24. .text:005B28AD                 call    ds:?UpdateGlobalTime@Timing@@YAXN@Z ; Timing::UpdateGlobalTime(double)
  25. .text:005B28B3                 add     esp, 8
  26. .text:005B28B6
  27. .text:005B28B6 loc_5B28B6:                             ; CODE XREF: void_WIN_Main+19j
  28. .text:005B28B6                 mov     eax, dword_67ECD0
  29. .text:005B28BB                 mov     ecx, dword_67ECB0
  30. .text:005B28C1                 push    ebx
  31. .text:005B28C2                 xor     bl, bl
  32. .text:005B28C4                 cmp     ecx, eax
  33. .text:005B28C6                 jz      short loc_5B28CF
  34. .text:005B28C8                 mov     bl, 1
  35. .text:005B28CA                 mov     dword_67ECB0, eax
  36. .text:005B28CF
  37. .text:005B28CF loc_5B28CF:                             ; CODE XREF: void_WIN_Main+36j
  38. .text:005B28CF                 mov     al, byte_67ECBD
  39. .text:005B28D4                 test    al, al
  40. .text:005B28D6                 jnz     short loc_5B2936
  41. .text:005B28D8                 call    ds:?SinglePlayer@@YA_NXZ ; SinglePlayer(void)
  42. .text:005B28DE                 test    al, al
  43. .text:005B28E0                 jnz     short loc_5B2932
  44. .text:005B28E2                 mov     al, byte_67ECBE
  45. .text:005B28E7                 test    al, al
  46. .text:005B28E9                 jz      short loc_5B2932
  47. .text:005B28EB                 mov     al, byte_67ECBF
  48. .text:005B28F0                 test    al, al
  49. .text:005B28F2                 jz      short loc_5B2905
  50. .text:005B28F4                 push    0
  51. .text:005B28F6                 push    0
  52. .text:005B28F8                 push    737h
  53. .text:005B28FD                 call    sub_473CB0
  54. .text:005B2902                 add     esp, 0Ch
  55. .text:005B2905
  56. .text:005B2905 loc_5B2905:                             ; CODE XREF: void_WIN_Main+62j
  57. .text:005B2905                 mov     byte_67ECBE, 0
  58. .text:005B290C                 mov     byte_67ECBF, 0
  59. .text:005B2913                 call    sub_5A8260
  60. .text:005B2918                 call    sub_564B20
  61. .text:005B291D                 test    al, al
  62. .text:005B291F                 jnz     short loc_5B2932
  63. .text:005B2921                 push    3
  64. .text:005B2923                 call    sub_564B10
  65. .text:005B2928                 add     esp, 4
  66. .text:005B292B                 mov     byte_67ECBD, 1
  67. .text:005B2932
  68. .text:005B2932 loc_5B2932:                             ; CODE XREF: void_WIN_Main+50j
  69. .text:005B2932                                         ; void_WIN_Main+59j ...
  70. .text:005B2932                 mov     ebp, [esp+14h+var_4]
  71. .text:005B2936
  72. .text:005B2936 loc_5B2936:                             ; CODE XREF: void_WIN_Main+46j
  73. .text:005B2936                 push    esi
  74. .text:005B2937                 push    edi             ; double
  75. .text:005B2938                 call    void_Control_Job
  76. .text:005B293D                 mov     eax, dword_67ECD0
  77. .text:005B2942                 add     esp, 8
  78. .text:005B2945                 test    eax, eax
  79. .text:005B2947                 jz      short loc_5B2970
  80. .text:005B2949                 call    sub_42D740
  81. .text:005B294E                 test    al, al
  82. .text:005B2950                 jnz     short loc_5B2970
  83. .text:005B2952                 mov     ecx, dword_67ECD0
  84. .text:005B2958                 mov     eax, [ecx]
  85. .text:005B295A                 call    dword ptr [eax+2Ch]
  86. .text:005B295D                 fld     qword ptr [esp+18h]
  87. .text:005B2961                 mov     ecx, dword_67ECD0
  88. .text:005B2967                 mov     edx, [ecx]
  89. .text:005B2969                 push    ecx
  90. .text:005B296A                 fstp    [esp+18h+var_18]
  91. .text:005B296D                 call    dword ptr [edx+30h]
  92. .text:005B2970
  93. .text:005B2970 loc_5B2970:                             ; CODE XREF: void_WIN_Main+B7j
  94. .text:005B2970                                         ; void_WIN_Main+C0j
  95. .text:005B2970                 test    bl, bl
  96. .text:005B2972                 pop     ebx
  97. .text:005B2973                 jz      short loc_5B29EE
  98. .text:005B2975                 mov     eax, dword_67ECD0
  99. .text:005B297A                 test    eax, eax
  100. .text:005B297C                 jnz     short loc_5B29EE
  101. .text:005B297E                 call    sub_575430
  102. .text:005B2983                 mov     ecx, nExitCode
  103. .text:005B2989                 cmp     ecx, eax
  104. .text:005B298B                 jz      short loc_5B29F4
  105. .text:005B298D                 call    ds:?SinglePlayer@@YA_NXZ ; SinglePlayer(void)
  106. .text:005B2993                 test    al, al
  107. .text:005B2995                 jnz     short loc_5B29A1
  108. .text:005B2997                 push    3
  109. .text:005B2999                 call    sub_564B10
  110. .text:005B299E                 add     esp, 4
  111. .text:005B29A1
  112. .text:005B29A1 loc_5B29A1:                             ; CODE XREF: void_WIN_Main+105j
  113. .text:005B29A1                 mov     ecx, nExitCode
  114. .text:005B29A7
  115. .text:005B29A7 loc_5B29A7:                             ; CODE XREF: void_WIN_Main+16Fj
  116. .text:005B29A7                                         ; void_WIN_Main+18Fj
  117. .text:005B29A7                 mov     ebp, 6
  118. .text:005B29AC                 mov     byte_67ECBD, 0
  119. .text:005B29B3
  120. .text:005B29B3 loc_5B29B3:                             ; CODE XREF: void_WIN_Main+18Dj
  121. .text:005B29B3                 mov     eax, dword_67ECC4
  122. .text:005B29B8                 test    eax, eax
  123. .text:005B29BA                 jz      short loc_5B29C8
  124. .text:005B29BC                 mov     ebp, eax
  125. .text:005B29BE                 mov     dword_67ECC4, 0
  126. .text:005B29C8
  127. .text:005B29C8 loc_5B29C8:                             ; CODE XREF: void_WIN_Main+12Aj
  128. .text:005B29C8                 test    ebp, ebp
  129. .text:005B29CA                 jz      short loc_5B29DE
  130. .text:005B29CC                 push    ecx
  131. .text:005B29CD                 push    ebp
  132. .text:005B29CE                 call    sub_5B2A30
  133. .text:005B29D3                 mov     ecx, eax
  134. .text:005B29D5                 add     esp, 8
  135. .text:005B29D8                 mov     nExitCode, ecx
  136. .text:005B29DE
  137. .text:005B29DE loc_5B29DE:                             ; CODE XREF: void_WIN_Main+13Aj
  138. .text:005B29DE                 test    ecx, ecx
  139. .text:005B29E0                 pop     edi
  140. .text:005B29E1                 pop     esi
  141. .text:005B29E2                 pop     ebp
  142. .text:005B29E3                 jnz     short loc_5B29EC
  143. .text:005B29E5                 push    ecx             ; nExitCode
  144. .text:005B29E6                 call    ds:PostQuitMessage
  145. .text:005B29EC
  146. .text:005B29EC loc_5B29EC:                             ; CODE XREF: void_WIN_Main+153j
  147. .text:005B29EC                 pop     ecx
  148. .text:005B29ED                 retn
  149. .text:005B29EE ; ---------------------------------------------------------------------------
  150. .text:005B29EE
  151. .text:005B29EE loc_5B29EE:                             ; CODE XREF: void_WIN_Main+E3j
  152. .text:005B29EE                                         ; void_WIN_Main+ECj
  153. .text:005B29EE                 mov     ecx, nExitCode
  154. .text:005B29F4
  155. .text:005B29F4 loc_5B29F4:                             ; CODE XREF: void_WIN_Main+FBj
  156. .text:005B29F4                 test    ecx, ecx
  157. .text:005B29F6                 jz      short loc_5B2A16
  158. .text:005B29F8                 mov     al, byte_67ECBD
  159. .text:005B29FD                 test    al, al
  160. .text:005B29FF                 jnz     short loc_5B29A7
  161. .text:005B2A01                 fld     qword ptr [esp+14h]
  162. .text:005B2A05                 mov     eax, [ecx]
  163. .text:005B2A07                 push    ecx
  164. .text:005B2A08                 fstp    [esp+14h+var_14]
  165. .text:005B2A0B                 call    dword ptr [eax+38h]
  166. .text:005B2A0E                 mov     ecx, nExitCode
  167. .text:005B2A14                 mov     ebp, eax
  168. .text:005B2A16
  169. .text:005B2A16 loc_5B2A16:                             ; CODE XREF: void_WIN_Main+166j
  170. .text:005B2A16                 mov     al, byte_67ECBD
  171. .text:005B2A1B                 test    al, al
  172. .text:005B2A1D                 jz      short loc_5B29B3
  173. .text:005B2A1F                 jmp     short loc_5B29A7
  174. .text:005B2A1F void_WIN_Main   endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement