Function at 0x180011ca0
Capabilities:
Query environment variable

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x1800c43e0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rax], 0
mov rax, qword [rsp + 0x1a0]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x1a0]
inc rax
mov qword [rsp + 0x1a0], rax
movsx eax, byte [rsp + 0x30]
cmp eax, 1
jne 0x180011d30
movzx eax, byte [rsp + 0x1b0]
test eax, eax
jne 0x180011d2b
cmp dword [0x1800fad70], 8
je 0x180011d2b
xor ecx, ecx
call fcn.18001a070
mov rcx, qword [rsp + 0x1a8]
mov qword [rcx], rax
jmp 0x180011f21
movsx eax, byte [rsp + 0x30]
cmp eax, 2
je 0x180011d48
movsx eax, byte [rsp + 0x30]
cmp eax, 3
jne 0x180011f21
mov rax, qword [rsp + 0x1a0]
movzx eax, word [rax]
mov dword [0x1800fb270], eax
mov rax, qword [rsp + 0x1a0]
add rax, 2
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x1a0]
add rax, 4
mov qword [rsp + 0x1a0], rax
mov eax, dword [rsp + 0x160]
add eax, 0x10000
mov eax, eax
mov ecx, eax
call fcn.18004a28c
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp eax, 1
je 0x180011e4b
mov eax, dword [rsp + 0x160]
add eax, 0x10000
mov dword [rsp + 0x150], eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x150]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1a0]
call fcn.180011930
mov qword [rsp + 0x1a0], rax
cmp qword [rsp + 0x1a0], 0
jne 0x180011e26
xor eax, eax
jmp 0x180011fe6
cmp dword [rsp + 0x150], 0
jne 0x180011e32
jmp 0x180011e4b
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x180011dcc
movzx eax, byte [0x1800c72d2]
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov r8d, 0x100
lea rdx, [rsp + 0x50]
lea rcx, [0x1800c92e8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x180011e8a
mov byte [rsp + 0x50], 0
jmp 0x180011ea9
movsx eax, byte [rsp + 0x50]
cmp eax, 0x30
je 0x180011e9d
movsx eax, byte [rsp + 0x50]
test eax, eax
jne 0x180011ea4
mov byte [rsp + 0x50], 0
jmp 0x180011ea9
mov byte [rsp + 0x50], 1
movsx eax, byte [rsp + 0x50]
test eax, eax
jne 0x180011f04
movzx eax, byte [rsp + 0x1b0]
test eax, eax
jne 0x180011f04
cmp dword [0x1800fad70], 8
je 0x180011f04
cmp dword [0x1800fad70], 9
je 0x180011f04
movsx eax, byte [rsp + 0x30]
cmp eax, 3
jne 0x180011ee4
mov byte [rsp + 0x178], 1
jmp 0x180011eec
mov byte [rsp + 0x178], 0
xor r8d, r8d
movzx edx, byte [rsp + 0x178]
mov rcx, qword [rsp + 0x158]
call fcn.180044970
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
call fcn.180058bf4
mov rax, qword [rsp + 0x1a0]
movsx eax, byte [rax]
test eax, eax
je 0x180011fcb
mov rax, qword [rsp + 0x1a0]
inc rax
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
add rax, 4
mov qword [rsp + 0x1a0], rax
xor eax, eax
cmp eax, 1
je 0x180011fc6
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x164], eax
mov rax, qword [rsp + 0x1a0]
add rax, 4
mov qword [rsp + 0x1a0], rax
mov eax, dword [rsp + 0x164]
btr eax, 0x1f
mov dword [rsp + 0x164], eax
cmp dword [rsp + 0x164], 0
je 0x180011fc2
mov eax, dword [rsp + 0x164]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1a0], rax
jmp 0x180011fc4
jmp 0x180011fc6
jmp 0x180011f5b
jmp 0x180011f21
mov rax, qword [rsp + 0x1a0]
inc rax
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180058210
add rsp, 0x190
pop rdi
ret