Function at 0x140001860
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 [0x14003b0f8]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor r14d, r14d
xor eax, eax
mov r15d, 0x104
mov qword [rsp + 0x20], r14
mov rsi, rcx
mov qword [rsp + 0x28], r14
mov r8d, r15d
mov dword [rsp + 0x30], r14d
lea ebx, [rax + 1]
mov qword [rsp + 0x38], rax
xor edx, edx
mov byte [rbp + 0x1f0], bl
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x40], r14d
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
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
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
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
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.14000c130
test eax, eax
js 0x140001a8e
mov edi, dword [0x140043ad0]
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]
mov edx, eax
lea rcx, [rbp + 0x200]
call fcn.14000c130
test eax, eax
js 0x140001a7b
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]
test eax, eax
jne 0x14001f846
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140001fd4
cmp eax, ebx
je 0x140001a7b
mov eax, dword [rsp + 0x20]
test al, 0x40
je 0x140001a16
and eax, 0xfffb79fb
mov dword [rsp + 0x20], eax
bt eax, 0xa
jb 0x14001f87f
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.14001321c
cmp dword [rbp - 0x60], r14d
je 0x14001f88d
lea rcx, [rsp + 0x20]
call fcn.140001ae4
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.140014c9c
mov ecx, edi
call fcn.140011f60
mov rcx, qword [rbp + 0x408]
mov qword [rbp + 0x408], r14
test rcx, rcx
jne 0x140001ad5
mov rcx, qword [rbp + 0x1e8]
mov qword [rbp + 0x1e8], r14
test rcx, rcx
je 0x140001aa7
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400182e0
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
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x140001a8e
mov rax, qword [rbp + 0x408]
lea rcx, [rbp + 0x200]
test rax, rax
lea rdx, [rsp + 0x20]
cmovne rcx, rax
call fcn.140001fd4
cmp eax, ebx
jne 0x1400019f4
xor edx, edx
mov ecx, 0x2377
call fcn.140015118
nop
jmp 0x1400019f4
and eax, 0xfffffdbb
mov dword [rsp + 0x20], eax
jmp 0x140001a20
mov rax, qword [rbp + 0x1e8]
lea rcx, [rbp - 0x20]
test rax, rax
mov dword [rbp - 0x60], ebx
cmovne rcx, rax
call fcn.1400117c0
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x48], bl
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
jmp 0x140001a4a