Function at 0x4c0e90
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 ebx, ecx
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x88], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
xor ecx, 0x7fffffff
mov eax, esi
not eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
or eax, ecx
mov dword [esp + 0x7c], 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x3c], edi
jne 0x4c0ffb
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x44], esi
mov eax, dword [ebx + 8]
mov esi, ebx
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
lea edi, [esp + 0x7c]
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.004ab010
mov dword [esp], edi
xor edi, edi
call fcn.004ab010
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], edi
mov eax, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov dword [esp + 0xc], 0x1cff
call eax
sub esp, 0x14
test eax, eax
jne 0x4c11f8
mov dword [esp + 0x40], esi
mov eax, dword [esi + 8]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
test byte [0x59f468], 0x19
jne 0x4c1076
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
bt eax, 0x16
jb 0x4c0fce
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
test byte [0x59f468], 0x19
jne 0x4c111f
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
test eax, eax
je 0x4c11d7
test ebx, ebx
je 0x4c0fe3
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.004ed092
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
xor edx, edx
dec edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
mov edx, ecx
or edx, eax
je 0x4c105f
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov edx, esi
sub edx, ecx
mov ecx, edi
sbb ecx, eax
seto al
mov edi, ecx
sar edi, 0x1f
test al, al
cmovne edx, edi
add edi, 0x80000000
test al, al
cmove edi, ecx
lea ecx, [esp + 0x80]
mov dword [ecx], edx
mov dword [ecx + 4], edi
call fcn.004be8e0
mov ecx, edx
sar ecx, 0x1f
not ecx
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x4c0eeb
jmp 0x4c0fe3
lea edi, [esp + 0x50]
mov dword [esp], edi
call fcn.004be970
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
jmp 0x4c1014
lea esi, [esp + 0x50]
mov dword [esp], esi
call fcn.004c39a0
call fcn.004c31d0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov dword [esp + 4], 0x59f468
mov dword [esp], 0x58
call fcn.004c4950
mov edi, eax
mov dword [esp + 0x38], edx
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
mov esi, eax
cmp byte [0x59f468], 0
je 0x4c1110
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
movq xmm0, qword [esp + 0x50]
movq qword [esp + 8], xmm0
mov dword [esp + 4], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov dword [esp], 0x59f468
call fcn.004c54a0
bt esi, 0x16
jae 0x4c0f8f
jmp 0x4c0fce
lea esi, [esp + 0x80]
mov dword [esp], esi
call fcn.004c39a0
call fcn.004c31d0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_PeekMessage
mov dword [esp + 4], 0x59f468
mov dword [esp], 0x58
call fcn.004c4950
mov edi, eax
mov dword [esp + 0x38], edx
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 esi, eax
cmp byte [0x59f468], 0
je 0x4c11cf
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
movq xmm0, qword [esp + 0x80]
movq qword [esp + 8], xmm0
mov dword [esp + 4], str.MessagePumpForUI::WaitForWork_PeekMessage
mov dword [esp], 0x59f468
call fcn.004c54a0
test esi, esi
jne 0x4c0fce
mov dword [esp + 0x7c], 0
test ebx, ebx
mov esi, dword [esp + 0x40]
je 0x4c11f8
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov ebx, esi
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
mov ecx, 0xffffffff
mov esi, dword [esp + 0x44]
je 0x4c1273
xor eax, eax
dec eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004be970
mov eax, esi
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
sbb ecx, dword [esp + 0x54]
seto dl
mov edi, ecx
sar edi, 0x1f
test dl, dl
cmovne eax, edi
add edi, 0x80000000
test dl, dl
cmove edi, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
lea ecx, [esp + 0x80]
call fcn.004be8e0
mov ecx, edx
sar ecx, 0x1f
xor edi, edi
dec edi
xor ecx, edi
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x4c0eef
jmp 0x4c0fe3