Function at 0x140014fac
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 [0x1400390f8]
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.1400104d0
test eax, eax
js 0x1400151d4
mov edi, dword [0x1400502d0]
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.1400104d0
test eax, eax
js 0x1400151c7
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 0x14001e3d6
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140013a74
cmp eax, ebx
je 0x1400151c7
mov eax, dword [rsp + 0x20]
test al, 0x40
je 0x140015162
and eax, 0xfffb79fb
mov dword [rsp + 0x20], eax
bt eax, 0xa
jb 0x14001e40f
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.14000bae4
cmp dword [rbp - 0x60], r14d
je 0x14001e41d
lea rcx, [rsp + 0x20]
call fcn.140013084
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.140010438
mov ecx, edi
call fcn.140013438
mov rcx, qword [rbp + 0x408]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rbp + 0x1e8]
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.1400173b0
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.140013a74
cmp eax, ebx
jne 0x140015140
xor edx, edx
mov ecx, 0x2377
call fcn.140014d90
nop
jmp 0x140015140
and eax, 0xfffffdbb
mov dword [rsp + 0x20], eax
jmp 0x14001516c
mov rax, qword [rbp + 0x1e8]
lea rcx, [rbp - 0x20]
test rax, rax
mov dword [rbp - 0x60], ebx
cmovne rcx, rax
call fcn.140012d24
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x48], bl
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
jmp 0x140015196