Function at 0x4125e0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c248d
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [sym.imp.user32.dll_PeekMessageA]
push ebp
push esi
push edi
push 1
xor ebp, ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x44]
push eax
mov esi, ecx
call ebx
test eax, eax
je 0x412684
mov edi, dword [sym.imp.uitoolkit.dll_public:_bool___thiscall_SysSystemDriver::MessageProcedure_struct_HWND_____struct_tagMSG__]
lea esp, [esp]
mov eax, dword [esp + 0x38]
cmp eax, 0x200
jb 0x412632
cmp eax, 0x209
jbe 0x412648
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.user32.dll_TranslateMessage]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.user32.dll_DispatchMessageA]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.0040e8e0
cmp eax, ebp
jne 0x412674
cmp dword [esi + 0x38], ebp
jne 0x412674
mov eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x198]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
push eax
call edi
push 1
push ebp
push ebp
push ebp
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
jne 0x412620
call fcn.00471b70
cmp dword [eax + 0x2de8], ebp
je 0x41269d
call fcn.00471b70
mov ecx, eax
call fcn.0047b630
mov ecx, esi
call fcn.0040c070
test eax, eax
je 0x4126af
mov ecx, esi
call fcn.0040f130
mov ecx, esi
call fcn.0040a430
mov ecx, esi
call fcn.004124a0
call dword [sym.imp.engine.dll_void___cdecl_ProcessWorldRecvBuffer_void_]
mov ecx, esi
call fcn.0040a5b0
mov al, byte [0x4fef10]
mov esi, dword [sym.imp.engine.dll_class_Xenesis2::Foundation::Memory::xEncryptMemory____cdecl_Xenesis2::Foundation::Memory::theEncryptMemory_void_]
or ebx, 0xffffffff
test al, 1
jne 0x412727
or dword [0x4fef10], 1
push 1
mov dword [esp + 0x5c], ebp
mov dword [0x4fef04], 0x4d38bc
call esi
mov ecx, eax
call fcn.00415ca0
push 1
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [0x4fef08], eax
mov dword [esp + 0x1c], ebp
call esi
mov ecx, eax
call fcn.00413da0
push 0x4cf950
call fcn.004c0173
add esp, 4
mov dword [esp + 0x58], ebx
mov cl, byte [0x4fef10]
mov edi, dword [sym.imp.winmm.dll_timeGetTime]
mov eax, 2
test al, cl
jne 0x41278e
or dword [0x4fef10], eax
mov dword [esp + 0x58], 1
call edi
push 1
mov ebp, eax
mov dword [0x4feef8], 0x4d38bc
call esi
mov ecx, eax
call fcn.00415ca0
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [0x4feefc], eax
mov dword [esp + 0x1c], ebp
call esi
mov ecx, eax
call fcn.00413da0
push 0x4cf930
call fcn.004c0173
add esp, 4
mov dword [esp + 0x58], ebx
call fcn.004bc8f0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
add eax, 0x58
mov ebx, 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.004bd7b0
mov ecx, eax
call fcn.004bce80
mov ecx, dword [0x4fef08]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
call esi
mov ecx, eax
call fcn.004067e0
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x24]
je 0x412833
call fcn.004bc8f0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
add eax, 0x58
push eax
mov dword [esp + 0x1c], ebx
call fcn.004bd7b0
mov ecx, eax
call fcn.004bce80
mov edx, dword [0x4fef08]
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call esi
mov ecx, eax
call fcn.00413da0
call edi
mov ecx, dword [0x4feefc]
mov dword [esp + 0x10], eax
push ebx
lea eax, [esp + 0x14]
push eax
push ecx
call esi
mov ecx, eax
call fcn.00413da0
mov eax, dword [0x4feefc]
push ebx
lea edx, [esp + 0x28]
push edx
push eax
call esi
mov ecx, eax
call fcn.004067e0
call edi
sub eax, dword [esp + 0x24]
cmp eax, 0x2710
jbe 0x41285c
push ebx
call dword [sym.imp.msvcr71.dll_exit]
mov cl, byte [0x4fef10]
mov eax, 4
test al, cl
jne 0x412878
or dword [0x4fef10], eax
call edi
mov dword [0x4feef4], eax
call esi
mov ecx, dword [0x4feef0]
cmp ecx, dword [eax + 0x38]
je 0x412897
call esi
mov edx, dword [eax + 0x38]
mov dword [0x4feef0], edx
call edi
mov dword [0x4feef4], eax
call edi
sub eax, dword [0x4feef4]
cmp eax, 0x2710
jbe 0x4128ad
push ebx
call dword [sym.imp.msvcr71.dll_exit]
call esi
mov cl, byte [eax + 0x34]
test cl, cl
je 0x4128cb
push 0x4d1f74
call dword [sym.imp.engine.dll_void___cdecl_CPrintF_char_const__]
add esp, 4
push ebx
call dword [sym.imp.msvcr71.dll_exit]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret