Function at 0x10081f60
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 [0x10146014]
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 0x100820cb
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.10065dd0
mov dword [esp], edi
xor edi, edi
call fcn.10065dd0
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 0x100822c8
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 [0x101484a4], 0x19
jne 0x10082146
mov dword [esp], 0x40
call dword [sym.imp.USER32.dll_GetQueueStatus]
sub esp, 4
bt eax, 0x16
jb 0x1008209e
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
test byte [0x101484a4], 0x19
jne 0x100821ef
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 0x100822a7
test ebx, ebx
je 0x100820b3
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.100c2603
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 0x1008212f
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.10080e90
mov ecx, edx
sar ecx, 0x1f
not ecx
test edx, edx
cmove ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x10081fbb
jmp 0x100820b3
lea edi, [esp + 0x50]
mov dword [esp], edi
call fcn.10080f20
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
jmp 0x100820e4
lea esi, [esp + 0x50]
mov dword [esp], esi
call fcn.10084990
call fcn.100843e0
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], 0x101484a4
mov dword [esp], 0x58
call fcn.100859c0
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 [0x101484a4], 0
je 0x100821e0
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], 0x101484a4
call fcn.10086510
bt esi, 0x16
jae 0x1008205f
jmp 0x1008209e
lea esi, [esp + 0x80]
mov dword [esp], esi
call fcn.10084990
call fcn.100843e0
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], 0x101484a4
mov dword [esp], 0x58
call fcn.100859c0
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 [0x101484a4], 0
je 0x1008229f
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], 0x101484a4
call fcn.10086510
test esi, esi
jne 0x1008209e
mov dword [esp + 0x7c], 0
test ebx, ebx
mov esi, dword [esp + 0x40]
je 0x100822c8
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 0x10082343
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.10080f20
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.10080e90
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 0x10081fbf
jmp 0x100820b3