Function at 0x140010c70
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 [0x1400a6088]
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.140017600
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.140005550
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 0x140010d43
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.140053920
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r13w
jmp 0x140010d54
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.140005a70
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x140010d9a
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.140053920
mov word [rbx + rdi*2], r13w
jmp 0x140010db8
mov qword [rsp + 0x20], 0x14
lea r9, str.TrainerSettings.ini
mov edx, 0x14
lea rcx, [rbp - 0x71]
call fcn.140005a70
lea r15, [r14 + 0x518]
lea rax, [rbp - 0x71]
cmp r15, rax
je 0x140010df5
mov rcx, r15
call fcn.140003d20
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 0x140010df9
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x140010e35
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001161a
call fcn.1400352b4
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 0x140010e61
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14005ab58
mov ecx, 0x20
call fcn.1400352bc
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 0x140010ea2
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x140010e95
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.140003f60
nop
lea rdi, [r14 + 0x628]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x140010ec0
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x140010ec8
jmp 0x140010ec3
mov rdx, rbx
call fcn.1400146a0
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.1400352bc
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.140003f60
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 0x140010f41
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.140003f60
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x140010f84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010f7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011620
call fcn.1400352b4
lea rdi, [r14 + 0x630]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x140010fa2
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x140010faa
jmp 0x140010fa5
mov rdx, rbx
call fcn.140014620
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x140010fb7
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x1400111e9
lea rdx, [0x14008c608]
lea ecx, [r12 + 3]
call fcn.14005ae64
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 0x140010ff1
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140004110
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.140006e40
cmp rax, 0xffffffffffffffff
je 0x14001109f
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.140006e40
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 0x140011092
jmp 0x1400110ac
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.140003f60
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.140003f60
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x1400110ec
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 0x140011116
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14001115d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011157
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011626
call fcn.1400352b4
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001119d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011198
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001162c
call fcn.1400352b4
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400111e9
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011632
call fcn.1400352b4
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.140003f60
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.140003f60
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.14000f900
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14001129a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011295
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011638
call fcn.1400352b4
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x1400112eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001163e
call fcn.1400352b4
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 0x14001136b
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.140059ea8
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x140011347
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 0x1400113fb
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 0x1400113f7
movzx ecx, word [rax]
cmp cx, 0x53
je 0x1400113ae
add rax, 2
sub rdx, 1
jmp 0x140011399
test rax, rax
je 0x1400113f7
mov r9d, 0xa
lea rdx, str.SIMPLIFIED
mov r8, rax
cmp cx, word [rdx]
jne 0x1400113dc
add r8, 2
add rdx, 2
sub r9, 1
je 0x1400113e2
movzx ecx, word [r8]
jmp 0x1400113c3
add rax, 2
jmp 0x140011390
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1400113f7
xor esi, esi
mov ebx, esi
jmp 0x14001148a
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xb
jb 0x14001147a
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 0x14001147a
movzx ecx, word [rax]
cmp cx, 0x54
je 0x14001143e
add rax, 2
sub rdx, 1
jmp 0x140011429
test rax, rax
je 0x14001147a
mov r9d, 0xb
lea rdx, str.TRADITIONAL
mov r8, rax
cmp cx, word [rdx]
jne 0x14001146c
add r8, 2
add rdx, 2
sub r9, 1
je 0x140011472
movzx ecx, word [r8]
jmp 0x140011453
add rax, 2
jmp 0x140011420
sub rax, r10
sar rax, 1
jmp 0x14001147d
mov rax, r12
xor esi, esi
mov ebx, esi
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.14000c9c0
lea r14, [0x1400ab930]
mov qword [rbp - 0x79], r14
mov rcx, r14
call fcn.140033e6c
test eax, eax
je 0x1400114b0
mov ecx, eax
call fcn.140033928
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 0x14001150d
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 0x140011520
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140003f60
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.14000d860
nop
mov rcx, r14
call fcn.140033e90
test eax, eax
je 0x14001155b
mov ecx, eax
call fcn.140033928
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14001159b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011644
call fcn.1400352b4
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400115e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400115e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011614
call fcn.1400352b4
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140035290
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.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
int3