Function at 0x18000af50
Capabilities:
Get file size
Parse pe header
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov dword [rsp + 0xd0], 0
lea rcx, [rsp + 0x40]
call fcn.180001700
nop
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x18000afe5
cmp qword [rsp + 0x60], 0
jne 0x18000afea
jmp 0x18000b36e
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x8c]
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x18000b041
cmp qword [rsp + 0x58], 0
jne 0x18000b046
jmp 0x18000b36e
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18000b07b
jmp 0x18000b36e
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000b09f
jmp 0x18000b36e
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0x4550
je 0x18000b0d0
jmp 0x18000b36e
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 6]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x18000b130
mov rax, qword [rsp + 0x98]
add rax, 0xf8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x98]
add rax, 0xa8
mov qword [rsp + 0x70], rax
jmp 0x18000b169
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x18000b169
mov rax, qword [rsp + 0x98]
add rax, 0x108
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x98]
add rax, 0xb8
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x68], 0
je 0x18000b18e
cmp qword [rsp + 0x70], 0
je 0x18000b18e
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
je 0x18000b18e
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0
jne 0x18000b193
jmp 0x18000b36e
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xa0], 0
jmp 0x18000b1ba
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0xa0], eax
jae 0x18000b364
mov ecx, dword [rsp + 0xa0]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rcx + 0xc], eax
ja 0x18000b35f
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x78]
add ecx, dword [rax + 8]
mov rax, qword [rsp + 0x70]
cmp dword [rax], ecx
jae 0x18000b35f
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0xc]
mov eax, dword [rdx]
sub eax, ecx
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x14]
add eax, dword [rsp + 0xb0]
mov dword [rsp + 0xb4], eax
mov ecx, dword [rsp + 0xb4]
mov rax, qword [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb8], 0
jmp 0x18000b28f
mov eax, dword [rsp + 0xb8]
add eax, 1
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0xa8]
add rax, 0x1c
mov qword [rsp + 0xa8], rax
movsxd r8, dword [rsp + 0xb8]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
xor edx, edx
mov ecx, 0x1c
div rcx
cmp r8, rax
jae 0x18000b35d
mov rax, qword [rsp + 0xa8]
cmp dword [rax + 0xc], 2
jne 0x18000b358
mov rax, qword [rsp + 0xa8]
cmp dword [rax + 0x18], 0
je 0x18000b358
mov rax, qword [rsp + 0xa8]
cmp dword [rax + 0x10], 0
je 0x18000b358
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rax + 0x18]
mov rax, qword [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xa8]
mov r8d, dword [rax + 0x10]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc8]
call fcn.18000adf0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.18000b490
nop
lea rcx, [rsp + 0xc8]
call fcn.1800017c0
jmp 0x18000b26a
jmp 0x18000b364
jmp 0x18000b1a9
xor eax, eax
test eax, eax
jne 0x18000af9e
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x50], 0
je 0x18000b389
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x58], 0
je 0x18000b3a4
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x18000b3a4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x60], 0
je 0x18000b3bf
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x18000b3bf
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.18000b400
mov eax, dword [rsp + 0xd0]
or eax, 1
mov dword [rsp + 0xd0], eax
lea rcx, [rsp + 0x40]
call fcn.1800017c0
mov rax, qword [rsp + 0x100]
add rsp, 0xf8
ret