Function at 0x1400908b0
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 [0x140212c80]
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.1400915e0
nop
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140091270
nop
cmp byte [rsp + 0x30], sil
jne 0x14009092f
mov ecx, esi
mov qword [rsp + 0x28], rcx
jmp 0x140090934
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14009094b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14009094b
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 0x14009096a
sub eax, 1
je 0x14009096a
cmp eax, 4
jne 0x140090ad6
lea rcx, [rbp + 7]
call fcn.140091230
test al, al
je 0x1400909ae
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.140091230
test al, al
jne 0x140090980
mov r8d, dword [rbp + 0x27]
cmp r8d, 2
jne 0x140090a6c
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.140028ce0
cmp rax, 0xffffffffffffffff
je 0x140090a6c
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.140028f70
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x140090aaf
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140090a46
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 0x140090b00
cmp eax, ebx
jne 0x140090b21
jmp 0x140090a8b
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.140025e80
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140133600
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.14000c180
lea rdx, [0x14020e200]
lea rcx, [rbp - 0x79]
call fcn.140135f84
nop
mov ecx, r8d
call fcn.1400902d0
mov r8d, eax
mov edx, 1
lea rcx, [rbp - 0x51]
call fcn.1400903a0
lea rdx, [0x14020eca8]
lea rcx, [rbp - 0x51]
call fcn.140135f84
nop
lea rdx, str.String_environment_expansion_failed
lea rcx, [rbp - 0x21]
call fcn.140090440
lea rdx, [0x14020ee60]
lea rcx, [rbp - 0x21]
call fcn.140135f84
int3
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rbp - 0x51]
call fcn.140090440
lea rdx, [0x14020ee60]
lea rcx, [rbp - 0x51]
call fcn.140135f84
int3