Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:005B2890 ; =============== S U B R O U T I N E =======================================
- .text:005B2890
- .text:005B2890
- .text:005B2890 void_WIN_Main proc near ; CODE XREF: WinMain(x,x,x,x)+428p
- .text:005B2890
- .text:005B2890 var_18 = dword ptr -18h
- .text:005B2890 var_14 = dword ptr -14h
- .text:005B2890 var_4 = dword ptr -4
- .text:005B2890 arg_4 = dword ptr 8
- .text:005B2890
- .text:005B2890 push ecx
- .text:005B2891 push ebp
- .text:005B2892 push esi
- .text:005B2893 xor ebp, ebp
- .text:005B2895 push edi
- .text:005B2896 mov [esp+10h+var_4], ebp
- .text:005B289A call sub_42D740
- .text:005B289F test al, al
- .text:005B28A1 mov esi, [esp+10h+arg_4]
- .text:005B28A5 mov edi, [esp+14h]
- .text:005B28A9 jnz short loc_5B28B6
- .text:005B28AB push esi
- .text:005B28AC push edi
- .text:005B28AD call ds:?UpdateGlobalTime@Timing@@YAXN@Z ; Timing::UpdateGlobalTime(double)
- .text:005B28B3 add esp, 8
- .text:005B28B6
- .text:005B28B6 loc_5B28B6: ; CODE XREF: void_WIN_Main+19j
- .text:005B28B6 mov eax, dword_67ECD0
- .text:005B28BB mov ecx, dword_67ECB0
- .text:005B28C1 push ebx
- .text:005B28C2 xor bl, bl
- .text:005B28C4 cmp ecx, eax
- .text:005B28C6 jz short loc_5B28CF
- .text:005B28C8 mov bl, 1
- .text:005B28CA mov dword_67ECB0, eax
- .text:005B28CF
- .text:005B28CF loc_5B28CF: ; CODE XREF: void_WIN_Main+36j
- .text:005B28CF mov al, byte_67ECBD
- .text:005B28D4 test al, al
- .text:005B28D6 jnz short loc_5B2936
- .text:005B28D8 call ds:?SinglePlayer@@YA_NXZ ; SinglePlayer(void)
- .text:005B28DE test al, al
- .text:005B28E0 jnz short loc_5B2932
- .text:005B28E2 mov al, byte_67ECBE
- .text:005B28E7 test al, al
- .text:005B28E9 jz short loc_5B2932
- .text:005B28EB mov al, byte_67ECBF
- .text:005B28F0 test al, al
- .text:005B28F2 jz short loc_5B2905
- .text:005B28F4 push 0
- .text:005B28F6 push 0
- .text:005B28F8 push 737h
- .text:005B28FD call sub_473CB0
- .text:005B2902 add esp, 0Ch
- .text:005B2905
- .text:005B2905 loc_5B2905: ; CODE XREF: void_WIN_Main+62j
- .text:005B2905 mov byte_67ECBE, 0
- .text:005B290C mov byte_67ECBF, 0
- .text:005B2913 call sub_5A8260
- .text:005B2918 call sub_564B20
- .text:005B291D test al, al
- .text:005B291F jnz short loc_5B2932
- .text:005B2921 push 3
- .text:005B2923 call sub_564B10
- .text:005B2928 add esp, 4
- .text:005B292B mov byte_67ECBD, 1
- .text:005B2932
- .text:005B2932 loc_5B2932: ; CODE XREF: void_WIN_Main+50j
- .text:005B2932 ; void_WIN_Main+59j ...
- .text:005B2932 mov ebp, [esp+14h+var_4]
- .text:005B2936
- .text:005B2936 loc_5B2936: ; CODE XREF: void_WIN_Main+46j
- .text:005B2936 push esi
- .text:005B2937 push edi ; double
- .text:005B2938 call void_Control_Job
- .text:005B293D mov eax, dword_67ECD0
- .text:005B2942 add esp, 8
- .text:005B2945 test eax, eax
- .text:005B2947 jz short loc_5B2970
- .text:005B2949 call sub_42D740
- .text:005B294E test al, al
- .text:005B2950 jnz short loc_5B2970
- .text:005B2952 mov ecx, dword_67ECD0
- .text:005B2958 mov eax, [ecx]
- .text:005B295A call dword ptr [eax+2Ch]
- .text:005B295D fld qword ptr [esp+18h]
- .text:005B2961 mov ecx, dword_67ECD0
- .text:005B2967 mov edx, [ecx]
- .text:005B2969 push ecx
- .text:005B296A fstp [esp+18h+var_18]
- .text:005B296D call dword ptr [edx+30h]
- .text:005B2970
- .text:005B2970 loc_5B2970: ; CODE XREF: void_WIN_Main+B7j
- .text:005B2970 ; void_WIN_Main+C0j
- .text:005B2970 test bl, bl
- .text:005B2972 pop ebx
- .text:005B2973 jz short loc_5B29EE
- .text:005B2975 mov eax, dword_67ECD0
- .text:005B297A test eax, eax
- .text:005B297C jnz short loc_5B29EE
- .text:005B297E call sub_575430
- .text:005B2983 mov ecx, nExitCode
- .text:005B2989 cmp ecx, eax
- .text:005B298B jz short loc_5B29F4
- .text:005B298D call ds:?SinglePlayer@@YA_NXZ ; SinglePlayer(void)
- .text:005B2993 test al, al
- .text:005B2995 jnz short loc_5B29A1
- .text:005B2997 push 3
- .text:005B2999 call sub_564B10
- .text:005B299E add esp, 4
- .text:005B29A1
- .text:005B29A1 loc_5B29A1: ; CODE XREF: void_WIN_Main+105j
- .text:005B29A1 mov ecx, nExitCode
- .text:005B29A7
- .text:005B29A7 loc_5B29A7: ; CODE XREF: void_WIN_Main+16Fj
- .text:005B29A7 ; void_WIN_Main+18Fj
- .text:005B29A7 mov ebp, 6
- .text:005B29AC mov byte_67ECBD, 0
- .text:005B29B3
- .text:005B29B3 loc_5B29B3: ; CODE XREF: void_WIN_Main+18Dj
- .text:005B29B3 mov eax, dword_67ECC4
- .text:005B29B8 test eax, eax
- .text:005B29BA jz short loc_5B29C8
- .text:005B29BC mov ebp, eax
- .text:005B29BE mov dword_67ECC4, 0
- .text:005B29C8
- .text:005B29C8 loc_5B29C8: ; CODE XREF: void_WIN_Main+12Aj
- .text:005B29C8 test ebp, ebp
- .text:005B29CA jz short loc_5B29DE
- .text:005B29CC push ecx
- .text:005B29CD push ebp
- .text:005B29CE call sub_5B2A30
- .text:005B29D3 mov ecx, eax
- .text:005B29D5 add esp, 8
- .text:005B29D8 mov nExitCode, ecx
- .text:005B29DE
- .text:005B29DE loc_5B29DE: ; CODE XREF: void_WIN_Main+13Aj
- .text:005B29DE test ecx, ecx
- .text:005B29E0 pop edi
- .text:005B29E1 pop esi
- .text:005B29E2 pop ebp
- .text:005B29E3 jnz short loc_5B29EC
- .text:005B29E5 push ecx ; nExitCode
- .text:005B29E6 call ds:PostQuitMessage
- .text:005B29EC
- .text:005B29EC loc_5B29EC: ; CODE XREF: void_WIN_Main+153j
- .text:005B29EC pop ecx
- .text:005B29ED retn
- .text:005B29EE ; ---------------------------------------------------------------------------
- .text:005B29EE
- .text:005B29EE loc_5B29EE: ; CODE XREF: void_WIN_Main+E3j
- .text:005B29EE ; void_WIN_Main+ECj
- .text:005B29EE mov ecx, nExitCode
- .text:005B29F4
- .text:005B29F4 loc_5B29F4: ; CODE XREF: void_WIN_Main+FBj
- .text:005B29F4 test ecx, ecx
- .text:005B29F6 jz short loc_5B2A16
- .text:005B29F8 mov al, byte_67ECBD
- .text:005B29FD test al, al
- .text:005B29FF jnz short loc_5B29A7
- .text:005B2A01 fld qword ptr [esp+14h]
- .text:005B2A05 mov eax, [ecx]
- .text:005B2A07 push ecx
- .text:005B2A08 fstp [esp+14h+var_14]
- .text:005B2A0B call dword ptr [eax+38h]
- .text:005B2A0E mov ecx, nExitCode
- .text:005B2A14 mov ebp, eax
- .text:005B2A16
- .text:005B2A16 loc_5B2A16: ; CODE XREF: void_WIN_Main+166j
- .text:005B2A16 mov al, byte_67ECBD
- .text:005B2A1B test al, al
- .text:005B2A1D jz short loc_5B29B3
- .text:005B2A1F jmp short loc_5B29A7
- .text:005B2A1F void_WIN_Main endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement