Function at 0x1800f6150
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov r14, rcx
lea rcx, [rsp + 0x78]
call fcn.1800f5060
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800f62a6
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1800f61f0
jmp 0x1800f61df
jae 0x1800f6313
cmp r8, 0x201
jae 0x1800f61f0
mov esi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x1800f621f
sub r8, r12
sub rdi, r12
cmp rdi, r8
jb 0x1800f6285
cmp rbx, r14
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rsp + 0x50], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rsp + 0x20]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov r8d, ebp
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r15d, eax
test eax, eax
jne 0x1800f624c
call fcn.1801572a5
test eax, eax
jne 0x1800f632b
mov r8d, r15d
cmp rbp, r8
jne 0x1800f61d0
call fcn.1801572a5
cmp eax, 0x7a
jne 0x1800f6411
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1800f61df
jmp 0x1800f61f0
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.18016cce0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x48]
jmp 0x1800f61ff
mov rax, qword [rsp + 0x80]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1800f6309
test rcx, rcx
je 0x1800f6309
lea rsi, [rax - 1]
mov rbx, qword [rax - 1]
mov rdi, qword [rax + 7]
mov rcx, rbx
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1800f62f7
cmp qword [rdi + 0x10], 0x11
jb 0x1800f62e5
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov byte [r14 + 0x18], 2
jmp 0x1800f63fc
cmp rsi, r8
jb 0x1800f6411
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.1800f5690
jmp 0x1800f6342
call fcn.1801572a5
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x70], 2
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
test rbx, rbx
je 0x1800f6365
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp byte [rsp + 0x70], 2
jne 0x1800f63d2
mov byte [rsi + 0x18], 2
mov rax, qword [rsp + 0x58]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1800f63e3
test rcx, rcx
je 0x1800f63e3
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov rsi, qword [rax + 7]
mov rcx, rbx
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1800f63be
cmp qword [rsi + 0x10], 0x11
jb 0x1800f63ac
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1800f63e3
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r14, r14
je 0x1800f63fc
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, qword [rsp + 0x38]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2