Function at 0x14001e1a0
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 [0x1400a4650]
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.14000d3c0
nop
lea r8, str.TrainerSettings.ini
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.14001c9a0
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x14001e256
cmp qword [rbp - 0x10], 8
jb 0x14001e239
mov rcx, qword [rbp - 0x28]
call fcn.1400429c0
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140003a40
cmp qword [rbp - 0x50], 8
jb 0x14001e266
mov rcx, qword [rbp - 0x68]
call fcn.1400429c0
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 0x14001e292
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call fcn.1400445c8
mov ecx, 0x20
call fcn.140042a00
mov rdi, rax
mov qword [rsp + 0x20], rax
or rbx, 0xffffffffffffffff
test rax, rax
je 0x14001e2db
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r13
mov word [rax], r13w
lea rax, [rbp - 0x28]
cmp rdi, rax
je 0x14001e2d9
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140005d90
nop
jmp 0x14001e2de
mov rdi, r13
mov qword [rsi + 0xc0], rdi
mov ecx, 0x28
call fcn.140042a00
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001e36d
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.140006150
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 0x14001e368
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.140005d90
mov qword [rdi], r14
jmp 0x14001e370
mov rdi, r13
mov qword [rsi + 0xc8], rdi
test r12b, 1
je 0x14001e393
and r12d, 0xfffffffe
cmp qword [rsp + 0x50], 8
jb 0x14001e393
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
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 0x14001e641
lea rdx, [0x14008b9a8]
mov ecx, 2
call fcn.1400445fc
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], r13
mov byte [rbp - 0x48], 0
cmp byte [rax], 0
jne 0x14001e3db
mov r8, r13
jmp 0x14001e3ea
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14001e3e0
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005b30
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.140006f60
cmp rax, 0xffffffffffffffff
je 0x14001e473
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.Traditional
lea rcx, [rbp - 0x48]
call fcn.140006f60
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
cmp word [rdx], 0
jne 0x14001e464
mov rbx, r13
jmp 0x14001e46e
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14001e464
mov r8, rbx
jmp 0x14001e480
mov r8d, 7
lea rdx, str.English
lea rcx, [rsp + 0x58]
call fcn.140006150
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.140006150
mov rax, qword [rsi + 0xc8]
lea rcx, [rax + 8]
mov r9, qword [rax]
cmp qword [r9 + 0x18], 8
jb 0x14001e4cd
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 0x14001e4f9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rsp + 0x50], 8
jb 0x14001e511
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
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.140006150
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d790
nop
cmp qword [rsp + 0x50], 8
jb 0x14001e564
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
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.140006150
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d790
nop
cmp qword [rsp + 0x50], 8
jb 0x14001e5b7
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
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.140006150
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d790
nop
cmp qword [rsp + 0x50], 8
jb 0x14001e60b
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
nop
cmp qword [rsp + 0x70], 8
jb 0x14001e61d
mov rcx, qword [rsp + 0x58]
call fcn.1400429c0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rbp - 0x30], 0x10
jb 0x14001e641
mov rcx, qword [rbp - 0x48]
call fcn.1400429c0
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.140006150
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.140006150
nop
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 8]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d4c0
nop
cmp qword [rbp - 0x30], 8
jb 0x14001e6bf
mov rcx, qword [rbp - 0x48]
call fcn.1400429c0
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
cmp qword [rsp + 0x50], 8
jb 0x14001e6e2
mov rcx, qword [rsp + 0x38]
call fcn.1400429c0
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 0x14001e75e
mov rdi, r13
mov r14, rax
sub r14, r15
inc r14
shr r14, 1
cmp r15, rax
cmova r14, r13
test r14, r14
je 0x14001e75e
sub r15, rbx
movzx ecx, word [r15 + rbx]
call fcn.140043e6c
mov word [rbx], ax
add rbx, 2
inc rdi
cmp rdi, r14
jne 0x14001e745
mov r9d, 0xa
xor r8d, r8d
lea rdx, str.SIMPLIFIED
lea rcx, [rbp - 8]
call fcn.14000dce0
cmp rax, 0xffffffffffffffff
je 0x14001e782
mov edx, r13d
jmp 0x14001e7a7
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.TRADITIONAL
lea rcx, [rbp - 8]
call fcn.14000dce0
mov edx, r13d
cmp rax, 0xffffffffffffffff
sete dl
inc edx
mov rcx, rsi
call fcn.14001f3f0
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.140006150
nop
lea rdx, [rsp + 0x78]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d500
movzx ebx, al
cmp qword [rbp - 0x70], 8
jb 0x14001e7fe
mov rcx, qword [rsp + 0x78]
call fcn.1400429c0
test bl, bl
je 0x14001ea4d
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
xor r8d, r8d
lea rdx, [0x14008bba8]
lea rcx, [rsp + 0x58]
call fcn.140006150
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.140006150
lea rcx, [rbp - 0x68]
call fcn.14001c4b0
test eax, eax
je 0x14001e87a
mov r8d, 0xb
lea rdx, str.360Tray.exe
lea rcx, [rsp + 0x58]
call fcn.140006150
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.140006150
lea rcx, [rbp - 0x68]
call fcn.14001c4b0
test eax, eax
je 0x14001e8c5
mov r8d, 0xb
lea rdx, str.360Safe.exe
lea rcx, [rsp + 0x58]
call fcn.140006150
cmp qword [rsp + 0x68], 0
je 0x14001ea3b
lea r8, [rsp + 0x58]
lea rdx, [0x14008ea68]
lea rcx, [rbp + 0x78]
call fcn.140002d30
nop
lea r8, [0x14008ea50]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140002e60
nop
lea r8, [0x14008ea00]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140002e60
nop
lea r8, [0x14008e9b0]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.140002e60
nop
lea r8, [0x14008e960]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140002e60
nop
cmp qword [rbp + 0x70], 8
jb 0x14001e948
mov rcx, qword [rbp + 0x58]
call fcn.1400429c0
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], r13
mov word [rbp + 0x58], r13w
cmp qword [rbp + 0x50], 8
jb 0x14001e969
mov rcx, qword [rbp + 0x38]
call fcn.1400429c0
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
cmp qword [rbp - 0x50], 8
jb 0x14001e98a
mov rcx, qword [rbp - 0x68]
call fcn.1400429c0
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r13
mov word [rbp - 0x68], r13w
cmp qword [rbp + 0x90], 8
jb 0x14001e9ae
mov rcx, qword [rbp + 0x78]
call fcn.1400429c0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r9d, 4
lea r8, [0x14008ea88]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x14001ea29
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 0x14001e9fc
mov rcx, qword [rsp + 0x78]
call fcn.1400429c0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
cmp qword [rsp + 0x70], 8
jb 0x14001eb75
mov rcx, qword [rsp + 0x58]
call fcn.1400429c0
jmp 0x14001eb75
cmp qword [rbp - 0x70], 8
jb 0x14001ea3b
mov rcx, qword [rsp + 0x78]
call fcn.1400429c0
nop
cmp qword [rsp + 0x70], 8
jb 0x14001ea4d
mov rcx, qword [rsp + 0x58]
call fcn.1400429c0
lea rcx, [rsi + 0xd0]
call fcn.140014db0
lea r8, str.TrainerBGM.mid
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x78]
call fcn.14001c9a0
lea rbx, [rsi + 0x378]
mov rdx, rax
mov rcx, rbx
call fcn.14000cd50
cmp qword [rbp + 0x90], 8
jb 0x14001ea92
mov rcx, qword [rbp + 0x78]
call fcn.1400429c0
cmp qword [rbx + 0x18], 8
jb 0x14001ea9e
mov rcx, qword [rbx]
jmp 0x14001eaa1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001eaca
cmp qword [rbx + 0x18], 8
jb 0x14001eab6
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, [0x14008eab8]
mov ecx, 0xa7
call fcn.14000cfa0
cmp byte [rsi + 0x168], 0
jne 0x14001eb1f
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.140006150
nop
or r12d, 2
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x78]
mov rcx, qword [rsi + 0xc8]
call fcn.14001d500
test al, al
je 0x14001eb1f
mov bl, 1
jmp 0x14001eb21
xor bl, bl
test r12b, 2
je 0x14001eb38
cmp qword [rbp - 0x70], 8
jb 0x14001eb38
mov rcx, qword [rsp + 0x78]
call fcn.1400429c0
test bl, bl
je 0x14001eb46
mov dl, 1
mov rcx, rsi
call fcn.14001ec00
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 0x14001eb85
mov rcx, qword [rbp - 8]
call fcn.1400429c0
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
cmp qword [rbp + 0x30], 8
jb 0x14001eba6
mov rcx, qword [rbp + 0x18]
call fcn.1400429c0
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r13
mov word [rbp + 0x18], r13w
cmp qword [rbp - 0x10], 8
jb 0x14001ebc7
mov rcx, qword [rbp - 0x28]
call fcn.1400429c0
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1400429e0
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