Function at 0x14018d528
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0x168], 0
jne 0x14018d569
xor al, al
jmp 0x14018d8f8
lea rcx, [rsp + 0x128]
call fcn.1401812c8
nop
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x128]
call fcn.1401a0fa0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 8
jb 0x14018d60c
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x14018d616
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 8
jb 0x14018d65b
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x14018d665
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa0], rax
xor eax, eax
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0x98]
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14018d6cd
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.1401823d0
nop
mov al, byte [rsp + 0x20]
jmp 0x14018d8f8
lea rax, [rsp + 0x128]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x10
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x24]
cmp rax, qword [rsp + 0xc0]
jbe 0x14018d85c
mov eax, dword [rsp + 0x24]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x128]
call fcn.1401a0fa0
lea rax, [rsp + 0x128]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x10
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 8
jb 0x14018d7c8
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x14018d7d2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 8
jb 0x14018d817
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x14018d821
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xf8], rax
xor eax, eax
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14018d881
mov byte [rsp + 0x21], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.1401823d0
nop
mov al, byte [rsp + 0x21]
jmp 0x14018d8f8
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x128]
call fcn.140181aec
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x128]
call fcn.1401820d8
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x168]
call fcn.1401a2b0c
mov byte [rsp + 0x22], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.1401823d0
nop
mov al, byte [rsp + 0x22]
jmp 0x14018d8f8
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1401ef4e0
add rsp, 0x158
ret