Function at 0x18006b860
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x308], rbx
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, r8
mov r14, rdx
xor edi, edi
lea r8, [rcx + 0x10]
cmp qword [r8], rdi
jne 0x18006b8b1
xor al, al
jmp 0x18006bb45
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x18006b8de
mov rax, qword [rcx]
cmp word [rax], 0x40
jne 0x18006b938
mov r8, qword [r8]
dec r8d
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.18001e7a0
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x18006b92d
lea rcx, [rsp + 0x40]
call fcn.180003440
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rcx, [rbp - 0x80]
call fcn.180003440
jmp 0x18006b95b
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x18006b95b
cmp rdx, 8
jb 0x18006b94b
mov rcx, qword [rcx]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.180003540
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, 0x104
jb 0x18006b9e9
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd5c0
mov rbx, rax
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, r15d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1800034c0
mov rcx, rbx
call fcn.1800bd2d0
jmp 0x18006b9f7
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800034c0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], di
lea rdx, [0x1800e2c8c]
lea rcx, [rsp + 0x60]
call fcn.1800034c0
nop
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
mov r15, qword [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, r15
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call fcn.1800055a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006bb01
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.18001e740
nop
mov rdx, rax
mov rcx, r14
call fcn.180005250
nop
lea rcx, [rbp - 0x80]
call fcn.180003440
test rsi, rsi
je 0x18006bafd
mov r8d, dword [rsp + 0x50]
sub r8d, ebx
sub r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.18001e7a0
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x18006baf2
nop
cmp ax, 0x39
ja 0x18006baf2
lea rdi, [rdi + rdi*4]
movzx eax, ax
lea rdi, [rdi - 0x18]
lea rdi, [rax + rdi*2]
add rdx, 2
movzx eax, word [rdx]
cmp ax, 0x30
jae 0x18006bad0
mov dword [rsi], edi
lea rcx, [rbp - 0x80]
call fcn.180003440
mov bl, 1
jmp 0x18006bb2d
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x18006bb27
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, r15
mov r8, qword [rsp + 0x50]
mov rcx, r14
call fcn.180003540
test rsi, rsi
sete bl
lea rcx, [rsp + 0x60]
call fcn.180003440
nop
lea rcx, [rsp + 0x40]
call fcn.180003440
movzx eax, bl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret