Function at 0x18006f750
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov rax, qword [0x1800fb008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, r8
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.1800032a0
nop
mov rbx, qword [rsp + 0x58]
mov rsi, rbx
cmp rbx, 1
jb 0x18006f8ac
mov edi, r13d
test rbx, rbx
je 0x18006f8ac
cmp rbx, rdi
jbe 0x18006f89a
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
movzx edx, word [rax + rdi*2]
lea rcx, str.__r_t_n
call fcn.1800889ac
test rax, rax
je 0x18006f81f
inc rdi
cmp rdi, rsi
jae 0x18006f81f
mov rbx, qword [rsp + 0x58]
jmp 0x18006f7e1
mov rbx, qword [rsp + 0x58]
test rdi, rdi
je 0x18006f8ac
cmp rbx, rdi
ja 0x18006f84e
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax], r13w
jmp 0x18006f8a7
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x60]
cmp r8, 8
cmovae rcx, rdx
sub rbx, rdi
je 0x18006f881
lea r8, [rbx + rbx]
lea rdx, [rcx + rdi*2]
call fcn.180087f20
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x48]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rbx*2], r13w
jmp 0x18006f8a7
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
mov rbx, qword [rsp + 0x58]
mov r15, rbx
cmp rbx, 1
jb 0x18006f9cf
mov rdi, rbx
test rbx, rbx
je 0x18006f9d4
lea r14, [rbx*2 - 2]
nop dword [rax]
lea rsi, [rdi - 1]
cmp rbx, rsi
jbe 0x18006f9bd
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
movzx edx, word [rax + r14]
lea rcx, str.__r_t_n
call fcn.1800889ac
test rax, rax
je 0x18006f917
mov rdi, rsi
sub r14, 2
test rsi, rsi
je 0x18006f917
mov rbx, qword [rsp + 0x58]
jmp 0x18006f8d0
mov rbx, qword [rsp + 0x58]
cmp rdi, r15
jae 0x18006f9cf
sub r15, rdi
cmp rbx, rdi
jae 0x18006f93a
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
mov rax, rbx
sub rax, rdi
cmp rax, r15
ja 0x18006f962
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rdi*2], r13w
jmp 0x18006f9ca
test r15, r15
je 0x18006f9cf
lea rax, [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x60]
cmp r8, 8
cmovae rax, rdx
lea rcx, [rax + rdi*2]
sub rbx, r15
mov rax, rbx
sub rax, rdi
je 0x18006f9a4
lea r8, [rax + rax]
lea rdx, [rcx + r15*2]
call fcn.180087f20
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x48]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rbx*2], r13w
jmp 0x18006f9ca
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x18006f9db
xor bl, bl
jmp 0x18006fc67
mov word [rbp - 0x70], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.18008c480
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18006fa49
cmp word [rbp - 0x70], 0
jne 0x18006fa22
mov r8, r13
jmp 0x18006fa3b
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18006fa30
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.180003940
lea rcx, [rsp + 0x48]
call fcn.18000f9e0
test al, al
je 0x18006fa7c
lea rax, [rsp + 0x48]
cmp r12, rax
je 0x18006fa75
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.1800032a0
mov bl, 1
jmp 0x18006fc67
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.180070630
test rax, rax
jne 0x18006fb01
lea r8d, [rax + 1]
lea rcx, [rsp + 0x48]
call fcn.180070630
cmp rax, 0xffffffffffffffff
je 0x18006fb01
lea r9, [rax - 1]
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180007530
nop
mov rdx, rax
mov rcx, r12
call fcn.1800058b0
nop
cmp qword [rsp + 0x38], 8
jb 0x18006fada
mov rcx, qword [rsp + 0x20]
call fcn.18008861c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r13
mov word [rsp + 0x20], r13w
mov rcx, r12
call fcn.18000f9e0
test al, al
je 0x18006fb01
mov bl, 1
jmp 0x18006fc67
mov rdi, r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
mov edx, 0x20
lea r8d, [rdx - 0x1f]
lea rcx, [rsp + 0x48]
call fcn.18000eb40
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006fc41
lea rcx, [rdi + 1]
mov rdi, rbx
cmp rbx, rcx
je 0x18006fbfd
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180007530
mov rsi, rax
lea rax, [rsp + 0x68]
cmp rax, rsi
je 0x18006fba4
cmp qword [rbp - 0x80], 8
jb 0x18006fb83
mov rcx, qword [rsp + 0x68]
call fcn.18008861c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.180003210
nop
cmp qword [rsp + 0x38], 8
jb 0x18006fbb6
mov rcx, qword [rsp + 0x20]
call fcn.18008861c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r13
mov word [rsp + 0x20], r13w
lea rcx, [rsp + 0x68]
call fcn.1800103b0
test al, al
jne 0x18006fc1f
mov r8d, 4
lea rdx, [0x1800c4538]
lea rcx, [rsp + 0x68]
call fcn.1800095e0
lea rcx, [rsp + 0x68]
call fcn.1800103b0
test al, al
jne 0x18006fc1f
lea r8, [rbx + 1]
mov edx, 0x20
lea rcx, [rsp + 0x48]
call fcn.18000eb40
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18006fb40
jmp 0x18006fc41
lea rax, [rsp + 0x68]
cmp r12, rax
je 0x18006fc3d
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, r12
call fcn.1800032a0
mov bl, 1
jmp 0x18006fc43
xor bl, bl
cmp qword [rbp - 0x80], 8
jb 0x18006fc54
mov rcx, qword [rsp + 0x68]
call fcn.18008861c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
cmp qword [rsp + 0x60], 8
jb 0x18006fc79
mov rcx, qword [rsp + 0x48]
call fcn.18008861c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180087ea0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret