Function at 0x140154460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0xf8], 0
jne 0x140154499
mov eax, 0xffffffff
jmp 0x1401547e8
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
add rax, 0x4d8
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1401544e4
mov eax, 0xffffffff
jmp 0x1401547e8
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov eax, dword [rax + 0x4d8]
mov dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0xd0]
mov rdx, qword [rdx + 0xf8]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov ecx, dword [rax + 0x648]
mov eax, dword [rdx + 0x4d8]
sub eax, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0xd0]
call fcn.1401c4550
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xd0]
call fcn.140154800
cmp dword [rsp + 0x30], eax
je 0x1401547e3
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call fcn.140154850
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x140154587
jmp 0x1401547e3
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov eax, dword [rax + 0x614]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x24], eax
jge 0x1401545bd
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0xa8], eax
jmp 0x1401545c8
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call fcn.140152140
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x2c], 0
je 0x140154651
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0xf8]
mov rax, qword [rax]
call qword [rax + 0x778]
mov edi, eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0xf8]
mov rax, qword [rax]
call qword [rax + 0x770]
add eax, dword [rsp + 0x3c]
add eax, edi
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x34]
add eax, ecx
add eax, dword [rsp + 0xe8]
cmp dword [rsp + 0xd8], eax
jg 0x1401547b7
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x34]
add eax, ecx
mov ecx, dword [rsp + 0xd8]
sub ecx, eax
call sub.MSVCR90.dll_labs
cmp eax, dword [rsp + 0xe8]
jg 0x1401546ae
cmp qword [rsp + 0xf0], 0
je 0x1401546a9
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
jmp 0x1401547b1
cmp dword [rsp + 0xe0], 0
je 0x1401546c2
mov eax, 0xffffffff
jmp 0x1401547e8
cmp qword [rsp + 0xf0], 0
je 0x1401547b1
mov rsi, qword [rsp + 0xd0]
mov rsi, qword [rsi + 0xf8]
lea rdi, [rsp + 0x98]
add rsi, 0x4d8
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x40]
lea rsi, [rsp + 0x98]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x34]
add eax, ecx
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x70]
lea rsi, [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0xf8]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov rax, qword [rax]
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
call qword [rax + 0x6d8]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1401547a3
mov rax, qword [rsp + 0xf0]
mov dword [rax], 2
jmp 0x1401547b1
mov rax, qword [rsp + 0xf0]
mov dword [rax], 0
mov eax, dword [rsp + 0x38]
jmp 0x1401547e8
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x28]
add eax, ecx
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x14015454e
mov eax, 0xffffffff
add rsp, 0xb8
pop rdi
pop rsi
ret