Function at 0x180006590
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x30]
call fcn.1800730e0
nop
xor r8d, r8d
lea rdx, [0x1803dbc48]
lea rcx, [rsp + 0x30]
call fcn.1800739b0
cmp rax, qword [0x180323d38]
je 0x18000666f
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800737e0
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x18000663b
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800737e0
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x18000663b
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800737e0
movsx eax, byte [rax]
test eax, eax
je 0x18000666f
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800737e0
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x18000666f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x100]
call fcn.180073130
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.180073360
mov rax, qword [rsp + 0x100]
jmp 0x18000689f
lea rcx, [rsp + 0x30]
call fcn.180073860
xor edx, edx
mov rcx, rax
call fcn.1801ea020
movzx eax, al
test eax, eax
je 0x1800066c6
lea rcx, [rsp + 0x30]
call fcn.180073860
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call fcn.1801ec3a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.180073360
mov rax, qword [rsp + 0x100]
jmp 0x18000689f
mov ecx, 0x8000
call fcn.18017b5f8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov r8d, 0x4000
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1803ae238]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x180006875
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xd0]
call fcn.1801eb5b0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov r8b, 0x3b
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.1801e89b0
nop
lea rcx, [rsp + 0xd0]
call fcn.180073360
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x78]
call fcn.1800742b0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x18000677b
xor r8d, r8d
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x28]
call fcn.180075fe0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800742e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1800755a0
movzx eax, al
test eax, eax
je 0x18000686b
lea rcx, [rsp + 0x30]
call fcn.180073860
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x28]
call fcn.1800760f0
mov rcx, rax
call fcn.180073860
mov rcx, qword [rsp + 0x70]
mov r9, rcx
mov r8, rax
lea rdx, [0x1803ae244]
lea rcx, [rsp + 0x90]
call fcn.1801e9200
nop
lea rcx, [rsp + 0x90]
call fcn.180073860
xor edx, edx
mov rcx, rax
call fcn.1801ea020
movzx eax, al
test eax, eax
je 0x180006859
lea rcx, [rsp + 0x90]
call fcn.180073860
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call fcn.1801ec3a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.180073360
nop
lea rcx, [rsp + 0x78]
call fcn.180074290
nop
lea rcx, [rsp + 0x30]
call fcn.180073360
mov rax, qword [rsp + 0x100]
jmp 0x18000689f
lea rcx, [rsp + 0x90]
call fcn.180073360
jmp 0x180006766
lea rcx, [rsp + 0x78]
call fcn.180074290
mov rcx, qword [rsp + 0x100]
call fcn.180073040
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.180073360
mov rax, qword [rsp + 0x100]
add rsp, 0xf8
ret