Function at 0x14000cad0
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 [0x140093080]
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.140010a80
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.140002bd0
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp - 0x71]
call fcn.140002c90
lea r8d, [r13 + 0x14]
lea rdx, str.TrainerSettings.ini
lea rcx, [rbp - 0x71]
call fcn.140002c90
lea rdi, [r14 + 0x440]
lea rax, [rbp - 0x71]
cmp rdi, rax
je 0x14000cbb8
mov rcx, rdi
call fcn.140001e60
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp - 0x61], r13
mov eax, 7
mov qword [rbp - 0x59], rax
mov word [rbp - 0x71], r13w
jmp 0x14000cbbc
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000cbf8
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cbf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d33a
call fcn.140026024
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 0x14000cc24
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14004b25c
mov ecx, 0x20
call fcn.14002602c
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
cmp rax, rdi
je 0x14000cc65
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000cc58
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400020a0
nop
lea rsi, [r14 + 0x460]
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x14000cc83
mov rdx, qword [rsi]
mov qword [rsi], rbx
test rdx, rdx
je 0x14000cc8b
jmp 0x14000cc86
mov rdx, rbx
call fcn.14000ed80
mov rsi, qword [rsi]
mov ecx, 0x28
call fcn.14002602c
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.1400020a0
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 0x14000cd04
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.1400020a0
mov qword [rbx], rsi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000cd47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d340
call fcn.140026024
add r14, 0x468
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x14000cd65
mov rdx, qword [r14]
mov qword [r14], rbx
test rdx, rdx
je 0x14000cd6d
jmp 0x14000cd68
mov rdx, rbx
call fcn.14000ed00
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000cd7a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000cfaa
lea rdx, [0x14007dc2e]
lea ecx, [rsi + 3]
call fcn.14004b210
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbp - 0x51], 0
mov r8, rsi
inc r8
cmp byte [rax + r8], 0
jne 0x14000cdb2
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140002250
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea rcx, [rbp - 0x51]
mov rbx, qword [rbp - 0x51]
mov r15, qword [rbp - 0x39]
cmp r15, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 7
lea r9, str.Chinese
xor r8d, r8d
mov r12, qword [rbp - 0x41]
mov rdx, r12
call fcn.1400025e0
cmp rax, 0xffffffffffffffff
je 0x14000ce60
lea rcx, [rbp - 0x51]
cmp r15, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.Traditional
xor r8d, r8d
mov rdx, r12
call fcn.1400025e0
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000ce53
jmp 0x14000ce6d
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.1400020a0
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.1400020a0
mov rcx, qword [r14]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000cead
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 0x14000ced7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000cf1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d346
call fcn.140026024
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000cf5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d34c
call fcn.140026024
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14000cfaa
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cfa5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d352
call fcn.140026024
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.1400020a0
nop
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x51]
call fcn.1400020a0
nop
mov rcx, qword [r14]
lea r8, [rcx + 8]
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x51]
lea rdx, [rbp - 0x31]
mov rcx, qword [rcx]
call fcn.14000bc80
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000d05b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d056
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d358
call fcn.140026024
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000d0ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d35e
call fcn.140026024
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
lea r15, [rbp - 0x31]
mov r13, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
cmovae r15, r13
lea rax, [rbp - 0x31]
cmovae rax, r13
mov rcx, qword [rbp - 0x21]
lea rcx, [rax + rcx*2]
lea rbx, [rbp - 0x31]
cmovae rbx, r13
xor eax, eax
mov r14d, eax
mov r12, rcx
sub r12, rbx
inc r12
shr r12, 1
cmp rbx, rcx
cmova r12, rax
test r12, r12
je 0x14000d131
sub r15, rbx
nop dword [rax]
movzx ecx, word [rbx]
call fcn.14004ac1c
mov word [r15 + rbx], ax
lea rbx, [rbx + 2]
inc r14
cmp r14, r12
jne 0x14000d110
mov r13, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x31]
cmp rdx, 8
cmovae rcx, r13
mov qword [rsp + 0x20], 0xa
lea r9, str.SIMPLIFIED
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
call fcn.140002520
cmp rax, 0xffffffffffffffff
je 0x14000d16a
xor r15d, r15d
mov ebx, r15d
jmp 0x14000d1a1
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, r13
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.TRADITIONAL
xor r8d, r8d
mov rdx, rbx
call fcn.140002520
xor r15d, r15d
mov ebx, r15d
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.1400085e0
lea r12, [0x140098740]
mov qword [rbp - 0x79], r12
mov rcx, r12
call fcn.140024d70
test eax, eax
je 0x14000d1c7
mov ecx, eax
call fcn.140024990
nop
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rdi + 0x18], 8
jb 0x14000d227
mov rdi, qword [rdi]
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
nop dword [rax + rax]
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x14000d240
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.1400020a0
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.1400092c0
nop
mov rcx, r12
call fcn.140024d94
test eax, eax
je 0x14000d27a
mov ecx, eax
call fcn.140024990
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000d2ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d2b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d364
call fcn.140026024
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000d307
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d302
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d334
call fcn.140026024
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140026000
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.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
nop
call fcn.14004a830
int3