Function at 0x140001f90
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x530
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor r14d, r14d
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x20], r14
mov r15d, 0x104
mov qword [rsp + 0x28], r14
mov rsi, rcx
mov dword [rsp + 0x30], r14d
lea ebx, [rax + 1]
mov qword [rsp + 0x38], rax
mov r8d, r15d
mov byte [rbp + 0x1f0], bl
xor edx, edx
mov dword [rsp + 0x40], r14d
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], r14d
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x60], r14d
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x48], r14b
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x1e8], r14
mov qword [rbp + 0x1f8], r15
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x1f0]
lea rcx, [rbp - 0x20]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, r15
call fcn.14000ca40
test eax, eax
js 0x1400021c9
mov edi, dword [0x140045b50]
lea rcx, [rbp + 0x200]
mov r8d, r15d
mov qword [rsp + 0x24], 6
xor edx, edx
mov dword [rsp + 0x20], 0x8000
mov dword [rbp - 0x60], r14d
mov dword [rbp - 0x38], r14d
mov qword [rbp + 0x408], r14
mov byte [rbp + 0x410], bl
mov qword [rbp + 0x418], r15
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rcx, str.DIRCMD
xor edx, edx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov edx, eax
lea rcx, [rbp + 0x200]
call fcn.14000ca40
test eax, eax
js 0x1400021b2
mov rax, qword [rbp + 0x408]
lea rdx, [rbp + 0x200]
mov r8d, dword [rbp + 0x418]
lea rcx, str.DIRCMD
test rax, rax
cmovne rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
jne 0x140020640
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002730
cmp eax, ebx
je 0x1400021b2
mov eax, dword [rsp + 0x20]
test al, 0x40
je 0x14000214d
and eax, 0xfffb79fb
mov dword [rsp + 0x20], eax
bt eax, 0xa
jb 0x140020679
mov rax, qword [rbp + 0x1e8]
lea rcx, [rbp - 0x20]
mov edx, dword [rbp + 0x1f8]
test rax, rax
cmovne rcx, rax
xor r8d, r8d
call fcn.14001417c
cmp dword [rbp - 0x60], r14d
je 0x140020687
lea rcx, [rsp + 0x20]
call fcn.140002220
mov r8, qword [rbp + 0x1f8]
lea rdx, [rbp - 0x20]
mov ebx, eax
mov rax, qword [rbp + 0x1e8]
test rax, rax
cmovne rdx, rax
call fcn.140015e50
mov ecx, edi
call fcn.140012d70
mov rcx, qword [rbp + 0x408]
mov qword [rbp + 0x408], r14
test rcx, rcx
jne 0x1400206b5
mov rcx, qword [rbp + 0x1e8]
mov qword [rbp + 0x1e8], r14
test rcx, rcx
je 0x1400021e8
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140018f80
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rbp + 0x408]
lea rcx, [rbp + 0x200]
test rax, rax
lea rdx, [rsp + 0x20]
cmovne rcx, rax
call fcn.140002730
cmp eax, ebx
jne 0x14000212b
xor edx, edx
mov ecx, 0x2377
call fcn.140003278
nop
jmp 0x14000212b
and eax, 0xfffffdbb
mov dword [rsp + 0x20], eax
jmp 0x140002157
mov rax, qword [rbp + 0x1e8]
lea rcx, [rbp - 0x20]
test rax, rax
mov dword [rbp - 0x60], ebx
cmovne rcx, rax
call fcn.140012534
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x48], bl
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
jmp 0x140002181
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
jmp 0x1400021c9