Function at 0x180011220
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 0x18001125f
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 0x18001127f
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011512
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 0x1800112b6
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011512
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1800112d4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011512
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.180011d00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180011311
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011512
jmp 0x180011321
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1800114d7
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
call fcn.180011d00
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18001135f
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011512
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x28]
call fcn.180011d00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
call fcn.180011d00
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
call fcn.1800109e0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0xa0], 0
je 0x1800113d5
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
test eax, eax
jne 0x1800113d5
jmp 0x1800114d7
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1800114d2
jmp 0x1800113f5
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 0x1800114b0
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 0x180011452
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 0x180011472
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.180011d00
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0xa8], 0
je 0x1800114ab
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 0x1800114ab
jmp 0x1800114b0
jmp 0x1800113eb
cmp qword [rsp + 0xa8], 0
je 0x1800114d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa8]
jmp 0x180011313
cmp qword [rsp + 0xa0], 0
je 0x1800114f6
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 0x180011512
add rsp, 0x88
ret