Function at 0x18008b0f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3c0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
lea rax, [rsp + 0x158]
lea r8, [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
mov rcx, rax
call fcn.1800056f0
nop
mov rdx, qword [rsp + 0x3d8]
lea rcx, [rsp + 0x158]
call fcn.180009710
nop
lea rdx, str.__r_t_n
lea rcx, [rsp + 0x158]
call fcn.18008daf0
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18008b189
mov dword [rsp + 0x34], 1
jmp 0x18008b191
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x18008b1c7
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0xb0], rax
movzx eax, byte [rsp + 0x20]
jmp 0x18008b686
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x158]
call fcn.180003a80
mov r8d, 0x104
lea rdx, [rsp + 0x1a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x18008b253
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x18008b219
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x158]
call fcn.1800040d0
lea rcx, [rsp + 0x158]
call fcn.18009b340
movzx eax, al
test eax, eax
je 0x18008b2a9
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x3e0]
call fcn.180003ae0
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0xb8], rax
movzx eax, byte [rsp + 0x21]
jmp 0x18008b686
xor r8d, r8d
mov dx, 0x22
lea rcx, [rsp + 0x158]
call fcn.18008c800
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18008b3b2
mov rax, qword [rsp + 0x28]
inc rax
mov r8, rax
mov dx, 0x22
lea rcx, [rsp + 0x158]
call fcn.18008c800
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x18008b3b2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
dec rax
mov rcx, qword [rsp + 0x28]
inc rcx
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x158]
call fcn.18001c030
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x3e0]
call fcn.180005c40
nop
lea rcx, [rsp + 0x118]
call fcn.180003f40
nop
lea rax, [rsp + 0x118]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x3e0]
call fcn.18009b340
movzx eax, al
test eax, eax
je 0x18008b3b2
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0xc8], rax
movzx eax, byte [rsp + 0x22]
jmp 0x18008b686
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x178]
call fcn.180004020
nop
xor eax, eax
cmp eax, 1
je 0x18008b640
mov rax, qword [rsp + 0x28]
inc rax
mov r8, rax
mov dx, 0x20
lea rcx, [rsp + 0x158]
call fcn.18001c8c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x18008b46b
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x178]
call fcn.180003f40
nop
lea rax, [rsp + 0x178]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0xd8], rax
movzx eax, byte [rsp + 0x23]
jmp 0x18008b686
mov rax, qword [rsp + 0x28]
inc rax
cmp qword [rsp + 0x38], rax
jne 0x18008b489
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
jmp 0x18008b3ea
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.18001c030
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x178]
call fcn.180005c40
nop
lea rcx, [rsp + 0x138]
call fcn.180003f40
nop
lea rax, [rsp + 0x138]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x178]
call fcn.180098ee0
movzx eax, al
test eax, eax
je 0x18008b570
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x3e0]
call fcn.180003ae0
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x178]
call fcn.180003f40
nop
lea rax, [rsp + 0x178]
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0xf0], rax
movzx eax, byte [rsp + 0x24]
jmp 0x18008b686
lea rax, [0x18019c980]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x18008b588
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0xa0]
lea rdx, [0x18019c980]
lea rcx, [rsp + 0x178]
call fcn.180012ea0
lea rcx, [rsp + 0x178]
call fcn.180098ee0
movzx eax, al
test eax, eax
je 0x18008b63b
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x3e0]
call fcn.180003ae0
mov byte [rsp + 0x25], 1
lea rcx, [rsp + 0x178]
call fcn.180003f40
nop
lea rax, [rsp + 0x178]
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0x100], rax
movzx eax, byte [rsp + 0x25]
jmp 0x18008b686
jmp 0x18008b3ea
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0x178]
call fcn.180003f40
nop
lea rax, [rsp + 0x178]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x158]
call fcn.180003f40
nop
lea rax, [rsp + 0x158]
mov qword [rsp + 0x110], rax
movzx eax, byte [rsp + 0x26]
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x3c0
pop rdi
ret