Function at 0x14002a560
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140097050]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor r14d, r14d
mov rdi, qword [rdx + 8]
mov rsi, qword [rdx]
test rdi, rdi
je 0x14002a7ea
mov rcx, rdi
mov rax, rsi
mov edx, r14d
cmp word [rsi], 0x25
je 0x14002a5c3
nop dword [rax]
cmp rcx, 1
je 0x14002a5c6
dec rcx
add rax, 2
cmp word [rax], 0x25
jne 0x14002a5b0
mov rdx, rax
test rdx, rdx
je 0x14002a7ea
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xffffffffffffffff
je 0x14002a7ea
inc rdx
cmp rdx, rdi
jae 0x14002a7ea
mov rax, rdi
sub rax, rdx
lea rcx, [rsi + rdx*2]
mov rdx, r14
je 0x14002a616
cmp word [rcx], 0x25
je 0x14002a613
cmp rax, 1
je 0x14002a616
dec rax
add rcx, 2
cmp word [rcx], 0x25
jne 0x14002a600
mov rdx, rcx
test rdx, rdx
je 0x14002a7ea
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xffffffffffffffff
je 0x14002a7ea
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
lea rdx, [rdi + 0x100]
test rdx, rdx
jne 0x14002a65f
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r14w
jmp 0x14002a696
cmp rdx, 7
ja 0x14002a67f
mov qword [rbp - 0x20], rdx
movzx eax, r14w
lea rdi, [rbp - 0x30]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x30], r14w
jmp 0x14002a696
mov word [rsp + 0x20], r14w
mov r9, rdx
movzx r8d, byte [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140003960
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov edx, eax
mov r8, qword [rbp - 0x20]
cmp rdi, r8
jbe 0x14002a6eb
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140002da0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov r8, qword [rbp - 0x20]
test edi, edi
je 0x14002a78b
mov eax, edi
cmp rax, r8
ja 0x14002a78b
lea ecx, [rdi - 1]
cmp rcx, r8
ja 0x14002a71f
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rcx
mov word [rax + rcx*2], r14w
jmp 0x14002a77a
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x18]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14002a763
mov qword [rbp - 0x20], rcx
lea r9, [rbp - 0x30]
cmp rdi, 8
cmovae r9, qword [rbp - 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14002a758
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x14002a77a
mov word [rsp + 0x20], r14w
mov r9, rdx
movzx r8d, byte [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140003960
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14002a806
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400656e0]
mov rcx, rbx
call fcn.140003890
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002a806
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a7e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a82a
call fcn.14003ac6c
jmp 0x14002a806
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140003890
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003ac10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140041558
int3