Function at 0x180217ff0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x310
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov dword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x328]
lea rcx, [rsp + 0xb0]
call fcn.180037a20
nop
lea rdx, str.__r_t_n
lea rcx, [rsp + 0xb0]
call fcn.1801db780
lea rcx, [rsp + 0xb0]
call fcn.180037950
movzx eax, al
test eax, eax
je 0x180218084
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x20]
jmp 0x1802183c4
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call fcn.180037970
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x1802180d5
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.180033910
lea rcx, [rsp + 0xb0]
call fcn.1801e50e0
movzx eax, al
test eax, eax
je 0x18021811a
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x330]
call fcn.1800392f0
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x21]
jmp 0x1802183c4
xor r8d, r8d
mov dx, 0x22
lea rcx, [rsp + 0xb0]
call fcn.18004b8c0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1802181fb
mov rax, qword [rsp + 0x28]
inc rax
mov r8, rax
mov dx, 0x22
lea rcx, [rsp + 0xb0]
call fcn.18004b8c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x1802181fb
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
dec rax
mov rcx, qword [rsp + 0x28]
inc rcx
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.180052cd0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x330]
call fcn.1800379a0
nop
lea rcx, [rsp + 0x70]
call fcn.180033840
mov rcx, qword [rsp + 0x330]
call fcn.1801e50e0
movzx eax, al
test eax, eax
je 0x1802181fb
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x22]
jmp 0x1802183c4
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xd0]
call fcn.180037a00
nop
xor eax, eax
cmp eax, 1
je 0x18021839f
mov rax, qword [rsp + 0x28]
inc rax
mov r8, rax
mov dx, 0x20
lea rcx, [rsp + 0xb0]
call fcn.18004b8c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180218272
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x23]
jmp 0x1802183c4
mov rax, qword [rsp + 0x28]
inc rax
cmp qword [rsp + 0x30], rax
jne 0x18021828d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
jmp 0x180218212
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.180052cd0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xd0]
call fcn.1800379a0
nop
lea rcx, [rsp + 0x90]
call fcn.180033840
lea rcx, [rsp + 0xd0]
call fcn.1801dbd90
movzx eax, al
test eax, eax
je 0x180218336
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x330]
call fcn.1800392f0
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x24]
jmp 0x1802183c4
lea rdx, [0x18038a1a0]
lea rcx, [rsp + 0xd0]
call fcn.18003ea40
lea rcx, [rsp + 0xd0]
call fcn.1801dbd90
movzx eax, al
test eax, eax
je 0x18021839a
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x330]
call fcn.1800392f0
mov byte [rsp + 0x25], 1
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x25]
jmp 0x1802183c4
jmp 0x180218212
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x26]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x310
pop rdi
ret