Function at 0x140021760
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400217b7
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400218d8
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call fcn.1400d41f0
call fcn.140089150
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 2
lea rcx, [rbp - 0x80]
call fcn.140018320
nop
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rsp + 0x78], eax
setl byte [rbp + 0x78]
jl 0x140021856
lea rdx, str.Error_expanding_string_
lea rcx, [rsp + 0x70]
call fcn.14002ce10
mov rdx, rsi
mov rcx, rax
call fcn.140019040
mov rcx, rax
call fcn.14002ce70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x78], 1
lea rcx, [rsp + 0x70]
call fcn.140014330
mov rdx, rsi
mov rcx, rdi
call fcn.14000a300
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400218ae
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400218a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021af1
call fcn.1400ada10
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400ad9f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r8d, eax
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov rdx, qword [rsp + 0x30]
sub r9, rdx
sar r9, 1
cmp r8, r9
jae 0x1400218fe
lea rcx, [rdx + r8*2]
mov qword [rsp + 0x38], rcx
jmp 0x140021945
jbe 0x140021945
mov rax, qword [rsp + 0x40]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x140021927
lfence
mov rdx, r8
lea rcx, [rsp + 0x30]
call fcn.1400304f0
mov rcx, qword [rsp + 0x38]
jmp 0x140021940
sub r8, r9
add r8, r8
lea rbx, [rcx + r8]
xor edx, edx
call fcn.1400d41f0
mov rcx, rbx
mov qword [rsp + 0x38], rbx
mov rdx, qword [rsp + 0x30]
sub rcx, rdx
sar rcx, 1
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140021958
mov rax, qword [rsi]
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400219f3
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub r8, rdx
sar r8, 1
mov eax, eax
cmp rax, r8
ja 0x1400219f3
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
lea rcx, [rsp + 0x48]
call fcn.14000b840
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
setae r9b
mov r8, qword [rsp + 0x48]
cmovae rcx, r8
mov rdx, qword [rsp + 0x58]
dec rdx
cmp word [rcx + rdx*2], 0
jne 0x1400219dd
lea rax, [rsp + 0x48]
test r9b, r9b
cmovne rax, r8
mov qword [rsp + 0x58], rdx
mov word [rax + rdx*2], r14w
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
jmp 0x14002186c
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x80]
call fcn.1400d41f0
call fcn.140089150
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], 2
lea rcx, [rbp + 0x90]
call fcn.140018320
nop
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0x88], eax
setl byte [rbp + 0x188]
jl 0x140021a94
lea rdx, str.Error_expanding_string_
lea rcx, [rbp + 0x80]
call fcn.14002ce10
mov rdx, rsi
mov rcx, rax
call fcn.140019040
mov rcx, rax
call fcn.14002ce70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x188], 1
lea rcx, [rbp + 0x80]
call fcn.140014330
mov rdx, rsi
mov rcx, rdi
call fcn.14000a300
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400218ae
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400218a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400218a9
call fcn.1400e39e0
int3