Function at 0x622980
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 [0x7aa024]
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
je 0x622a1c
xor edx, edx
dec edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
mov edx, ecx
or edx, eax
je 0x622b34
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov edx, esi
sub edx, ecx
sbb edi, eax
lea ecx, [esp + 0x80]
mov dword [ecx], edx
mov dword [ecx + 4], edi
call fcn.005ef520
mov ecx, edx
sar ecx, 0x1f
not ecx
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x622a24
jmp 0x622b1c
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.005d1080
mov dword [esp], edi
xor edi, edi
call fcn.005d1080
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 0x622cec
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 [0x7ad370], 0x19
jne 0x622b4e
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
bt eax, 0x16
lea esi, [esp + 0x50]
jb 0x622b07
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
test byte [0x7ad370], 0x19
jne 0x622bfe
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0x14
test eax, eax
je 0x622ccb
test ebx, ebx
je 0x622b1c
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.0064d372
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
lea edi, [esp + 0x50]
mov dword [esp], edi
call fcn.005ef5b0
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
jmp 0x6229ec
call fcn.005f24d0
mov edi, eax
xor eax, eax
dec eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
lea esi, [esp + 0x50]
mov dword [esp], esi
call fcn.005f3000
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov dword [esp + 4], 0x7ad370
mov dword [esp], 0x58
call fcn.005f4220
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 [0x7ad370], 0
je 0x622bf5
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], 0x7ad370
call fcn.005f4c40
bt esi, 0x16
jmp 0x622ac6
call fcn.005f24d0
mov dword [esp + 0x38], eax
xor eax, eax
dec eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
lea edi, [esp + 0x80]
mov dword [esp], edi
call fcn.005f3000
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.MessagePumpForUI::WaitForWork_PeekMessage
mov dword [esp + 4], 0x7ad370
mov dword [esp], 0x58
call fcn.005f4220
mov edi, eax
mov dword [esp + 0x38], edx
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
mov dword [esp], esi
call dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0x14
mov esi, eax
cmp byte [0x7ad370], 0
je 0x622cc3
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], 0x7ad370
call fcn.005f4c40
test esi, esi
jne 0x622b07
mov dword [esp + 0x7c], 0
test ebx, ebx
mov esi, dword [esp + 0x40]
je 0x622cec
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 edi, 0xffffffff
mov ecx, edi
mov esi, dword [esp + 0x44]
je 0x622d4b
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.005ef5b0
mov eax, esi
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.005ef520
mov ecx, edx
sar ecx, 0x1f
xor ecx, edi
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x622a28
jmp 0x622b1c