Function at 0x1401ca3c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x90], 0
jne 0x1401ca3ff
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401ca41f
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1401ca6b2
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
je 0x1401ca456
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1401ca6b2
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1401ca474
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1401ca6b2
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
call fcn.1401c9d00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1401ca4b1
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1401ca6b2
jmp 0x1401ca4c1
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1401ca677
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
call fcn.1401c9d00
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401ca4ff
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1401ca6b2
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x28]
call fcn.1401c9d00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
call fcn.1401c9d00
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
call fcn.1401cac40
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0xa0], 0
je 0x1401ca575
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
test eax, eax
jne 0x1401ca575
jmp 0x1401ca677
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1401ca672
jmp 0x1401ca595
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + rax*8], 0
je 0x1401ca650
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movabs rdx, 0x8000000000000000
mov rax, qword [rcx + rax*8]
and rax, rdx
test rax, rax
je 0x1401ca5f2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax*8]
and rax, 0xffff
mov dword [rsp + 0x38], eax
jmp 0x1401ca612
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*8]
add eax, 2
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1401c9d00
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0xa8], 0
je 0x1401ca64b
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*8]
mov r9, rax
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa8]
test eax, eax
jne 0x1401ca64b
jmp 0x1401ca650
jmp 0x1401ca58b
cmp qword [rsp + 0xa8], 0
je 0x1401ca672
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa8]
jmp 0x1401ca4b3
cmp qword [rsp + 0xa0], 0
je 0x1401ca696
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov eax, 1
jmp 0x1401ca6b2
add rsp, 0x88
ret