Function at 0x14006afe0
Capabilities:
Query environment variable

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xf8
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, qword [rbp + 0x67]
mov qword [rbp - 0x59], rdi
mov rcx, qword [rbp + 0x6f]
mov rbx, qword [rbp + 0x77]
xor esi, esi
mov dword [rsp + 0x20], esi
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x28]
call fcn.14006c1f0
nop
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.14006bb90
nop
cmp byte [rsp + 0x30], sil
jne 0x14006b05f
mov ecx, esi
mov qword [rsp + 0x28], rcx
jmp 0x14006b064
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14006b07b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006b07b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x28], rsi
mov r8d, dword [rbp + 0x27]
mov eax, r8d
sub eax, 1
je 0x14006b09a
sub eax, 1
je 0x14006b09a
cmp eax, 4
jne 0x14006b206
lea rcx, [rbp + 7]
call fcn.14006bb50
test al, al
je 0x14006b0de
nop word [rax + rax]
mov rax, qword [rbp + 0x17]
dec rax
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
mov qword [rbp + 0x17], rax
mov word [rcx + rax*2], si
lea rcx, [rbp + 7]
call fcn.14006bb50
test al, al
jne 0x14006b0b0
mov r8d, dword [rbp + 0x27]
cmp r8d, 2
jne 0x14006b19c
lea rcx, [rbp + 7]
mov r10, qword [rbp + 7]
mov rbx, qword [rbp + 0x1f]
cmp rbx, 7
cmova rcx, r10
lea r9d, [r8 + 0x23]
xor r8d, r8d
mov rdx, qword [rbp + 0x17]
call fcn.140028370
cmp rax, 0xffffffffffffffff
je 0x14006b19c
lea rcx, [rbp + 7]
cmp rbx, 7
cmova rcx, r10
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov dword [rsp + 0x20], 2
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, rdi
call fcn.1400197d0
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x14006b1df
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14006b176
mov rdx, qword [rdi]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14006b230
cmp eax, ebx
jne 0x14006b251
jmp 0x14006b1bb
movups xmm0, xmmword [rbp + 7]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], si
lea rcx, [rbp + 7]
call fcn.140008480
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0xf8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x79]
call fcn.1400275a0
lea rdx, [0x140114598]
lea rcx, [rbp - 0x79]
call fcn.140084768
nop
mov ecx, r8d
call fcn.14002e680
mov r8d, eax
mov edx, 1
lea rcx, [rbp - 0x51]
call fcn.14006c0a0
lea rdx, [0x140114c88]
lea rcx, [rbp - 0x51]
call fcn.140084768
nop
lea rdx, str.String_environment_expansion_failed
lea rcx, [rbp - 0x21]
call fcn.14006c0f0
lea rdx, [0x140114d60]
lea rcx, [rbp - 0x21]
call fcn.140084768
int3
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rbp - 0x51]
call fcn.14006c0f0
lea rdx, [0x140114d60]
lea rcx, [rbp - 0x51]
call fcn.140084768
int3