Function at 0x14002f930
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x24], r12d
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14002fd1c
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov r15d, 1
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x28], r12
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x80]
lea rdi, [r12 - 1]
test eax, eax
js 0x14002f9f5
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14002f9f5
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002f9d5
lea rcx, [rsp + 0x38]
call fcn.140006d70
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14019fd40
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov r8d, 0x104
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x14002fb27
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp ebx, eax
jne 0x14002fa6e
lea rax, [rbp - 0x80]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002fa50
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140006d70
jmp 0x14002fb27
mov word [rsp + 0x22], r12w
mov rdx, rbx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x22]
lea rcx, [rsp + 0x58]
call fcn.14002d160
nop
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, qword [rsp + 0x58]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002fac0
lea rcx, [rsp + 0x38]
call fcn.140006d70
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002fb27
mov rax, qword [rsp + 0x68]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fb14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd4d
call fcn.1401812c4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov r8, qword [rsp + 0x48]
xor bl, bl
test r8, r8
je 0x14002fbac
mov byte [rsp + 0x20], bl
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
lea rax, [rax + r8*2]
lea r8, [rsp + 0x38]
cmovae r8, qword [rsp + 0x38]
mov rdx, r12
mov r9, rax
sub r9, r8
inc r9
shr r9, 1
cmp r8, rax
cmova r9, r12
test r9, r9
je 0x14002fbac
mov r10d, 0x5c
nop dword [rax + rax]
movzx ecx, word [r8]
cmp cx, 0x2f
sete al
or bl, al
mov byte [rsp + 0x20], bl
cmp cx, 0x2f
jne 0x14002fba0
mov word [r8], r10w
movzx ebx, byte [rsp + 0x20]
add r8, 2
inc rdx
cmp rdx, r9
jne 0x14002fb80
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14002e960
nop
cmp qword [rax + 0x18], 8
jb 0x14002fbc9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
sete r14b
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14002fc1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fc15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd53
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
test r14b, r14b
je 0x14002fc91
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002fc7e
dec rax
cmp rax, 0xffffffffffffffff
cmovb rdi, rax
lea rax, [rcx + rdi*2]
cmp word [rax], 0x2e
je 0x14002fc72
cmp rax, rcx
je 0x14002fc7e
sub rax, 2
cmp word [rax], 0x2e
jne 0x14002fc63
sub rax, rcx
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x14002fc91
mov r8, qword [rsi + 0x10]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14002dd90
or bl, al
test bl, bl
je 0x14002fcc1
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
lea rdx, [0x1401e6278]
call qword [rax + 0x78]
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x78]
and r15d, 0xfffffffe
mov dword [rsp + 0x24], r15d
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14002fd08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fd03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd47
call fcn.1401812c4
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1401813e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
int3