Function at 0x180005490
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1148
call fcn.1801907a0
sub rsp, rax
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x70]
call fcn.180073040
nop
mov rcx, qword [rsp + 0x1158]
call fcn.18017cd00
shl rax, 1
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180073880
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
test eax, eax
je 0x18000588b
mov rax, qword [rsp + 0x1158]
movzx eax, byte [rax]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
movsx eax, byte [rsp + 0x21]
cmp eax, 0x25
je 0x180005543
movzx r8d, byte [rsp + 0x21]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1800735e0
jmp 0x1800054ed
lea rcx, [rsp + 0x40]
call fcn.180073040
nop
mov rax, qword [rsp + 0x1158]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movsx eax, byte [rsp + 0x20]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x25
je 0x180005593
cmp dword [rsp + 0x28], 0x7b
je 0x180005591
jmp 0x1800055b8
jmp 0x1800055cd
movzx r8d, byte [rsp + 0x20]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1800735e0
nop
lea rcx, [rsp + 0x40]
call fcn.180073360
jmp 0x1800054ed
movzx r8d, byte [rsp + 0x20]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1800735e0
movsx eax, byte [rsp + 0x20]
cmp eax, 0x7b
jne 0x180005745
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
test eax, eax
je 0x180005633
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
cmp eax, 0x7d
je 0x180005633
mov rax, qword [rsp + 0x1158]
movzx eax, byte [rax]
mov byte [rsp + 0x22], al
movzx r8d, byte [rsp + 0x22]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1800735e0
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
jmp 0x1800055db
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
cmp dword [rsp + 0x2c], 0
je 0x180005731
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x1160]
call fcn.1801d95a0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0xc0]
call fcn.180004550
nop
lea rcx, [rsp + 0x60]
call fcn.1800043f0
lea rcx, [rsp + 0xc0]
call fcn.1800040c0
movzx eax, al
test eax, eax
je 0x180005722
lea rcx, [rsp + 0xc0]
call fcn.1800038e0
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x120]
mov rcx, rax
call fcn.1800042e0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.180073450
nop
lea rcx, [rsp + 0x120]
call fcn.180073360
nop
lea rcx, [rsp + 0xc0]
call fcn.1800046c0
jmp 0x180005740
lea rcx, [rsp + 0x40]
call fcn.180073360
jmp 0x18000588b
jmp 0x18000587c
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
test eax, eax
je 0x18000579d
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
cmp eax, 0x25
je 0x18000579d
mov rax, qword [rsp + 0x1158]
movzx eax, byte [rax]
mov byte [rsp + 0x23], al
movzx r8d, byte [rsp + 0x23]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1800735e0
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
jmp 0x180005745
mov rax, qword [rsp + 0x1158]
movsx eax, byte [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1158]
inc rax
mov qword [rsp + 0x1158], rax
cmp dword [rsp + 0x30], 0
je 0x180005870
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xe0]
call fcn.180003440
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.180074060
mov r8d, 0x800
lea rdx, [rsp + 0x140]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0xe0]
call fcn.180073fc0
cmp dword [rsp + 0x34], 0
je 0x18000586e
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x100]
call fcn.1801eb5b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.180073450
nop
lea rcx, [rsp + 0x100]
call fcn.180073360
jmp 0x18000587c
lea rcx, [rsp + 0x40]
call fcn.180073360
jmp 0x18000588b
lea rcx, [rsp + 0x40]
call fcn.180073360
jmp 0x1800054ed
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1150]
call fcn.180073130
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x70]
call fcn.180073360
mov rax, qword [rsp + 0x1150]
add rsp, 0x1148
ret