Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6f8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x11e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x718]
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xe4], 0
lea rax, [rbp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rbp + 0x338], 0
mov dword [rbp + 0x354], 0
mov qword [rbp + 0x398], 0
mov qword [rbp + 0x3b8], 0
mov dword [rbp + 0x3d4], 0
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x418], 0xffffffffffffffff
mov qword [rbp + 0x438], 0
mov dword [rbp + 0x454], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x338], rax
mov r8d, 0x104
lea rdx, [rbp + 0x110]
mov rcx, qword [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rbp + 0x110]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x418], rax
cmp qword [rbp + 0x418], 0xffffffffffffffff
jne 0x1400013f7
jmp 0x1400017a9
lea rdx, [rbp + 0x378]
mov rcx, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [rbp + 0x378]
mov dword [rbp + 0x354], eax
cmp dword [rbp + 0x354], 0
jne 0x14000142a
jmp 0x1400017a9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x3f8], rax
cmp qword [rbp + 0x3f8], 0
jne 0x14000146e
jmp 0x1400017a9
mov eax, dword [rbp + 0x354]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x438], rax
cmp qword [rbp + 0x438], 0
jne 0x1400014ac
jmp 0x1400017a9
mov rax, qword [rbp + 0x438]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1400014f4
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x78]
mov qword [rbp + 0x48], rax
jmp 0x140001528
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000151e
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x88]
mov qword [rbp + 0x48], rax
jmp 0x140001528
jmp 0x1400017a9
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x20]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x24]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0xe4], eax
jmp 0x1400015d7
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
add rax, 2
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0xe4]
mov dword [rbp + 0x6a4], eax
mov eax, dword [rbp + 0xe4]
dec eax
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0x6a4], 0
je 0x1400017a9
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x398], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x88]
movzx eax, word [rax]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax*4]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call fcn.140009ca0
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1400011d0
test eax, eax
je 0x14000168d
jmp 0x1400015b9
mov rdx, qword [rbp + 0x398]
mov rcx, qword [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x1400016b7
jmp 0x1400015b9
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x3b8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x3b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xe9
je 0x14000171e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x3b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xff
je 0x140001700
jmp 0x1400015b9
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x3b8]
movzx eax, byte [rcx + rax]
cmp eax, 0x25
je 0x14000171e
jmp 0x1400015b9
mov r8d, 2
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001740
jmp 0x1400015b9
lea r9, [rbp + 0x3d4]
mov r8d, 0x40
mov edx, 0x40
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001765
jmp 0x1400017a9
mov r8d, 0xa
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xc8]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbp + 0x3d4]
mov r8d, dword [rbp + 0x3d4]
mov edx, 0x40
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400017a4
jmp 0x1400017a9
jmp 0x1400015b9
cmp qword [rbp + 0x418], 0xffffffffffffffff
je 0x1400017c0
mov rcx, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x3f8], 0
je 0x1400017d7
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14000a0a0
lea rsp, [rbp + 0x6b8]
pop rdi
pop rbp
ret