Function at 0x140028620
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 [0x1400d6300]
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 0x1400286b0
movzx eax, byte [rsp + 0x1b0]
test eax, eax
jne 0x1400286ab
cmp dword [0x140108eb0], 8
je 0x1400286ab
xor ecx, ecx
call fcn.140031030
mov rcx, qword [rsp + 0x1a8]
mov qword [rcx], rax
jmp 0x1400288a1
movsx eax, byte [rsp + 0x30]
cmp eax, 2
je 0x1400286c8
movsx eax, byte [rsp + 0x30]
cmp eax, 3
jne 0x1400288a1
mov rax, qword [rsp + 0x1a0]
movzx eax, word [rax]
mov dword [0x1401093a0], 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.140061cac
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 0x1400287cb
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.1400282b0
mov qword [rsp + 0x1a0], rax
cmp qword [rsp + 0x1a0], 0
jne 0x1400287a6
xor eax, eax
jmp 0x140028966
cmp dword [rsp + 0x150], 0
jne 0x1400287b2
jmp 0x1400287cb
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x14002874c
movzx eax, byte [0x1400da645]
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, [0x1400da638]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14002880a
mov byte [rsp + 0x50], 0
jmp 0x140028829
movsx eax, byte [rsp + 0x50]
cmp eax, 0x30
je 0x14002881d
movsx eax, byte [rsp + 0x50]
test eax, eax
jne 0x140028824
mov byte [rsp + 0x50], 0
jmp 0x140028829
mov byte [rsp + 0x50], 1
movsx eax, byte [rsp + 0x50]
test eax, eax
jne 0x140028884
movzx eax, byte [rsp + 0x1b0]
test eax, eax
jne 0x140028884
cmp dword [0x140108eb0], 8
je 0x140028884
cmp dword [0x140108eb0], 9
je 0x140028884
movsx eax, byte [rsp + 0x30]
cmp eax, 3
jne 0x140028864
mov byte [rsp + 0x178], 1
jmp 0x14002886c
mov byte [rsp + 0x178], 0
xor r8d, r8d
movzx edx, byte [rsp + 0x178]
mov rcx, qword [rsp + 0x158]
call fcn.14005cb30
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
call fcn.140070e30
mov rax, qword [rsp + 0x1a0]
movsx eax, byte [rax]
test eax, eax
je 0x14002894b
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 0x140028946
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 0x140028942
mov eax, dword [rsp + 0x164]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1a0], rax
jmp 0x140028944
jmp 0x140028946
jmp 0x1400288db
jmp 0x1400288a1
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.14006fd00
add rsp, 0x190
pop rdi
ret