Function at 0x14000a6e4
Capabilities:
Allocate or change rwx memory
Query environment variable
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x98], 0
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
lea rcx, str._SystemRoot__system32NTDLL.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
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, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14000a790
jmp 0x14000a9d3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
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], 0
jne 0x14000a7ce
jmp 0x14000a9d3
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000a804
jmp 0x14000a9d3
mov rdx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x48]
call fcn.14000a4c8
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x14000a833
jmp 0x14000a9d3
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
add rax, 0x88
mov qword [rsp + 0xb0], rax
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000a898
jmp 0x14000a9d3
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call fcn.14000a3f8
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x14000a8c3
jmp 0x14000a9d3
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x40], 0
jmp 0x14000a8f2
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + rax], 0
je 0x14000a9d3
mov eax, dword [rsp + 0x40]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x80]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x68]
call fcn.14000a3f8
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x70], rax
jne 0x14000a9ce
mov eax, dword [rsp + 0x40]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x80]
mov edx, dword [rcx + rax + 4]
mov rcx, qword [rsp + 0x68]
call fcn.14000a3f8
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14000a9cc
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.1401db250
jmp 0x14000a9d3
jmp 0x14000a8e8
cmp qword [rsp + 0x48], 0
je 0x14000a9e6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x58], 0
je 0x14000a9f9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x60], 0
je 0x14000aa0c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
add rsp, 0x1d8
ret