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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov r13, rdx
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x31], r8
xor esi, esi
mov r12d, esi
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x41], esi
lea r9, [rbp - 0x41]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 0xb]
call fcn.140008af6
cmp eax, 0xc0000004
jne 0x140004c49
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x41]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
lea r9, [rbp - 0x41]
mov r8d, dword [rbp - 0x41]
mov rdx, rax
mov ecx, 0xb
call fcn.140008af6
cmp eax, 0xc0000004
je 0x140004c00
mov qword [rbp - 0x71], r12
test eax, eax
jns 0x140004d22
mov r8d, 0x8000
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x140004c9e
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r13]
jb 0x140004c99
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005543
mov rcx, r8
call fcn.140008bec
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], 0xf
mov byte [r13], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140004ce9
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140004ce4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000554a
mov rcx, r8
call fcn.140008bec
mov byte [r15], 0
mov qword [r15 + 0x18], 0xf
mov qword [r15 + 0x10], rsi
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140008b90
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, esi
mov dword [rbp - 0x79], eax
cmp dword [r12], esi
jbe 0x140004c51
mov r9d, 0x16
movabs r8, 0x8000000000000000
movabs rdx, 0x7fffffffffffffff
imul rcx, rax, 0x128
lea rdi, [rcx + r12]
mov qword [rbp - 0x69], rdi
movzx r14d, word [rdi + 0x2e]
add r14, rcx
add r14, r12
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx + 0x30], 0
jne 0x140004d80
cmp rbx, rdx
ja 0x140005551
mov qword [rbp + 0xf], 0xf
cmp rbx, 0xf
ja 0x140004dc0
mov qword [rbp + 7], rbx
mov r8, rbx
lea rdx, [r14 + 0x30]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 9], 0
jmp 0x140004e48
mov rdi, rbx
or rdi, 0xf
cmp rdi, rdx
jbe 0x140004dd5
mov rdi, rdx
lea rax, [r8 + 0x27]
jmp 0x140004df7
cmp rdi, 0x16
cmovb rdi, r9
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140004e16
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005557
mov rcx, rax
call fcn.140008bb0
test rax, rax
je 0x14000553c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140004e23
test rcx, rcx
je 0x140004e23
call fcn.140008bb0
mov rsi, rax
mov qword [rbp - 9], rsi
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rdi
mov r8, rbx
lea rdx, [r14 + 0x30]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rdi, qword [rbp - 0x69]
xor esi, esi
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140004e56
mov rdx, qword [r13]
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400051a2
lea r14, [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140004e90
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140005563
mov qword [rbp - 0x11], 0xf
cmp rbx, 0xf
ja 0x140004ed8
mov qword [rbp - 0x19], rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x29], 0
jmp 0x140004f68
mov rdi, rbx
or rdi, 0xf
cmp rdi, rax
jbe 0x140004ef7
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140004f1e
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140004f3d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000555d
mov rcx, rax
call fcn.140008bb0
test rax, rax
je 0x1400054cc
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140004f4a
test rcx, rcx
je 0x140004f4a
call fcn.140008bb0
mov rsi, rax
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140005cb0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140004fb4
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140004fac
mov rax, qword [rdi]
mov word [rax + rcx], 0x5c
jmp 0x140004fd4
mov qword [rsp + 0x20], 1
lea r9, [0x14000b81c]
mov edx, 1
mov rcx, rdi
call fcn.140006180
mov rdi, rax
lea rsi, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rsi, qword [rbp - 0x29]
mov rax, qword [rbp - 0x19]
cmp rax, 0xc
jb 0x14000504c
lea r14, [rsi + rax]
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 0x14000504c
nop dword [rax]
mov r8d, 0xc
lea rdx, str.SystemRoot_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400051f6
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 0x140005010
mov rbx, 0xffffffffffffffff
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140005061
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140005dd0
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x1400050b1
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051fe
call fcn.140008bec
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rcx, qword [rbp - 0x29]
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 0x14000549a
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x140005368
mov edx, dword [rcx + rdi + 0x88]
test edx, edx
je 0x140005368
mov r11d, dword [rdx + rdi + 0x1c]
lea r14, [rdi + r11]
mov esi, dword [rdx + rdi + 0x20]
add rsi, rdi
mov r12d, dword [rdx + rdi + 0x24]
add r12, rdi
xor r9d, r9d
test r11d, r11d
je 0x140005163
mov rbx, qword [r15 + 0x18]
mov rax, r15
cmp rbx, 0xf
jbe 0x14000512c
mov rax, qword [r15]
mov r8d, dword [rsi + r9*4]
add r8, rdi
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140005153
inc rax
test ecx, ecx
jne 0x140005140
test edx, edx
je 0x140005205
inc r9d
cmp r9d, r11d
jb 0x140005120
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000519e
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005199
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054cc
call fcn.140008bec
mov r12, qword [rbp - 0x71]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x1400051dd
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000553c
call fcn.140008bec
mov eax, dword [rbp - 0x79]
inc eax
mov dword [rbp - 0x79], eax
xor esi, esi
cmp eax, dword [r12]
jae 0x140004c51
jmp 0x140004d31
sub rbx, rsi
jmp 0x140005053
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movzx eax, word [r12 + r9*2]
mov ebx, dword [r14 + rax*4]
mov rax, qword [rbp - 0x69]
add rbx, qword [rax + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000526d
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005268
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054cc
call fcn.140008bec
xor edi, edi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], dil
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x1400052ba
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005527
call fcn.140008bec
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x140005305
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x140005300
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000552e
mov rcx, r8
call fcn.140008bec
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 0xf
mov byte [r13], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140005350
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14000534b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140005535
mov rcx, r8
call fcn.140008bec
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rax, rbx
jmp 0x140004cfb
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x1400053a3
inc rdx
mov rcx, qword [rbp - 0x29]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000539e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054cc
call fcn.140008bec
xor ebx, ebx
mov byte [rbp - 0x29], bl
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rbx
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x1400053ef
inc rdx
mov rcx, qword [rbp - 9]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400053ea
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005527
call fcn.140008bec
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0xf
jbe 0x14000543a
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x140005435
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000552e
mov rcx, r8
call fcn.140008bec
mov byte [r13], 0
mov qword [r13 + 0x18], 0xf
mov qword [r13 + 0x10], rbx
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140005485
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140005480
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005535
mov rcx, r8
call fcn.140008bec
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
jmp 0x140004cf9
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x1400054d8
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bec
xor ebx, ebx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], bl
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x1400053ef
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400038e0
int3
call fcn.140001260
nop
call fcn.140001260
int3
call fcn.1400038e0
int3