Function at 0x1400a3730
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 [0x1401761c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, qword [rbp + 0x67]
mov qword [rbp - 0x59], rbx
mov rcx, qword [rbp + 0x6f]
mov rdi, qword [rbp + 0x77]
xor esi, esi
mov dword [rsp + 0x20], esi
lea r8d, [rsi + 1]
lea rdx, [rbp - 0x69]
call fcn.1400a52d0
nop
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400a4480
nop
cmp byte [rbp - 0x61], sil
jne 0x1400a37ae
mov ecx, esi
mov qword [rbp - 0x69], rcx
jmp 0x1400a37b2
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1400a37c9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400a37c9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x69], rsi
mov r8d, dword [rbp + 0x27]
mov eax, r8d
sub eax, 1
je 0x1400a37e7
sub eax, 1
je 0x1400a37e7
cmp eax, 4
jne 0x1400a3959
lea rcx, [rbp + 7]
call fcn.1400a4440
test al, al
je 0x1400a382e
nop dword [rax]
nop dword [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.1400a4440
test al, al
jne 0x1400a3800
mov r8d, dword [rbp + 0x27]
cmp r8d, 2
jne 0x1400a38ec
lea rcx, [rbp + 7]
mov r10, qword [rbp + 7]
mov rdi, qword [rbp + 0x1f]
cmp rdi, 7
cmova rcx, r10
lea r9d, [r8 + 0x23]
xor r8d, r8d
mov rdx, qword [rbp + 0x17]
call fcn.14000f8e0
cmp rax, 0xffffffffffffffff
je 0x1400a38ec
lea rcx, [rbp + 7]
cmp rdi, 7
cmova rcx, r10
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov dword [rsp + 0x20], 2
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, rbx
call fcn.14000d3b0
mov r8, qword [rbx + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x1400a392f
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400a38c6
mov rdx, qword [rbx]
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 0x1400a3990
cmp eax, edi
jne 0x1400a39b1
jmp 0x1400a390b
movups xmm0, xmmword [rbp + 7]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], si
lea rcx, [rbp + 7]
call fcn.14000c080
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0xf8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rbp - 0x79], rax
lea rcx, [rsp + 0x30]
call fcn.14000e690
lea rdx, [0x140172048]
lea rcx, [rsp + 0x30]
call fcn.1400bb9a0
nop
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
mov ecx, r8d
call fcn.1400a4dd0
mov r8d, eax
lea r9, [rsp + 0x30]
mov edx, 1
lea rcx, [rbp - 0x51]
call fcn.1400a4e70
lea rdx, [0x1401727b8]
lea rcx, [rbp - 0x51]
call fcn.1400bb9a0
nop
lea rdx, str.String_environment_expansion_failed
lea rcx, [rbp - 0x21]
call fcn.1400a3550
lea rdx, [0x140172930]
lea rcx, [rbp - 0x21]
call fcn.1400bb9a0
int3
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rbp - 0x51]
call fcn.1400a3550
lea rdx, [0x140172930]
lea rcx, [rbp - 0x51]
call fcn.1400bb9a0
int3