Function at 0x18006ad90
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x1800ac028]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [0x1800ad688], 0x10
lea rdx, [0x1800ad670]
mov qword [r11 + 8], rsi
lea r8, [0x180098450]
cmovae rdx, qword [0x1800ad670]
lea rcx, [rbp - 0x19]
mov qword [r11 + 0x18], r15
xor r15d, r15d
mov qword [rbp - 0x19], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rsi, qword [rbp - 0x19]
lea edi, [r15 + 1]
test rsi, rsi
je 0x18006ae87
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18006ae7d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cmp eax, edi
jl 0x18006ae7d
mov qword [rsp + 0xf8], r14
lea rdx, [0x1800749f0]
movsxd r14, eax
lea rcx, [r14 + 1]
call fcn.180071480
mov rbx, rax
test rax, rax
je 0x18006ae75
xor r8d, r8d
mov byte [r14 + rax], r15b
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, r14
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r14
jne 0x18006ae6d
mov r8, rax
mov rdx, rbx
call fcn.18006cd10
mov rcx, rbx
call fcn.180070c84
mov r14, qword [rsp + 0xf8]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rsi, str.General
xor r9d, r9d
mov rdx, rsi
lea r8, str.Autosave
call fcn.18006b8e0
xor r9d, r9d
mov byte [0x1800ad5d2], al
lea r8, str.SaveOnDefault
mov rdx, rsi
call fcn.18006b8e0
movzx r9d, dil
mov byte [0x1800ad317], al
lea r8, str.ShowAllMods
mov rdx, rsi
call fcn.18006b8e0
xor r9d, r9d
mov byte [0x1800ad5d1], al
lea r8, str.DebugState
mov rdx, rsi
call fcn.18006b8e0
xor r9d, r9d
mov byte [0x1800ad5d0], al
lea r8, str.FontScale
mov rdx, rsi
call fcn.18006b780
mov r8, rax
test rax, rax
je 0x18006af7e
cmp word [rax], r15w
je 0x18006af7e
movzx eax, byte [0x1800ad660]
xorps xmm0, xmm0
neg al
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
lea rax, [rbp - 9]
sbb ecx, ecx
mov dword [rsp + 0x28], 0x40
xor edx, edx
mov qword [rsp + 0x20], rax
and ecx, 0xfde9
movups xmmword [rbp - 9], xmm0
lea r9d, [rdx - 1]
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x18006af7e
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x19], r15
lea rcx, [rbp - 9]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x18006af7e
cmp byte [rax], r15b
je 0x18006af86
movsd xmm0, qword [0x18009d2d8]
cvtsd2ss xmm0, xmm0
xor r9d, r9d
lea r8, str.LogLimit
mov rdx, rsi
movss dword [0x1800ad5d4], xmm0
call fcn.18006b780
test rax, rax
je 0x18006b05e
cmp word [rax], r15w
je 0x18006b05e
movzx ecx, byte [0x1800ad660]
lea rdx, [rbp - 9]
xorps xmm0, xmm0
mov qword [rsp + 0x38], r15
neg cl
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x40
mov r9d, 0xffffffff
sbb ecx, ecx
mov qword [rsp + 0x20], rdx
and ecx, 0xfde9
mov r8, rax
xor edx, edx
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x18006b05e
cmp byte [rbp - 9], 0x30
lea rax, [rbp - 9]
mov qword [rbp - 0x19], rax
jne 0x18006b035
movzx eax, byte [rbp - 8]
sub al, 0x58
test al, 0xdf
jne 0x18006b035
cmp byte [rbp - 7], r15b
je 0x18006b05e
mov r8d, 0x10
lea rcx, [rbp - 7]
jmp 0x18006b03f
mov r8d, 0xa
lea rcx, [rbp - 9]
lea rdx, [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov edx, eax
mov ecx, 5
mov rax, qword [rbp - 0x19]
cmp byte [rax], r15b
cmovne edx, ecx
mov ecx, edx
jmp 0x18006b063
mov ecx, 5
mov rax, qword [0x1800ad300]
lea r8, [rbp - 0x49]
movss xmm0, dword [0x1800ad5d4]
lea rdx, [rbp - 0x31]
mov dword [0x1800ad5d8], ecx
lea rcx, [0x1800ad640]
mov qword [rbp - 0x49], rsi
movss dword [rax + 0x40], xmm0
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], r15d
call fcn.18006da70
mov rbx, qword [rbp - 0x21]
cmp byte [rbx + 0x19], r15b
jne 0x18006b0c1
lea r8, [rbx + 0x20]
lea rdx, [rbp - 0x49]
call fcn.18006ddd0
test al, al
jne 0x18006b0c1
mov rax, qword [0x1800ad640]
jmp 0x18006b0cb
mov rax, qword [0x1800ad640]
mov rbx, rax
cmp rbx, rax
jne 0x18006b0d9
lea rcx, str.581_0_0
jmp 0x18006b116
lea rax, str.MenuKey
mov qword [rbp - 0x19], r15
lea r8, [rbp - 0x49]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x41], r15
lea rcx, [rbx + 0x38]
mov dword [rbp - 0x39], r15d
call fcn.18006c180
mov rax, qword [rbp - 0x19]
lea rcx, str.581_0_0
cmp rax, qword [rbx + 0x38]
je 0x18006b116
mov rcx, qword [rax + 0x38]
call fcn.180046fc0
lea rdx, [0x1800484f0]
lea rcx, [rax + 0x30]
call fcn.18006be70
lea r8, [rbp - 0x49]
mov qword [rbp - 0x49], rsi
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x41], r15
lea rcx, [0x1800ad640]
mov dword [rbp - 0x39], r15d
call fcn.18006da70
mov rbx, qword [rbp - 0x21]
mov rsi, qword [rsp + 0xf0]
cmp byte [rbx + 0x19], r15b
jne 0x18006b177
lea r8, [rbx + 0x20]
lea rdx, [rbp - 0x49]
call fcn.18006ddd0
test al, al
jne 0x18006b177
mov rax, qword [0x1800ad640]
jmp 0x18006b181
mov rax, qword [0x1800ad640]
mov rbx, rax
cmp rbx, rax
jne 0x18006b18f
lea rcx, str.594_0_0
jmp 0x18006b1cc
lea rax, str.LogKey
mov qword [rbp - 0x19], r15
lea r8, [rbp - 0x49]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x41], r15
lea rcx, [rbx + 0x38]
mov dword [rbp - 0x39], r15d
call fcn.18006c180
mov rax, qword [rbp - 0x19]
lea rcx, str.594_0_0
cmp rax, qword [rbx + 0x38]
je 0x18006b1cc
mov rcx, qword [rax + 0x38]
call fcn.180046fc0
lea rdx, [0x180048520]
lea rcx, [rax + 0x30]
call fcn.18006be70
mov ecx, 0x130
call fcn.180070c40
xor edx, edx
mov qword [rbp - 0x19], rax
mov r8d, 0x130
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx], r15b
mov dword [rbx + 4], r15d
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov qword [rbx + 8], 0x20e
mov qword [rbx + 0x68], r15
mov qword [rbx + 0xa8], r15
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0x128], r15
mov rdx, qword [0x1800ad708]
cmp rdx, qword [0x1800ad710]
mov r15, qword [rsp + 0x100]
mov qword [rbp - 0x19], rbx
je 0x18006b26d
mov qword [rdx], rbx
mov rcx, qword [0x1800ad708]
add rcx, 8
mov qword [0x1800ad708], rcx
jmp 0x18006b284
lea r8, [rbp - 0x19]
lea rcx, [0x1800ad700]
call fcn.180047ee0
mov rcx, qword [0x1800ad708]
mov rcx, qword [rcx - 8]
lea rdx, [0x180048530]
add rcx, 0x30
call fcn.18006be70
mov rax, qword [0x1800ad6b0]
mov rdx, qword [0x1800ad6a8]
sub rax, rdx
sar rax, 3
cmp rax, rdi
jbe 0x18006b312
mov ebx, 8
nop word [rax + rax]
mov r8, qword [rbx + rdx]
add r8, 0x18
cmp qword [r8 + 0x18], 8
jb 0x18006b2d2
mov r8, qword [r8]
mov r9b, 1
lea rdx, str.Plugins
call fcn.18006b8e0
mov rcx, qword [0x1800ad6a8]
inc edi
mov rdx, qword [rbx + rcx]
add rbx, 8
mov byte [rdx + 8], al
mov rcx, qword [0x1800ad6b0]
mov rdx, qword [0x1800ad6a8]
sub rcx, rdx
movsxd rax, edi
sar rcx, 3
cmp rax, rcx
jb 0x18006b2c0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180070c20
add rsp, 0xd0
pop rdi
pop rbx
pop rbp
ret