Function at 0x18006ad50
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x180092040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov qword [rbp - 9], rdx
xor r15d, r15d
cmp qword [0x1800e0470], r15
jne 0x18006ad98
mov byte [0x1800e04b0], 1
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18006adc0
mov rdx, rax
lea rcx, [rbp + 0x1f]
call fcn.180004520
nop
mov r8d, 0x2e
lea rdx, str.DocumentsHuetaHackTheOutlastTrialsconfigs_
lea rcx, [rbp + 0x1f]
call fcn.18000b4e0
mov r8, rsi
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x59]
call fcn.18006d970
nop
mov r8d, 4
lea rdx, str..ini
mov rcx, rax
call fcn.18000b4e0
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x18006ae7e
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006ae79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006ae79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800715c0
movdqa xmm0, xmmword [0x180085960]
movdqu xmmword [rbp - 0x49], xmm0
mov byte [rbp - 0x59], 0
mov rdi, qword [rbp + 0xf]
lea rbx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rbx, qword [rbp - 1]
call fcn.180070d04
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.1800686b0
nop
lea rcx, [rbp - 0x39]
call fcn.180069fb0
movzx ebx, al
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x18006af0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006af08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006af08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800715c0
test bl, bl
jne 0x18006b01e
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x18006af50
inc rdx
mov rcx, qword [rbp - 1]
cmp rdx, 0x1000
mov rax, rcx
jb 0x18006af4b
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006b117
call fcn.1800715c0
mov byte [rbp - 1], 0
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], r15
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x18006af9b
inc rdx
mov rcx, qword [rbp + 0x1f]
cmp rdx, 0x1000
mov rax, rcx
jb 0x18006af96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006b275
call fcn.1800715c0
movdqa xmm0, xmmword [0x180085960]
movdqu xmmword [rbp + 0x2f], xmm0
mov byte [rbp + 0x1f], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x18006afe6
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x18006afe1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18006b27c
mov rcx, r8
call fcn.1800715c0
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1800715a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov qword [rbp - 0x19], r15
lea r8, [0x18007bfe4]
lea rcx, [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x18006b0d9
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18006b0ce
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x18006b0ce
jne 0x18006b07f
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18006b141
movsxd r14, eax
lea rcx, [r14 + 1]
lea rdx, [0x1800758e0]
call fcn.180071a9c
mov rdi, rax
test rax, rax
je 0x18006b0ce
mov byte [r14 + rax], 0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rbx
mov r8, r14
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r14
je 0x18006b11e
mov rcx, rdi
call fcn.1800715c0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x18006b227
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006b222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006b222
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8, rax
mov rdx, rdi
call fcn.18006edd0
mov ebx, eax
mov rcx, rdi
call fcn.1800715c0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
jne 0x18006b0d9
lea rdx, [0x1800e0470]
lea rcx, [0x1800e0710]
call fcn.1800099c0
lea rdx, [0x1800e0470]
lea rcx, [0x1800e0950]
call fcn.18000cb70
lea rdx, [0x1800e0470]
lea rcx, [0x1800e0b00]
call fcn.18000f760
lea rbx, [0x1800df628]
mov rdx, rbx
cmp qword [0x1800df640], 0xf
cmova rdx, qword [0x1800df628]
lea r8, str.FovChangerEnabled
lea rcx, [0x1800e0470]
call fcn.180004460
mov byte [0x1800df620], al
cmp qword [0x1800df640], 0xf
cmova rbx, qword [0x1800df628]
movsd xmm3, qword [0x180085768]
lea r8, str.NewFovValue
mov rdx, rbx
lea rcx, [0x1800e0470]
call fcn.1800021b0
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss dword [0x1800df624], xmm2
movss xmm1, dword [0x18008582c]
comiss xmm1, xmm2
jbe 0x18006b206
mov dword [0x1800df624], 0x42700000
jmp 0x18006af15
comiss xmm2, dword [0x18008585c]
jbe 0x18006af15
mov dword [0x1800df624], 0x43160000
jmp 0x18006af15
call fcn.1800715c0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x18006af9b
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006af96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006af96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3