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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, ecx
mov eax, dword [0x591128]
xor eax, ebp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
mov edi, ecx
xor edi, 0x7fffffff
mov dword [esp + 0x40], eax
mov ebx, eax
not ebx
mov eax, ebx
or eax, edi
mov dword [esp + 0x7c], 4
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, 0xffffffff
je 0x4904cc
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov eax, edx
or eax, ecx
je 0x49048a
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
jmp 0x49049e
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0043a750
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
sub eax, edx
mov edx, dword [esp + 0x3c]
sbb edx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
lea ecx, [esp + 0x80]
call fcn.0043a6c0
test edx, edx
jne 0x4907ce
mov dword [esp + 0x78], eax
test eax, eax
je 0x4907b6
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
jmp 0x4904fc
mov dword [esp + 0x78], eax
test eax, eax
je 0x4907b6
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.004028c0
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.004028c0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
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
test eax, eax
jne 0x4906a0
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x38], ecx
call dword [eax + 0x10]
movzx ebx, byte [0x59036c]
test bl, 0x19
jne 0x490709
mov dword [esp + 0x34], 0xffffffff
xor edi, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
mov esi, eax
test bl, 0x19
je 0x4905d6
cmp byte [edi], 0
je 0x4905d6
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
movq xmm0, qword [esp + 0x50]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00449700
test esi, sym.nw.exe_Ordinal_0
jne 0x4907a9
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx ebx, byte [0x59036c]
test bl, 0x19
jne 0x490759
mov dword [esp + 0x30], 0xffffffff
xor esi, esi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0x14
mov edi, eax
test bl, 0x19
je 0x490677
cmp byte [esi], 0
je 0x490677
mov eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
movq xmm0, qword [esp + 0x80]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00449700
test edi, edi
mov ebx, dword [esp + 0x4c]
jne 0x4907a9
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
je 0x4906a0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, 0xffffffff
mov ecx, ebx
or ecx, edi
je 0x4904f0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0043a750
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
sbb ecx, dword [esp + 0x54]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x80]
call fcn.0043a6c0
test edx, edx
je 0x4904f0
sar edx, 0x1f
not edx
mov eax, edx
jmp 0x4904f0
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], 0x59036c
mov dword [esp], 0x58
mov dword [esp + 0x34], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov edi, 0x59036c
call fcn.00407790
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x49058e
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], 0x59036c
mov dword [esp], 0x58
mov esi, 0x59036c
mov dword [esp + 0x34], str.MessagePumpForUI::WaitForWork_PeekMessage
call fcn.00407790
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x49061c
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4907b6
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0050f421
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
sar edx, 0x1f
not edx
mov eax, edx
jmp 0x4904cc