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

Disassembly:
jmp 0x140022f80
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 0x140022fbf
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 0x140022fdf
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023272
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 0x140023016
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023272
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140023034
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023272
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.140022740
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140023071
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023272
jmp 0x140023081
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140023237
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
call fcn.140022740
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400230bf
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023272
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x28]
call fcn.140022740
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
call fcn.140022740
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
call fcn.140001feb
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0xa0], 0
je 0x140023135
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
test eax, eax
jne 0x140023135
jmp 0x140023237
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x140023232
jmp 0x140023155
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 0x140023210
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 0x1400231b2
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 0x1400231d2
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.140022740
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0xa8], 0
je 0x14002320b
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 0x14002320b
jmp 0x140023210
jmp 0x14002314b
cmp qword [rsp + 0xa8], 0
je 0x140023232
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa8]
jmp 0x140023073
cmp qword [rsp + 0xa0], 0
je 0x140023256
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 0x140023272
add rsp, 0x88
ret