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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0x2c], ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov edi, ecx
xor edi, 0x7fffffff
mov dword [esp + 0x38], eax
not eax
mov dword [esp + 0x3c], eax
or eax, edi
mov dword [esp + 0x6c], 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
jne 0x4378c9
mov dword [esp + 0x68], 0xffffffff
jmp 0x43794b
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov edx, ecx
or edx, eax
je 0x4378e9
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jmp 0x4378fd
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0043fb50
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
sub edx, ecx
mov ecx, dword [esp + 0x34]
sbb ecx, eax
seto al
mov esi, ecx
sar esi, 0x1f
test al, al
cmovne edx, esi
add esi, 0x80000000
test al, al
cmove esi, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
lea ecx, [esp + 0x70]
call fcn.0043fae0
xor ecx, ecx
test edx, edx
setns dl
jne 0x437d1e
mov dword [esp + 0x68], eax
test eax, eax
je 0x437d09
add dword [esp + 0x2c], 8
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov edi, dword [esp + 0x30]
jmp 0x43798c
mov dword [esp + 0x68], 0xffffffff
test ebx, ebx
je 0x437954
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.00403610
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.00403610
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x1cff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
sub esp, 0x14
mov ebx, eax
mov dword [esp + 0x64], eax
test eax, eax
je 0x437a50
test byte [0x5a646c], 0x19
je 0x437b37
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0x10], xmm0
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], str.reason:
mov dword [esp + 0xc], 0x565bf8
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_Spurious_Wakeup
mov dword [esp + 4], 0x5a646c
mov dword [esp], 0x49
call fcn.0043a020
jmp 0x437b37
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov edi, dword [eax]
mov dword [esp + 0x5c], edi
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov dword [esp + 0x60], eax
test byte [0x5a6bc8], 0x19
jne 0x437bba
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
test eax, 0x400000
jne 0x437ce3
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x4c], xmm0
movdqa xmmword [esp + 0x40], xmm0
test byte [0x5a6bc8], 0x19
jne 0x437c4e
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0x14
test eax, eax
jne 0x437ce3
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x5c], 0
je 0x437b33
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, esi
call edi
sub esp, 4
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
or eax, edi
je 0x437980
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0043fb50
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
sbb ecx, dword [esp + 0x44]
seto dl
mov esi, ecx
sar esi, 0x1f
test dl, dl
cmovne eax, esi
add esi, 0x80000000
test dl, dl
cmove esi, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
lea ecx, [esp + 0x70]
call fcn.0043fae0
xor ecx, ecx
test edx, edx
setns dl
jne 0x437bb2
mov dword [esp + 0x68], eax
test eax, eax
jne 0x437988
jmp 0x437d09
mov cl, dl
neg ecx
mov eax, ecx
jmp 0x437ba1
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov dword [esp + 4], 0x5a6bc8
mov dword [esp], 0x58
call fcn.0040ac84
mov edi, eax
mov dword [esp + 0x28], edx
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
mov esi, eax
cmp byte [0x5a6bc8], 0
je 0x437c3d
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 8], xmm0
mov dword [esp + 4], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov dword [esp], 0x5a6bc8
call fcn.0042f590
test esi, 0x400000
je 0x437abe
jmp 0x437ce3
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_PeekMessage
mov dword [esp + 4], 0x5a6bc8
mov dword [esp], 0x58
call fcn.0040ac84
mov edi, eax
mov dword [esp + 0x28], edx
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0x14
mov esi, eax
cmp byte [0x5a6bc8], 0
je 0x437cdb
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
movq xmm0, qword [esp + 0x70]
movq qword [esp + 8], xmm0
mov dword [esp + 4], str.MessagePumpForUI::WaitForWork_PeekMessage
mov dword [esp], 0x5a6bc8
call fcn.0042f590
test esi, esi
je 0x437afd
cmp dword [esp + 0x5c], 0
je 0x437d09
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], ebx
mov ecx, esi
call edi
sub esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005327f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov cl, dl
neg ecx
mov eax, ecx
jmp 0x43793f