Function at 0x1400210e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bc080]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
lea rcx, [rbp - 0x58]
call fcn.14000f4f0
nop
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov dword [rsp + 0x30], 4
mov rdx, qword [rbp - 0x48]
add rdx, 0x14
lea rcx, [rsp + 0x48]
call fcn.1400014c0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
lea rcx, [rsp + 0x48]
call fcn.140001100
lea r8d, [r13 + 0x14]
lea rdx, str.TrainerSettings.ini
lea rcx, [rsp + 0x48]
call fcn.140001100
lea rcx, [rbp + 8]
call fcn.140002350
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x18], xmm1
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400211ec
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
call fcn.140069f40
mov ecx, 0x20
call fcn.1400442fc
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rax, [rbp + 8]
cmp rbx, rax
je 0x140021232
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x18]
mov rcx, rbx
call fcn.1400021c0
nop
mov qword [rdi + 0xc0], rbx
mov ecx, 0x28
call fcn.1400442fc
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r13w
mov r8d, 7
lea rdx, str.Trainer
lea rcx, [rbp - 0x78]
call fcn.1400021c0
nop
mov dword [rsp + 0x30], 1
mov rsi, qword [rdi + 0xc0]
lea rcx, [rbx + 8]
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea rax, [rbp - 0x78]
cmp rcx, rax
je 0x1400212b6
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
call fcn.1400021c0
mov qword [rbx], rsi
mov qword [rdi + 0xc8], rbx
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140021300
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400212fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223a5
call fcn.1400442f4
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12d, 8
mov qword [rsp + 0x30], r12
cmp eax, 0xffffffff
jne 0x1400216dc
lea rdx, [0x1400a1483]
lea ecx, [r12 - 6]
call fcn.14006a278
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140021353
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140001a40
nop
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
lea rcx, [rbp - 0x78]
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x60]
cmp r14, 0x10
cmovae rcx, rsi
mov qword [rsp + 0x20], 7
lea r9, str.Chinese
xor r8d, r8d
mov r15, qword [rbp - 0x68]
mov rdx, r15
call fcn.140001240
cmp rax, 0xffffffffffffffff
je 0x140021402
lea rcx, [rbp - 0x78]
cmp r14, 0x10
cmovae rcx, rsi
mov qword [rsp + 0x20], 0xb
lea r9, str.Traditional
xor r8d, r8d
mov rdx, r15
call fcn.140001240
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400213f3
mov r8, rbx
jmp 0x14002140f
mov r8d, 7
lea rdx, str.English
lea rcx, [rsp + 0x68]
call fcn.1400021c0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov r8, r12
lea rdx, str.Language
lea rcx, [rbp - 0x38]
call fcn.1400021c0
mov rcx, qword [rdi + 0xc8]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x140021451
mov r9, qword [r9]
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14002147d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400214c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400214be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223ab
call fcn.1400442f4
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov r8d, 0xa
lea rdx, str.ShowAVHint
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020420
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140021546
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021541
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223b1
call fcn.1400442f4
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov r8d, 0xb
lea rdx, str.OnLoadMusic
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020420
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400215c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400215c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223b7
call fcn.1400442f4
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov r8d, 0x11
lea rdx, str.IgnoreGameVersion
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020420
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002164d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223bd
call fcn.1400442f4
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14002168e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021689
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223c3
call fcn.1400442f4
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1400216dc
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400216d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223c9
call fcn.1400442f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], r13w
mov r8d, 7
lea rdx, str.ENGLISH
lea rcx, [rbp + 0x48]
call fcn.1400021c0
nop
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r13w
mov r8, r12
lea rdx, str.Language
lea rcx, [rbp + 0x28]
call fcn.1400021c0
nop
mov rcx, qword [rdi + 0xc8]
lea r8, [rcx + 8]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
lea rdx, [rbp - 0x18]
mov rcx, qword [rcx]
call fcn.14001ffb0
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x14002178e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021789
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223cf
call fcn.1400442f4
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r13w
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x1400217df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400217da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223d5
call fcn.1400442f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], r13w
lea r15, [rbp - 0x18]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp]
cmp r13, 8
cmovae r15, r12
lea rax, [rbp - 0x18]
cmovae rax, r12
mov rcx, qword [rbp - 8]
lea rcx, [rax + rcx*2]
lea rbx, [rbp - 0x18]
cmovae rbx, r12
xor eax, eax
mov esi, eax
mov r14, rcx
sub r14, rbx
inc r14
shr r14, 1
cmp rbx, rcx
cmova r14, rax
test r14, r14
je 0x140021861
sub r15, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
call fcn.14006925c
mov word [rbx + r15], ax
lea rbx, [rbx + 2]
inc rsi
cmp rsi, r14
jne 0x140021840
mov r13, qword [rbp]
mov r12, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
cmp r13, 8
cmovae rcx, r12
mov qword [rsp + 0x20], 0xa
lea r9, str.SIMPLIFIED
xor r8d, r8d
mov rbx, qword [rbp - 8]
mov rdx, rbx
call fcn.140001180
cmp rax, 0xffffffffffffffff
je 0x14002189a
xor r15d, r15d
mov edx, r15d
jmp 0x1400218d0
lea rcx, [rbp - 0x18]
cmp r13, 8
cmovae rcx, r12
mov qword [rsp + 0x20], 0xb
lea r9, str.TRADITIONAL
xor r8d, r8d
mov rdx, rbx
call fcn.140001180
xor r15d, r15d
mov edx, r15d
cmp rax, 0xffffffffffffffff
sete dl
inc edx
mov rcx, rdi
call fcn.140022dd0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0xa
lea rdx, str.ShowAVHint
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020180
movzx ebx, al
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002195a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021955
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223db
call fcn.1400442f4
test bl, bl
je 0x140021e5e
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r15w
xor r8d, r8d
lea rdx, [0x1400a12c0]
lea rcx, [rsp + 0x68]
call fcn.1400021c0
nop
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0xb
lea rdx, str.360Tray.exe
lea rcx, [rsp + 0x48]
call fcn.1400021c0
lea rcx, [rsp + 0x48]
call fcn.14001ec00
test eax, eax
je 0x1400219da
mov r8d, 0xb
lea rdx, str.360Tray.exe
lea rcx, [rsp + 0x68]
call fcn.1400021c0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0xb
lea rdx, str.360Safe.exe
lea rcx, [rsp + 0x48]
call fcn.1400021c0
lea rcx, [rsp + 0x48]
call fcn.14001ec00
test eax, eax
je 0x140021a2a
mov r8d, 0xb
lea rdx, str.360Safe.exe
lea rcx, [rsp + 0x68]
call fcn.1400021c0
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140021e1d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov dword [rsp + 0x30], 0x18
lea rdx, [rbx + 0xf]
lea rcx, [rsp + 0x48]
call fcn.1400014c0
mov r8d, 0xf
lea rdx, [0x1400a5af8]
lea rcx, [rsp + 0x48]
call fcn.140001100
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r8, rbx
lea rcx, [rsp + 0x48]
call fcn.140001100
mov r8d, 9
lea rdx, [0x1400a5ae0]
lea rcx, [rsp + 0x48]
call fcn.140001100
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov dword [rsp + 0x30], 0x38
mov r8d, 0x25
lea rdx, [0x1400a5a90]
lea rcx, [rbp - 0x38]
call fcn.140001100
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x98], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov dword [rsp + 0x30], 0x78
mov r8d, 0x22
lea rdx, [0x1400a5a40]
lea rcx, [rbp + 0x88]
call fcn.140001100
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov dword [rsp + 0x30], 0xf8
mov r8d, 0x23
lea rdx, [0x1400a59f0]
lea rcx, [rbp + 0x68]
call fcn.140001100
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x140021bf0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021beb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223e1
call fcn.1400442f4
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r15w
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140021c4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021c45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223e7
call fcn.1400442f4
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140021ca4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021c9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223ed
call fcn.1400442f4
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov r12d, 0x1e8
mov qword [rsp + 0x30], r12
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140021d02
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021cfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223f3
call fcn.1400442f4
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
mov r9d, 4
lea r8, [0x1400a5b18]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x140021ddc
xor r9d, r9d
xor r8d, r8d
lea edx, [rax - 5]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140021d81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021d7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223f9
call fcn.1400442f4
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r15w
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14002228b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021dd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400223ff
call fcn.1400442f4
jmp 0x14002228b
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140021e1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021e17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022405
call fcn.1400442f4
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140021e5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021e59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002240b
call fcn.1400442f4
mov r14, qword [rsp + 0x30]
mov esi, r14d
lea rcx, [rdi + 0xe0]
call fcn.14001e7d0
test eax, eax
setne dl
mov byte [rdi + 0x168], dl
test eax, eax
je 0x140021e9b
cmp qword [rdi + 0x128], 0x10000
jae 0x140021e9b
lea rcx, [rdi + 0xe0]
call fcn.14001eb60
nop
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r15w
bts r14d, 9
mov dword [rsp + 0x30], r14d
mov rdx, qword [rbp - 0x48]
add rdx, 0xf
lea rcx, [rsp + 0x68]
call fcn.1400014c0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
lea rcx, [rsp + 0x68]
call fcn.140001100
mov r8d, 0xf
lea rdx, str.TrainerBGM.mid
lea rcx, [rsp + 0x68]
call fcn.140001100
lea rbx, [rdi + 0x3c8]
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x140021f3d
mov rcx, rbx
call fcn.140002350
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsp + 0x78], r15
mov eax, 7
mov qword [rbp - 0x80], rax
mov word [rsp + 0x68], r15w
jmp 0x140021f41
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x140021f7e
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022411
call fcn.1400442f4
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140021f8b
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140021fb4
cmp qword [rbx + 0x18], 8
jb 0x140021fa0
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, [0x1400a5b48]
mov ecx, 0xa7
call fcn.14000f090
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0x12
lea rdx, str.TrainerErrorStatus
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020530
mov ebx, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140022035
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022417
call fcn.1400442f4
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
lea rcx, [rsp + 0x48]
test ebx, ebx
jle 0x1400220c1
mov r8d, 0xb
lea rdx, str.OnLoadMusic
call fcn.1400021c0
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020420
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002212c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022127
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002239f
jmp 0x140022127
mov r8d, 0x12
lea rdx, str.TrainerErrorStatus
call fcn.1400021c0
nop
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.1400206e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002212c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022127
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002241d
call fcn.1400442f4
cmp byte [rdi + 0x168], 0
jne 0x140022181
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0xb
lea rdx, str.OnLoadMusic
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
or esi, 2
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.140020180
test al, al
je 0x140022181
mov bl, 1
jmp 0x140022183
xor bl, bl
test sil, 2
je 0x1400221cb
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400221cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400221c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022423
call fcn.1400442f4
test bl, bl
je 0x1400221d9
mov dl, 1
mov rcx, rdi
call fcn.140022440
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 0x12
lea rdx, str.TrainerErrorStatus
lea rcx, [rsp + 0x48]
call fcn.1400021c0
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0xc8]
call fcn.1400206e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002225c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022257
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022429
call fcn.1400442f4
xor r9d, r9d
mov edx, 0x2710
lea r8d, [r9 + 0xa]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetTimer]
xor r9d, r9d
mov edx, 0x2711
mov r8d, 0xc8
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetTimer]
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x1400222cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400222c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002242f
call fcn.1400442f4
mov qword [rbp - 8], r15
mov qword [rbp], 7
mov word [rbp - 0x18], r15w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14002231c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022317
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022435
call fcn.1400442f4
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140022369
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022364
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022399
call fcn.1400442f4
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.1400442d0
lea r11, [rsp + 0x1b0]
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
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
int3
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
int3
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
int3
call fcn.14006583c
nop
call fcn.14006583c
nop
call fcn.14006583c
int3