Function at 0x14000f320
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ab088]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
lea rcx, [rbp + 0xf]
call fcn.140015b80
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov dword [rsp + 0x30], 1
mov rdx, qword [rbp + 0x1f]
add rdx, 0x14
lea rcx, [rbp - 0x71]
call fcn.140002e00
lea r9, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae r9, qword [rbp + 0xf]
mov rdi, qword [rbp + 0x1f]
mov rsi, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x14000f3f3
lea rax, [rsi + rdi]
mov qword [rbp - 0x61], rax
lea rbx, [rbp - 0x71]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x71]
lea r8, [rdi + rdi]
lea rcx, [rbx + rsi*2]
mov rdx, r9
call fcn.1400535c0
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r13w
jmp 0x14000f404
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.1400030c0
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x14000f44a
lea rdi, [rcx + 0x14]
mov qword [rbp - 0x61], rdi
lea rbx, [rbp - 0x71]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x71]
lea rcx, [rbx + rcx*2]
mov r8d, 0x28
lea rdx, str.TrainerSettings.ini
call fcn.1400535c0
mov word [rbx + rdi*2], r13w
jmp 0x14000f468
mov qword [rsp + 0x20], 0x14
lea r9, str.TrainerSettings.ini
mov edx, 0x14
lea rcx, [rbp - 0x71]
call fcn.1400030c0
lea r15, [r14 + 0x4b8]
lea rax, [rbp - 0x71]
cmp r15, rax
je 0x14000f4a5
mov rcx, r15
call fcn.140001f20
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x10], xmm1
mov qword [rbp - 0x61], r13
mov eax, 7
mov qword [rbp - 0x59], rax
mov word [rbp - 0x71], r13w
jmp 0x14000f4a9
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000f4e5
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f4e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcca
call fcn.140034f54
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000f511
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14005c4f8
mov ecx, 0x20
call fcn.140034f5c
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
cmp rax, r15
je 0x14000f552
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000f545
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.1400021b0
nop
lea rdi, [r14 + 0x5c8]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000f570
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000f578
jmp 0x14000f573
mov rdx, rbx
call fcn.140012cf0
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.140034f5c
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov r8d, 7
lea rdx, str.Trainer
lea rcx, [rbp - 0x71]
call fcn.1400021b0
nop
mov dword [rsp + 0x30], 6
lea rcx, [rbx + 8]
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea rax, [rbp - 0x71]
cmp rcx, rax
je 0x14000f5f1
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.1400021b0
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000f634
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f62f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcd0
call fcn.140034f54
lea rdi, [r14 + 0x5d0]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000f652
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000f65a
jmp 0x14000f655
mov rdx, rbx
call fcn.140012c70
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000f667
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000f899
lea rdx, [0x14008f71e]
lea ecx, [r12 + 3]
call fcn.14005c800
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x14000f6a1
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140002360
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea rcx, [rbp - 0x31]
mov rbx, qword [rbp - 0x31]
mov rsi, qword [rbp - 0x19]
cmp rsi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 7
lea r9, str.Chinese
xor r8d, r8d
mov r14, qword [rbp - 0x21]
mov rdx, r14
call fcn.1400027f0
cmp rax, 0xffffffffffffffff
je 0x14000f74f
lea rcx, [rbp - 0x31]
cmp rsi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 0xb
lea r9, str.Traditional
xor r8d, r8d
mov rdx, r14
call fcn.1400027f0
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
mov r8, r12
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000f742
jmp 0x14000f75c
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.1400021b0
mov qword [rbp - 1], r13
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x11]
call fcn.1400021b0
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000f79c
mov r9, qword [r9]
lea r8, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae r8, qword [rbp - 0x71]
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14000f7c6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000f80d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcd6
call fcn.140034f54
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000f84d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f848
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcdc
call fcn.140034f54
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000f899
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f894
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fce2
call fcn.140034f54
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov r8d, 7
lea rdx, str.ENGLISH
lea rcx, [rbp - 0x71]
call fcn.1400021b0
nop
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x31]
call fcn.1400021b0
nop
mov rcx, qword [rdi]
lea r8, [rcx + 8]
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x51]
mov rcx, qword [rcx]
call fcn.14000df70
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000f94a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f945
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fce8
call fcn.140034f54
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000f99b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f996
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcee
call fcn.140034f54
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea rsi, [rbp - 0x51]
mov r13, qword [rbp - 0x51]
mov r8, qword [rbp - 0x39]
cmp r8, 8
cmovae rsi, r13
lea rax, [rbp - 0x51]
cmovae rax, r13
mov r11, qword [rbp - 0x41]
lea rcx, [rax + r11*2]
lea rbx, [rbp - 0x51]
cmovae rbx, r13
xor eax, eax
mov edi, eax
mov r14, rcx
sub r14, rbx
inc r14
shr r14, 1
cmp rbx, rcx
cmova r14, rax
test r14, r14
je 0x14000fa1b
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.14005ba6c
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x14000f9f7
mov r11, qword [rbp - 0x41]
mov r13, qword [rbp - 0x51]
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xa
jb 0x14000faab
lea rbx, [r11 - 9]
lea rbx, [r10 + rbx*2]
mov rax, r10
nop dword [rax + rax]
mov rdx, rbx
sub rdx, rax
sar rdx, 1
je 0x14000faa7
movzx ecx, word [rax]
cmp cx, 0x53
je 0x14000fa5e
add rax, 2
sub rdx, 1
jmp 0x14000fa49
test rax, rax
je 0x14000faa7
mov r9d, 0xa
lea rdx, str.SIMPLIFIED
mov r8, rax
cmp cx, word [rdx]
jne 0x14000fa8c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000fa92
movzx ecx, word [r8]
jmp 0x14000fa73
add rax, 2
jmp 0x14000fa40
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000faa7
xor esi, esi
mov ebx, esi
jmp 0x14000fb3a
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xb
jb 0x14000fb2a
add r11, 0xfffffffffffffff6
lea r11, [r10 + r11*2]
mov rax, r10
nop dword [rax + rax]
mov rdx, r11
sub rdx, rax
sar rdx, 1
je 0x14000fb2a
movzx ecx, word [rax]
cmp cx, 0x54
je 0x14000faee
add rax, 2
sub rdx, 1
jmp 0x14000fad9
test rax, rax
je 0x14000fb2a
mov r9d, 0xb
lea rdx, str.TRADITIONAL
mov r8, rax
cmp cx, word [rdx]
jne 0x14000fb1c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000fb22
movzx ecx, word [r8]
jmp 0x14000fb03
add rax, 2
jmp 0x14000fad0
sub rax, r10
sar rax, 1
jmp 0x14000fb2d
mov rax, r12
xor esi, esi
mov ebx, esi
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.14000b100
lea r14, [0x1400b0c70]
mov qword [rbp - 0x79], r14
mov rcx, r14
call fcn.140033b0c
test eax, eax
je 0x14000fb60
mov ecx, eax
call fcn.1400335c8
nop
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [r15 + 0x18], 8
jb 0x14000fbbd
mov r15, qword [r15]
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 7
mov word [rbp - 0x11], si
nop dword [rax]
inc r12
cmp word [r15 + r12*2], 0
jne 0x14000fbd0
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.1400021b0
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.14000bec0
nop
mov rcx, r14
call fcn.140033b30
test eax, eax
je 0x14000fc0b
mov ecx, eax
call fcn.1400335c8
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000fc4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcf4
call fcn.140034f54
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000fc97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fcc4
call fcn.140034f54
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140034f30
lea r11, [rsp + 0x100]
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.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
nop
call fcn.1400566cc
int3