Function at 0x4dd9f0
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 [0x5f3024]
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 0x4ddb5b
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.004c5b20
mov dword [esp], edi
xor edi, edi
call fcn.004c5b20
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 0x4ddd58
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 [0x5f5320], 0x19
jne 0x4ddbd6
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
bt eax, 0x16
jb 0x4ddb2e
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
test byte [0x5f5320], 0x19
jne 0x4ddc7f
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 0x4ddd37
test ebx, ebx
je 0x4ddb43
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.0050db32
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 0x4ddbbf
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.004dac70
mov ecx, edx
sar ecx, 0x1f
not ecx
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x4dda4b
jmp 0x4ddb43
lea edi, [esp + 0x50]
mov dword [esp], edi
call fcn.004dad00
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
jmp 0x4ddb74
lea esi, [esp + 0x50]
mov dword [esp], esi
call fcn.004e02a0
call fcn.004dfa60
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], 0x5f5320
mov dword [esp], 0x58
call fcn.004e1250
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 [0x5f5320], 0
je 0x4ddc70
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], 0x5f5320
call fcn.004e1da0
bt esi, 0x16
jae 0x4ddaef
jmp 0x4ddb2e
lea esi, [esp + 0x80]
mov dword [esp], esi
call fcn.004e02a0
call fcn.004dfa60
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], 0x5f5320
mov dword [esp], 0x58
call fcn.004e1250
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 [0x5f5320], 0
je 0x4ddd2f
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], 0x5f5320
call fcn.004e1da0
test esi, esi
jne 0x4ddb2e
mov dword [esp + 0x7c], 0
test ebx, ebx
mov esi, dword [esp + 0x40]
je 0x4ddd58
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 0x4dddd3
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.004dad00
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.004dac70
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 0x4dda4f
jmp 0x4ddb43