Function at 0x140017fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x88]
mov qword [rcx], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax], 0
je 0x14001828a
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140018038
cmp dword [rsp + 0x34], 1
je 0x140018045
jmp 0x140018272
mov dword [rsp + 0x30], 1
jmp 0x140018272
mov edx, Ordinal_36
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
cmp qword [rax + 8], 0
je 0x140018272
cmp dword [rsp + 0x80], 0
je 0x14001808e
mov dword [rsp + 0x38], 4
jmp 0x140018096
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
cmp qword [rax], 0
je 0x140018272
cmp dword [rsp + 0x80], 0
je 0x1400180fb
mov dword [rsp + 0x3c], 2
jmp 0x140018103
mov dword [rsp + 0x3c], 4
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140018272
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x66676572
jne 0x14001823a
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jne 0x14001823a
mov rax, qword [rsp + 0x48]
add rax, 0x1000
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x6e696268
jne 0x14001823a
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x20]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 4]
cmp eax, 0x6b6e
jne 0x14001822a
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 6]
and eax, 0xc
test eax, eax
je 0x14001822a
mov dword [rsp + 0x40], 1
jmp 0x140018232
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140018272
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], 0
jne 0x14001828a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret