Function at 0x14016d000
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 0x14016d039
mov eax, 0xffffffff
jmp 0x14016d388
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
add rax, 0x4d0
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 0x14016d084
mov eax, 0xffffffff
jmp 0x14016d388
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov eax, dword [rax + 0x4d0]
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 + 0x630]
mov eax, dword [rdx + 0x4d0]
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.14036b740
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14016d3a0
cmp dword [rsp + 0x30], eax
je 0x14016d383
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call fcn.14016d3f0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x14016d127
jmp 0x14016d383
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xf8]
mov eax, dword [rax + 0x5fc]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x24], eax
jge 0x14016d15d
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0xa8], eax
jmp 0x14016d168
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.14016acf0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x2c], 0
je 0x14016d1f1
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 + reloc.mfc90u.dll_CFile::Close]
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 + 0x608]
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 0x14016d357
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 0x14016d24e
cmp qword [rsp + 0xf0], 0
je 0x14016d249
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
jmp 0x14016d351
cmp dword [rsp + 0xe0], 0
je 0x14016d262
mov eax, 0xffffffff
jmp 0x14016d388
cmp qword [rsp + 0xf0], 0
je 0x14016d351
mov rsi, qword [rsp + 0xd0]
mov rsi, qword [rsi + 0xf8]
lea rdi, [rsp + 0x98]
add rsi, 0x4d0
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 + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
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 0x14016d343
mov rax, qword [rsp + 0xf0]
mov dword [rax], 2
jmp 0x14016d351
mov rax, qword [rsp + 0xf0]
mov dword [rax], 0
mov eax, dword [rsp + 0x38]
jmp 0x14016d388
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 0x14016d0ee
mov eax, 0xffffffff
add rsp, 0xb8
pop rdi
pop rsi
ret