Function at 0x18002cda0
Capabilities:
Query environment variable

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov rax, qword [0x1800e3db0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x198]
mov qword [rax], 0
mov rax, qword [rsp + 0x190]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x190]
add rax, 1
mov qword [rsp + 0x190], rax
movsx eax, byte [rsp + 0x20]
cmp eax, 1
jne 0x18002ce31
movzx eax, byte [rsp + 0x1a0]
test eax, eax
jne 0x18002ce2c
cmp dword [0x18010fbe8], 8
je 0x18002ce2c
xor ecx, ecx
call fcn.180032030
mov rcx, qword [rsp + 0x198]
mov qword [rcx], rax
jmp 0x18002d01a
movsx eax, byte [rsp + 0x20]
cmp eax, 2
je 0x18002ce49
movsx eax, byte [rsp + 0x20]
cmp eax, 3
jne 0x18002d01a
mov rax, qword [rsp + 0x190]
movzx eax, word [rax]
mov dword [0x180110180], eax
mov rax, qword [rsp + 0x190]
add rax, 2
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov dword [rsp + 0x150], eax
mov rax, qword [rsp + 0x190]
add rax, 4
mov qword [rsp + 0x190], rax
mov eax, dword [rsp + 0x150]
add eax, 0x10000
mov eax, eax
mov rcx, rax
call fcn.1800728f0
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp eax, 1
je 0x18002cf44
mov eax, dword [rsp + 0x150]
add eax, 0x10000
mov dword [rsp + 0x140], eax
xor r9d, r9d
lea r8, [rsp + 0x140]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x190]
call fcn.18002d100
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
jne 0x18002cf1f
xor eax, eax
jmp 0x18002d0e2
cmp dword [rsp + 0x140], 0
jne 0x18002cf2b
jmp 0x18002cf44
mov eax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x18002cece
movzx eax, byte [0x1800e5d72]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov r8d, 0x100
lea rdx, [rsp + 0x40]
lea rcx, [0x1800e76a8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x18002cf83
mov byte [rsp + 0x40], 0
jmp 0x18002cfa2
movsx eax, byte [rsp + 0x40]
cmp eax, 0x30
je 0x18002cf96
movsx eax, byte [rsp + 0x40]
test eax, eax
jne 0x18002cf9d
mov byte [rsp + 0x40], 0
jmp 0x18002cfa2
mov byte [rsp + 0x40], 1
movsx eax, byte [rsp + 0x40]
test eax, eax
jne 0x18002cffd
movzx eax, byte [rsp + 0x1a0]
test eax, eax
jne 0x18002cffd
cmp dword [0x18010fbe8], 8
je 0x18002cffd
cmp dword [0x18010fbe8], 9
je 0x18002cffd
movsx eax, byte [rsp + 0x20]
cmp eax, 3
jne 0x18002cfdd
mov byte [rsp + 0x168], 1
jmp 0x18002cfe5
mov byte [rsp + 0x168], 0
xor r8d, r8d
movzx edx, byte [rsp + 0x168]
mov rcx, qword [rsp + 0x148]
call fcn.180048250
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.18007fd60
mov rax, qword [rsp + 0x190]
movsx eax, byte [rax]
test eax, eax
je 0x18002d0c6
mov rax, qword [rsp + 0x190]
add rax, 1
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
add rax, 4
mov qword [rsp + 0x190], rax
xor eax, eax
cmp eax, 1
je 0x18002d0c1
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov dword [rsp + 0x154], eax
mov rax, qword [rsp + 0x190]
add rax, 4
mov qword [rsp + 0x190], rax
mov eax, dword [rsp + 0x154]
and eax, 0x7fffffff
mov dword [rsp + 0x154], eax
cmp dword [rsp + 0x154], 0
je 0x18002d0bd
mov eax, dword [rsp + 0x154]
mov rcx, qword [rsp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x190], rax
jmp 0x18002d0bf
jmp 0x18002d0c1
jmp 0x18002d055
jmp 0x18002d01a
mov rax, qword [rsp + 0x190]
add rax, 1
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18007e6b0
add rsp, 0x180
pop rdi
ret