Function at 0x1400c7e80
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 [0x140293028]
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 0x1400c7ed7
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400c7fff
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 3
lea rcx, [rbp - 0x80]
call fcn.14000f010
nop
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rsp + 0x78], eax
setl byte [rbp + 0x78]
jl 0x1400c7f7d
lea rdx, str.Error_expanding_string_
lea rcx, [rsp + 0x70]
call fcn.1400219b0
mov rdx, rsi
mov rcx, rax
call fcn.140021890
lea rdx, [0x14020ca54]
mov rcx, rax
call fcn.140030200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x78], 1
lea rcx, [rsp + 0x70]
call fcn.14000afe0
mov rdx, rsi
mov rcx, rdi
call fcn.14000fcc0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400c7fd5
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7fd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c821f
call fcn.1401853a0
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140185380
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 0x1400c8025
lea rcx, [rdx + r8*2]
mov qword [rsp + 0x38], rcx
jmp 0x1400c806c
jbe 0x1400c806c
mov rax, qword [rsp + 0x40]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x1400c804e
lfence
mov rdx, r8
lea rcx, [rsp + 0x30]
call fcn.1400d7700
mov rcx, qword [rsp + 0x38]
jmp 0x1400c8067
sub r8, r9
add r8, r8
lea rbx, [rcx + r8]
xor edx, edx
call fcn.1401a8d80
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 0x1400c807f
mov rax, qword [rsi]
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400c811a
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub r8, rdx
sar r8, 1
mov eax, eax
cmp rax, r8
ja 0x1400c811a
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
lea rcx, [rsp + 0x48]
call fcn.14000b550
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 0x1400c8104
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 0x1400c7f93
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x80]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], 3
lea rcx, [rbp + 0x90]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0x88], eax
setl byte [rbp + 0x188]
jl 0x1400c81c2
lea rdx, str.Error_expanding_string_
lea rcx, [rbp + 0x80]
call fcn.1400219b0
mov rdx, rsi
mov rcx, rax
call fcn.140021890
lea rdx, [0x14020ca54]
mov rcx, rax
call fcn.140030200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x188], 1
lea rcx, [rbp + 0x80]
call fcn.14000afe0
mov rdx, rsi
mov rcx, rdi
call fcn.14000fcc0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400c7fd5
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7fd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c7fd0
call fcn.1401b3c00
int3