Function at 0x48062e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5233ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 0x10]
push 0
push dword [eax]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x480bb0
lea eax, [ebx + 0x90]
mov dword [esp + 0x40], eax
lea eax, [ebx + 0xb0]
mov dword [esp + 0x3c], eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x40]
lea eax, [esp + 0xb8]
push eax
call fcn.004823f1
and dword [esp + 0x184], 0
lea esi, [esp + 0xdc]
call fcn.004823ab
mov eax, esi
push eax
push dword [esp + 0x44]
mov byte [esp + 0x18c], 1
call fcn.00482496
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xd0]
test eax, eax
jle 0x480ad6
lea esi, [ebx + 0xc8]
lea ecx, [ebx + 0xe8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
jmp 0x4806fc
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xb4]
call fcn.004823d0
lea edi, [esp + 0x24]
call fcn.00480bc9
lea edi, [esp + 0xb4]
mov byte [esp + 0x184], 2
call fcn.00482b43
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xd8]
push eax
push esi
call fcn.00453b4c
lea edi, [esp + 0x6c]
mov esi, eax
call fcn.00434410
push dword [esp + 0x38]
neg al
sbb al, al
inc al
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x4807ae
cmp dword [esp + 0x34], 0
je 0x480798
lea ecx, [esp + 0x148]
lea eax, [esp + 0x34]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push 0
push 1
push eax
call dword [ecx + 0x14]
lea esi, [esp + 0x24]
mov byte [esp + 0x184], 1
call fcn.0047f83d
jmp 0x480acc
lea eax, [ebx + 0x17c]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x68]
lea esi, [ebx + 0x15c]
push eax
push esi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x2c], esi
call fcn.00453b4c
mov eax, dword [esi + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esi]
lea edi, [esp + 0x5c]
lea esi, [esp + 0x64]
mov dword [esp + 0x5c], eax
call fcn.00434410
test al, al
jne 0x480867
mov byte [esp + 0x13], 1
lea edi, [ebx + 0x13c]
call fcn.0043a7c8
add eax, 4
push eax
lea eax, [esp + 0x4c]
push eax
mov esi, edi
call fcn.004822bf
cmp dword [esp + 0x48], 0
mov esi, dword [edi + 0x18]
mov edi, dword [edi]
je 0x48082e
cmp dword [esp + 0x48], edi
je 0x480833
call fcn.004e9f42
cmp dword [esp + 0x4c], esi
je 0x480867
mov eax, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
mov dword [ecx], eax
test eax, eax
je 0x480853
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea esi, [esp + 0x4c]
call fcn.0043a7c8
mov ecx, eax
add ecx, 8
call fcn.0047f258
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
jne 0x480798
lea ecx, [esp + 0x24]
mov edx, ebx
call fcn.0048107f
test eax, eax
jne 0x480798
and dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x1c
call fcn.00460cd7
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x188], 3
call fcn.004805a5
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x188], 4
call fcn.00404918
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x7c]
call fcn.00482087
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x74], edi
je 0x4808eb
lea esi, [esp + 0x74]
call fcn.0042deb3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x138]
mov eax, dword [ebx + 0x138]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x78]
call fcn.004825f1
lea eax, [esp + 0xfc]
push eax
add ebx, 0x13c
lea edi, [esp + 0x130]
mov byte [esp + 0x188], 5
call fcn.0048217c
mov al, byte [eax + 8]
mov byte [esp + 0x13], al
lea eax, [esp + 0x100]
mov byte [esp + 0x184], 4
call fcn.00480600
xor ebx, ebx
cmp byte [esp + 0x13], bl
je 0x4809af
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
call fcn.004015d6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x138]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x128]
mov byte [esp + 0x18c], 6
call fcn.00422202
mov byte [esp + 0x184], 4
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff0
call fcn.0040297c
xor ebx, ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], bl
jne 0x4809e0
cmp dword [esp + 0x34], ebx
je 0x4809e0
lea ecx, [esp + 0x158]
lea eax, [esp + 0x34]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push 2
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x138]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
push 0x24
mov byte [esp + 0x188], 7
call fcn.004ea1a3
mov esi, eax
pop ecx
mov dword [esi + 4], 1
mov eax, dword [esp + 0x20]
mov dword [esi], vtable.CThreadMessageAsyncResult.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x466
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x138]
lea eax, [esp + 0x18]
mov byte [esp + 0x184], 9
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push esi
push ebx
push ebx
push dword [esp + 0x9c]
push eax
call dword [ecx + 0x10]
test eax, eax
setl al
cmp al, bl
je 0x480a8b
cmp dword [esp + 0x34], ebx
je 0x480a8b
lea ecx, [esp + 0x168]
lea eax, [esp + 0x34]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push 2
push eax
call dword [ecx + 0x14]
mov byte [esp + 0x184], 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [esp + 0x74]
call fcn.00480600
mov byte [esp + 0x184], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x480ab8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esi, [esp + 0x24]
mov byte [esp + 0x184], 1
call fcn.0047f83d
mov ebx, dword [ebp + 8]
dec dword [esp + 0x44]
jne 0x4806f8
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x48
push 0x1e
push 0
push dword [esp + 0x28]
push 1
call esi
mov edi, 0x102
jmp 0x480b5c
xor ecx, ecx
cmp eax, ecx
je 0x480b60
push 1
push ecx
push ecx
push ecx
jmp 0x480b3d
cmp dword [esp + 0x9c], 0x466
jne 0x480b1a
push dword [esp + 0xa0]
push ebx
call fcn.00480375
jmp 0x480b36
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x480afe
push 0x48
push 0x1e
push eax
push dword [esp + 0x28]
push 1
call esi
cmp eax, edi
jne 0x480af1
lea eax, [esp + 0xdc]
call fcn.00482ced
push dword [esp + 0xdc]
call fcn.004e9044
or dword [esp + 0x188], 0xffffffff
pop ecx
lea eax, [esp + 0xb4]
call fcn.00482ced
push dword [esp + 0xb4]
call fcn.004e9044
mov eax, dword [esp + 0x20]
pop ecx
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x480682
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4