Function at 0x10169f40
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 [0x102b0014]
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 eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
jne 0x10169f9f
mov dword [esp + 0x78], 0xffffffff
jmp 0x1016a00e
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov edx, ecx
or edx, eax
je 0x10169fbf
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
jmp 0x10169fd4
lea eax, [esp + 0x50]
mov dword [esp], eax
call dword [0x102b202c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
sub edx, ecx
mov ecx, dword [esp + 0x3c]
sbb ecx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x80]
call fcn.10162590
test edx, edx
jne 0x1016a2fd
mov dword [esp + 0x78], eax
test eax, eax
je 0x1016a2e7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
jmp 0x1016a02c
mov dword [esp + 0x78], eax
test eax, eax
je 0x1016a2e7
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.1002a710
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.1002a710
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 0x1016a1d0
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 [0x102b288c]
test bl, 0x19
jne 0x1016a23a
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 0x1016a106
cmp byte [edi], 0
je 0x1016a106
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.10177930
test esi, 0x400000
jne 0x1016a2da
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx ebx, byte [0x102b288c]
test bl, 0x19
jne 0x1016a28a
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 0x1016a1a7
cmp byte [esi], 0
je 0x1016a1a7
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.10177930
test edi, edi
mov ebx, dword [esp + 0x4c]
jne 0x1016a2da
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
je 0x1016a1d0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, 0xffffffff
mov ecx, ebx
or ecx, edi
je 0x1016a020
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x50]
mov dword [esp], eax
call dword [0x102b202c]
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.10162590
test edx, edx
je 0x1016a020
sar edx, 0x1f
not edx
mov eax, edx
jmp 0x1016a020
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], 0x102b288c
mov dword [esp], 0x58
mov dword [esp + 0x34], str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov edi, 0x102b288c
call fcn.10032a48
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x1016a0be
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], 0x102b288c
mov dword [esp], 0x58
mov esi, 0x102b288c
mov dword [esp + 0x34], str.MessagePumpForUI::WaitForWork_PeekMessage
call fcn.10032a48
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x1016a14c
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1016a2e7
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.10205d16
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sar edx, 0x1f
not edx
mov eax, edx
jmp 0x1016a002