Function at 0x14000cb40
Capabilities:
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, r8
xor r14d, r14d
mov r15d, r14d
mov dword [rbp - 0x39], r14d
lea r9, [rbp - 0x39]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call fcn.140044666
cmp eax, 0xc0000004
jne 0x14000cbe5
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x39]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp - 0x39]
mov r8d, dword [rbp - 0x39]
mov rdx, rax
mov ecx, 0xb
call fcn.140044666
cmp eax, 0xc0000004
je 0x14000cba0
test eax, eax
js 0x14000cf3a
mov r12d, r14d
cmp dword [r15], r14d
jbe 0x14000cf3a
nop dword [rax]
mov eax, r12d
imul rcx, rax, 0x128
lea rbx, [rcx + r15]
movzx eax, word [rbx + 0x2e]
add rax, rcx
lea rdx, [r15 + 0x30]
add rdx, rax
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000cc40
lea rcx, [rbp + 0xf]
call fcn.14000bb20
nop
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rcx, qword [rbp + 0xf]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000cef3
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000cc95
lea rcx, [rbp - 0x31]
call fcn.14000bb20
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000ccd1
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000bb20
nop
mov rcx, qword [rbp - 1]
mov rdx, qword [rbp + 7]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000cd1d
lea rax, [rcx + 1]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x11]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x11]
mov word [rax + rcx], 0x5c
lea rdi, [rbp - 0x11]
jmp 0x14000cd37
mov qword [rsp + 0x20], 1
mov edx, 1
lea rcx, [rbp - 0x11]
call fcn.14000d3d0
mov rdi, rax
lea rsi, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rsi, qword [rbp - 0x31]
mov rax, qword [rbp - 0x21]
cmp rax, 0xc
jb 0x14000cdaf
lea r14, [rax + rsi]
lea r8, [r14 - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000cdac
nop
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000cf7a
inc rbx
lea r8, [r14 - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14000cd70
xor r14d, r14d
mov rbx, 0xffffffffffffffff
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000cdc4
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.14000d060
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14000ce14
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ce0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf85
call fcn.140044740
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14000cfc1
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x14000cfc1
mov edx, dword [rcx + rdi + 0x88]
test edx, edx
je 0x14000cfc1
mov r11d, dword [rdx + rdi + 0x1c]
lea rbx, [rdi + r11]
mov r9d, dword [rdx + rdi + 0x20]
add r9, rdi
mov esi, dword [rdx + rdi + 0x24]
add rsi, rdi
mov r10d, r14d
test r11d, r11d
je 0x14000ceb7
nop
mov r8d, dword [r9]
add r8, rdi
mov rax, r13
sub r8, r13
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000cea3
inc rax
test ecx, ecx
jne 0x14000ce90
test edx, edx
je 0x14000cf8c
inc r10d
add r9, 4
cmp r10d, r11d
jb 0x14000ce80
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000cef3
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ceed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cff6
call fcn.140044740
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14000cf2e
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d058
call fcn.140044740
inc r12d
cmp r12d, dword [r15]
jb 0x14000cc00
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140044720
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rbx, rsi
xor r14d, r14d
jmp 0x14000cdb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, r10d
movzx ecx, word [rsi + rax*2]
mov ebx, dword [rbx + rcx*4]
mov eax, r12d
imul rcx, rax, 0x128
add rbx, qword [rcx + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000cfc4
mov rbx, r14
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000d002
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cffd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140044740
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14000d050
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d04b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d04b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140044740
mov rax, rbx
jmp 0x14000cf4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3