Function at 0x14001aba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f650]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rsi, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x20], r13d
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
lea rcx, [rbp + 0x18]
call fcn.14000cb10
nop
lea r8, str.TrainerSettings.ini
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.1400193a0
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x14001ac56
cmp qword [rbp - 0x10], 8
jb 0x14001ac39
mov rcx, qword [rbp - 0x28]
call fcn.14003f3c4
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140003a70
cmp qword [rbp - 0x50], 8
jb 0x14001ac66
mov rcx, qword [rbp - 0x68]
call fcn.14003f3c4
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001ac92
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call fcn.140040fc8
mov ecx, 0x20
call fcn.14003f400
mov rdi, rax
mov qword [rsp + 0x20], rax
or rbx, 0xffffffffffffffff
test rax, rax
je 0x14001acdb
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r13
mov word [rax], r13w
lea rax, [rbp - 0x28]
cmp rdi, rax
je 0x14001acd9
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140005d30
nop
jmp 0x14001acde
mov rdi, r13
mov qword [rsi + 0xc0], rdi
mov ecx, 0x28
call fcn.14003f400
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001ad6d
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 7
lea rdx, str.Trainer
lea rcx, [rsp + 0x38]
call fcn.1400060f0
nop
mov r12d, 1
mov dword [rsp + 0x20], r12d
mov r14, qword [rsi + 0xc0]
lea rcx, [rdi + 8]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14001ad68
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.140005d30
mov qword [rdi], r14
jmp 0x14001ad70
mov rdi, r13
mov qword [rsi + 0xc8], rdi
test r12b, 1
je 0x14001ad93
and r12d, 0xfffffffe
cmp qword [rsp + 0x50], 8
jb 0x14001ad93
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001b041
lea rdx, [0x140088980]
mov ecx, 2
call fcn.140040ffc
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], r13
mov byte [rbp - 0x48], 0
cmp byte [rax], 0
jne 0x14001addb
mov r8, r13
jmp 0x14001adea
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14001ade0
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005b10
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
mov r9d, 7
xor r8d, r8d
lea rdx, str.Chinese
lea rcx, [rbp - 0x48]
call fcn.1400016e0
cmp rax, 0xffffffffffffffff
je 0x14001ae73
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.Traditional
lea rcx, [rbp - 0x48]
call fcn.1400016e0
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
cmp word [rdx], 0
jne 0x14001ae64
mov rbx, r13
jmp 0x14001ae6e
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14001ae64
mov r8, rbx
jmp 0x14001ae80
mov r8d, 7
lea rdx, str.English
lea rcx, [rsp + 0x58]
call fcn.1400060f0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rsp + 0x38]
call fcn.1400060f0
mov rax, qword [rsi + 0xc8]
lea rcx, [rax + 8]
mov r9, qword [rax]
cmp qword [r9 + 0x18], 8
jb 0x14001aecd
mov r9, qword [r9]
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x14001aef9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rsp + 0x50], 8
jb 0x14001af11
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 0xa
lea rdx, str.ShowAVHint
lea rcx, [rsp + 0x38]
call fcn.1400060f0
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001a190
nop
cmp qword [rsp + 0x50], 8
jb 0x14001af64
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 0xb
lea rdx, str.OnLoadMusic
lea rcx, [rsp + 0x38]
call fcn.1400060f0
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001a190
nop
cmp qword [rsp + 0x50], 8
jb 0x14001afb7
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 0x11
lea rdx, str.IgnoreGameVersion
lea rcx, [rsp + 0x38]
call fcn.1400060f0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001a190
nop
cmp qword [rsp + 0x50], 8
jb 0x14001b00b
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
nop
cmp qword [rsp + 0x70], 8
jb 0x14001b01d
mov rcx, qword [rsp + 0x58]
call fcn.14003f3c4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rbp - 0x30], 0x10
jb 0x14001b041
mov rcx, qword [rbp - 0x48]
call fcn.14003f3c4
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov r8d, 7
lea rdx, str.ENGLISH
lea rcx, [rsp + 0x38]
call fcn.1400060f0
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x48]
call fcn.1400060f0
nop
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 8]
mov rcx, qword [rsi + 0xc8]
call fcn.140019ec0
nop
cmp qword [rbp - 0x30], 8
jb 0x14001b0bf
mov rcx, qword [rbp - 0x48]
call fcn.14003f3c4
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
cmp qword [rsp + 0x50], 8
jb 0x14001b0e2
mov rcx, qword [rsp + 0x38]
call fcn.14003f3c4
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
lea rbx, [rbp - 8]
mov r8, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
cmovae rbx, r8
lea rcx, [rbp - 8]
cmovae rcx, r8
mov rax, qword [rbp + 8]
lea rax, [rcx + rax*2]
lea r15, [rbp - 8]
cmovae r15, r8
cmp r15, rax
je 0x14001b15e
mov rdi, r13
mov r14, rax
sub r14, r15
inc r14
shr r14, 1
cmp r15, rax
cmova r14, r13
test r14, r14
je 0x14001b15e
sub r15, rbx
movzx ecx, word [r15 + rbx]
call fcn.14004086c
mov word [rbx], ax
add rbx, 2
inc rdi
cmp rdi, r14
jne 0x14001b145
mov r9d, 0xa
xor r8d, r8d
lea rdx, str.SIMPLIFIED
lea rcx, [rbp - 8]
call fcn.14000d8e0
cmp rax, 0xffffffffffffffff
je 0x14001b182
mov edx, r13d
jmp 0x14001b1a7
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.TRADITIONAL
lea rcx, [rbp - 8]
call fcn.14000d8e0
mov edx, r13d
cmp rax, 0xffffffffffffffff
sete dl
inc edx
mov rcx, rsi
call fcn.14001bdf0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
mov r8d, 0xa
lea rdx, str.ShowAVHint
lea rcx, [rsp + 0x78]
call fcn.1400060f0
nop
lea rdx, [rsp + 0x78]
mov rcx, qword [rsi + 0xc8]
call fcn.140019f00
movzx ebx, al
cmp qword [rbp - 0x70], 8
jb 0x14001b1fe
mov rcx, qword [rsp + 0x78]
call fcn.14003f3c4
test bl, bl
je 0x14001b44d
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
xor r8d, r8d
lea rdx, [0x140088b80]
lea rcx, [rsp + 0x58]
call fcn.1400060f0
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
mov r8d, 0xb
lea rdx, str.360Tray.exe
lea rcx, [rbp - 0x68]
call fcn.1400060f0
lea rcx, [rbp - 0x68]
call fcn.140018eb0
test eax, eax
je 0x14001b27a
mov r8d, 0xb
lea rdx, str.360Tray.exe
lea rcx, [rsp + 0x58]
call fcn.1400060f0
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
mov r8d, 0xb
lea rdx, str.360Safe.exe
lea rcx, [rbp - 0x68]
call fcn.1400060f0
lea rcx, [rbp - 0x68]
call fcn.140018eb0
test eax, eax
je 0x14001b2c5
mov r8d, 0xb
lea rdx, str.360Safe.exe
lea rcx, [rsp + 0x58]
call fcn.1400060f0
cmp qword [rsp + 0x68], 0
je 0x14001b43b
lea r8, [rsp + 0x58]
lea rdx, [0x14008b3a8]
lea rcx, [rbp + 0x78]
call fcn.1400031a0
nop
lea r8, [0x14008b390]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400032d0
nop
lea r8, [0x14008b340]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1400032d0
nop
lea r8, [0x14008b2f0]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400032d0
nop
lea r8, [0x14008b2a0]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400032d0
nop
cmp qword [rbp + 0x70], 8
jb 0x14001b348
mov rcx, qword [rbp + 0x58]
call fcn.14003f3c4
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], r13
mov word [rbp + 0x58], r13w
cmp qword [rbp + 0x50], 8
jb 0x14001b369
mov rcx, qword [rbp + 0x38]
call fcn.14003f3c4
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
cmp qword [rbp - 0x50], 8
jb 0x14001b38a
mov rcx, qword [rbp - 0x68]
call fcn.14003f3c4
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
cmp qword [rbp + 0x90], 8
jb 0x14001b3ae
mov rcx, qword [rbp + 0x78]
call fcn.14003f3c4
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r9d, 4
lea r8, [0x14008b3c8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x14001b429
xor r9d, r9d
xor r8d, r8d
lea edx, [rax - 5]
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [rbp - 0x70], 8
jb 0x14001b3fc
mov rcx, qword [rsp + 0x78]
call fcn.14003f3c4
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
cmp qword [rsp + 0x70], 8
jb 0x14001b575
mov rcx, qword [rsp + 0x58]
call fcn.14003f3c4
jmp 0x14001b575
cmp qword [rbp - 0x70], 8
jb 0x14001b43b
mov rcx, qword [rsp + 0x78]
call fcn.14003f3c4
nop
cmp qword [rsp + 0x70], 8
jb 0x14001b44d
mov rcx, qword [rsp + 0x58]
call fcn.14003f3c4
lea rcx, [rsi + 0xd0]
call fcn.140011f70
lea r8, str.TrainerBGM.mid
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x78]
call fcn.1400193a0
lea rbx, [rsi + 0x378]
mov rdx, rax
mov rcx, rbx
call fcn.14000dac0
cmp qword [rbp + 0x90], 8
jb 0x14001b492
mov rcx, qword [rbp + 0x78]
call fcn.14003f3c4
cmp qword [rbx + 0x18], 8
jb 0x14001b49e
mov rcx, qword [rbx]
jmp 0x14001b4a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001b4ca
cmp qword [rbx + 0x18], 8
jb 0x14001b4b6
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, [0x14008b3f8]
mov ecx, 0xa7
call fcn.14000c870
cmp byte [rsi + 0x168], 0
jne 0x14001b51f
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
mov r8d, 0xb
lea rdx, str.OnLoadMusic
lea rcx, [rsp + 0x78]
call fcn.1400060f0
nop
or r12d, 2
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x78]
mov rcx, qword [rsi + 0xc8]
call fcn.140019f00
test al, al
je 0x14001b51f
mov bl, 1
jmp 0x14001b521
xor bl, bl
test r12b, 2
je 0x14001b538
cmp qword [rbp - 0x70], 8
jb 0x14001b538
mov rcx, qword [rsp + 0x78]
call fcn.14003f3c4
test bl, bl
je 0x14001b546
mov dl, 1
mov rcx, rsi
call fcn.14001b600
xor r9d, r9d
mov edx, 0x2710
lea r8d, [r9 + 0xa]
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.USER32.dll_SetTimer]
xor r9d, r9d
mov edx, 0x2711
mov r8d, 0xc8
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.USER32.dll_SetTimer]
nop
cmp qword [rbp + 0x10], 8
jb 0x14001b585
mov rcx, qword [rbp - 8]
call fcn.14003f3c4
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
cmp qword [rbp + 0x30], 8
jb 0x14001b5a6
mov rcx, qword [rbp + 0x18]
call fcn.14003f3c4
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
cmp qword [rbp - 0x10], 8
jb 0x14001b5c7
mov rcx, qword [rbp - 0x28]
call fcn.14003f3c4
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.14003f3e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret