Function at 0x18006b770
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 [0x180122010]
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 0x18006b7c1
xor al, al
jmp 0x18006ba55
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 0x18006b7ee
mov rax, qword [rcx]
cmp word [rax], 0x40
jne 0x18006b848
mov r8, qword [r8]
dec r8d
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.18001e750
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x18006b83d
lea rcx, [rsp + 0x40]
call fcn.180003470
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.180003470
jmp 0x18006b86b
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x18006b86b
cmp rdx, 8
jb 0x18006b85b
mov rcx, qword [rcx]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.180003570
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 0x18006b8f9
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bad30
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.1800034f0
mov rcx, rbx
call fcn.1800baa40
jmp 0x18006b907
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800034f0
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, [0x1800df9ec]
lea rcx, [rsp + 0x60]
call fcn.1800034f0
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.1800055f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006ba11
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.18001e6f0
nop
mov rdx, rax
mov rcx, r14
call fcn.1800052a0
nop
lea rcx, [rbp - 0x80]
call fcn.180003470
test rsi, rsi
je 0x18006ba0d
mov r8d, dword [rsp + 0x50]
sub r8d, ebx
sub r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.18001e750
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x18006ba02
nop
cmp ax, 0x39
ja 0x18006ba02
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 0x18006b9e0
mov dword [rsi], edi
lea rcx, [rbp - 0x80]
call fcn.180003470
mov bl, 1
jmp 0x18006ba3d
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x18006ba37
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, r15
mov r8, qword [rsp + 0x50]
mov rcx, r14
call fcn.180003570
test rsi, rsi
sete bl
lea rcx, [rsp + 0x60]
call fcn.180003470
nop
lea rcx, [rsp + 0x40]
call fcn.180003470
movzx eax, bl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800ba9e0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret