Function at 0x1400f6f60
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
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x2e0]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
call fcn.1400f7d10
movzx eax, al
test eax, eax
je 0x1400f725c
cmp dword [rsp + 0x50], 1
je 0x1400f7030
movzx eax, byte [rsp + 0x2d8]
test eax, eax
je 0x1400f7210
cmp dword [rsp + 0x50], 2
jne 0x1400f7210
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x90]
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x2d8]
test eax, eax
jne 0x1400f705e
mov eax, dword [rsp + 0x44]
cmp rax, 0x200
jbe 0x1400f7070
mov eax, dword [rsp + 0x44]
mov ecx, eax
call fcn.14022aeb8
mov qword [rsp + 0x48], rax
jmp 0x1400f7078
mov dword [rsp + 0x44], 0x200
mov eax, dword [rsp + 0x2e0]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
call fcn.1400f7d10
movzx eax, al
test eax, eax
je 0x1400f71e3
movzx eax, byte [rsp + 0x2d8]
test eax, eax
je 0x1400f7146
cmp dword [rsp + 0x50], 2
jne 0x1400f7146
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400f7146
mov eax, dword [rsp + 0x54]
shl rax, 1
mov rcx, rax
call fcn.14022aeb8
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x48]
call fcn.140229904
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x54]
shl rax, 1
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jbe 0x1400f71d1
mov eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx*2 - 2]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
test eax, eax
jne 0x1400f71ac
mov eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 2
div rcx
dec rax
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x2c8]
call fcn.140016460
jmp 0x1400f71cf
mov eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 2
div rcx
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x2c8]
call fcn.140016460
jmp 0x1400f71de
mov rcx, qword [rsp + 0x2c8]
call fcn.140016540
mov byte [rsp + 0x40], 1
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x90]
cmp qword [rsp + 0x48], rax
je 0x1400f720e
mov rcx, qword [rsp + 0x48]
call fcn.140229904
mov qword [rsp + 0x48], 0
jmp 0x1400f725c
cmp qword [rsp + 0x2d0], 0
je 0x1400f725c
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140048710
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140048710
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rdx, [0x14030ca00]
mov rcx, qword [rsp + 0x2d0]
call fcn.140043450
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x2a0
pop rdi
ret