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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1401bc300]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov byte [rbp - 0x59], r9b
mov qword [rbp - 0x21], r8
mov rdi, rdx
mov qword [rbp - 0x29], rdx
xor esi, esi
mov r12d, esi
mov dword [rbp - 0x19], esi
lea r9, [rbp - 0x19]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 0xb]
call fcn.14008aaae
cmp eax, 0xc0000004
jne 0x140016fd6
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.kernel32.dll_VirtualFree]
mov edx, dword [rbp - 0x19]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r12, rax
lea r9, [rbp - 0x19]
mov r8d, dword [rbp - 0x19]
mov rdx, rax
mov ecx, 0xb
call fcn.14008aaae
cmp eax, 0xc0000004
je 0x140016f91
test eax, eax
js 0x140017350
mov r13d, esi
cmp dword [r12], esi
jbe 0x140017350
movzx ebx, byte [rbp - 0x59]
nop
mov eax, r13d
imul rcx, rax, 0x128
lea r15, [rcx + r12]
mov qword [rbp - 0x31], r15
movzx edx, word [r15 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r12
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], rsi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140017030
lea rcx, [rbp + 0xf]
call fcn.14000b450
nop
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
mov rdx, rdi
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
jne 0x140017308
lea rdx, [r15 + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140017080
lea rcx, [rbp - 0x11]
call fcn.14000b450
nop
lea rcx, [0x1400f9390]
call qword [sym.imp.ucrtbase.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400170c0
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14000b450
nop
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x39]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14001710c
lea rax, [rcx + 1]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x51]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x51]
mov word [rax + rcx], 0x5c
lea r14, [rbp - 0x51]
jmp 0x140017131
mov qword [rsp + 0x20], 1
lea r9, [0x1400f939c]
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 0x51]
call fcn.14000ba30
mov r14, rax
lea rsi, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rsi, qword [rbp - 0x11]
mov rax, qword [rbp - 1]
cmp rax, 0xc
jb 0x1400171b0
lea r15, [rax + rsi]
lea r8, [r15 - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x1400171ac
nop dword [rax]
mov r8d, 0xc
lea rdx, [0x1400f93a0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140017390
inc rdi
lea r8, [r15 - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x140017170
mov r15, qword [rbp - 0x31]
mov rdi, 0xffffffffffffffff
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0xf
jbe 0x1400171c5
mov r14, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8d, 0xc
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.14000aa20
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x14001721b
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001739c
call fcn.1400f2e38
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rcx, qword [rbp - 0x11]
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 0x1400173d0
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x1400173d0
mov edx, dword [rcx + rdi + 0x88]
test edx, edx
je 0x1400173d0
mov r11d, dword [rdx + rdi + 0x1c]
lea rsi, [rdi + r11]
mov r9d, dword [rdx + rdi + 0x20]
add r9, rdi
mov r14d, dword [rdx + rdi + 0x24]
add r14, rdi
xor r10d, r10d
test r11d, r11d
je 0x1400172c7
nop word [rax + rax]
mov r8d, dword [r9]
add r8, rdi
mov rax, qword [rbp - 0x21]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400172b3
inc rax
test ecx, ecx
jne 0x1400172a0
test edx, edx
je 0x1400173a3
inc r10d
add r9, 4
cmp r10d, r11d
jb 0x140017290
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140017302
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400172fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017404
call fcn.1400f2e38
xor esi, esi
mov rdi, qword [rbp - 0x29]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140017343
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001733e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001746a
call fcn.1400f2e38
inc r13d
cmp r13d, dword [r12]
jb 0x140016ff0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400f3250
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rdi, rsi
mov r15, qword [rbp - 0x31]
jmp 0x1400171b7
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
movzx ecx, word [r14 + r10*2]
mov ebx, dword [rsi + rcx*4]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
cmp byte [rbp - 0x59], dl
jne 0x1400173bf
add rbx, qword [r15 + 0x18]
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x1400173d2
xor ebx, ebx
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140017410
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001740b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001740b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2e38
mov qword [rbp - 1], 0
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140017462
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001745d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001745d
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2e38
mov rax, rbx
jmp 0x140017363
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3