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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dd725
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x510918]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
xor eax, eax
cmp byte [edi + 0xac], al
je 0x43249f
push eax
push eax
push eax
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [edi + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x24]
lea ebx, [edi + 0x8c]
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push dword [ebx]
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00432954
add esi, 4
lea eax, [esp + 0x30]
cmp esi, eax
jne 0x4324c4
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
cmp byte [edi + 0xac], 0
je 0x432591
push 6
push 0x4ff
push 0xffffffffffffffff
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
lea edx, [edi + 0x8c]
mov ebx, eax
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
sar ecx, 2
cmp ebx, ecx
jne 0x4325a6
xor esi, esi
inc esi
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
lea ebx, [edi + 0x8c]
test eax, eax
je 0x4324f5
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x432580
cmp dword [esp + 0x3c], 0x12
je 0x432762
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
inc esi
cmp esi, 0x64
jl 0x432533
lea ebx, [edi + 0x8c]
jmp 0x4324f5
push 0xffffffffffffffff
push 0
push dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
lea edx, [edi + 0x8c]
cmp ebx, 0xffffffff
je 0x432762
test ebx, ebx
je 0x432762
cmp ebx, 0x80
lea eax, [ebx - 0x80]
mov esi, ebx
cmovae esi, eax
test esi, esi
je 0x43269b
cmp esi, 3
jae 0x4326a0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x80], 0
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor edx, edx
mov ebx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
lea ecx, [edi + 0x70]
lea eax, [esp + 0x10]
mov byte [esp + 0x80], 1
cmp eax, ecx
je 0x432637
mov ebx, dword [ecx]
mov dword [ecx], edx
mov eax, dword [ecx + 4]
mov dword [ecx + 4], edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov dword [ecx + 8], edx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x34], 0
mov esi, ebx
cmp ebx, dword [esp + 0x14]
je 0x432661
mov edi, dword [esp + 0x14]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 8
cmp esi, edi
jne 0x43264f
mov edi, dword [esp + 0x20]
lea ecx, [edi + 0x20]
call fcn.00442db5
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x43268e
push ebx
call fcn.004a295f
xor eax, eax
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
or dword [esp + 0x80], 0xffffffff
jmp 0x432586
cmp esi, 3
jb 0x4326f8
mov ecx, dword [edx]
mov eax, dword [edx + 4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4326f8
mov eax, dword [ecx + esi*4]
mov edx, dword [edi]
push eax
sub esi, 3
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ebx, [edi + 0x8c]
test al, al
jne 0x4324f5
lea ebx, [edi + 0x8c]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea eax, [eax + esi*4]
add eax, 0xc
lea edx, [eax + 4]
sub ecx, edx
and ecx, 0xfffffffc
push ecx
push edx
push eax
call fcn.004a2bb0
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x4324f5
mov eax, dword [0x513098]
push 3
pop esi
and eax, esi
cmp al, 3
jne 0x432762
and dword [esp + 0x64], 0
push 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 7
call fcn.004031c0
mov byte [esp + 0x6c], 0
push ebx
push str.Unexpected_res_value:
lea ecx, [esp + 0x5c]
mov dword [esp + 0x88], esi
call fcn.00404c40
mov ecx, eax
call fcn.004059d0
lea eax, [esp + 0x54]
push eax
push eax
push 0x174
push str.Utils::CBaseThread::LoopProc
push esi
call fcn.00428590
add esp, 0x14
lea ecx, [esp + 0x54]
call fcn.00403170
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a2964
mov esp, ebp
pop ebp
ret