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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14007e048]
xor rax, rsp
mov qword [rbp], rax
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
lea rcx, [rbp - 0x20]
call fcn.140014600
nop
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x10]
sub rax, rcx
cmp rax, 0x14
jb 0x14000eda0
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r9, qword [rbp - 0x20]
mov qword [rsp + 0x30], SafeArrayUnaccessData
lea rax, str.TrainerSettings.ini
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.140003030
lea rsi, [r14 + 0x418]
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.140001de0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14000e64b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edcc
call fcn.140032d70
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000e677
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
call fcn.14003d748
mov ecx, 0x20
call fcn.140032da4
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
cmp rax, rsi
je 0x14000e6bb
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000e6ae
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rbx
call fcn.1400020c0
nop
lea rdi, [r14 + 0x528]
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x14000e6d9
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000e6e1
jmp 0x14000e6dc
mov rdx, rbx
call fcn.140011720
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.140032da4
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov r8d, 7
lea rdx, str.Trainer
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
mov dword [rsp + 0x40], 7
lea rcx, [rbx + 8]
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x14000e76b
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
call fcn.1400020c0
mov qword [rbx], rdi
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000e7b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e7ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edcc
call fcn.140032d70
lea rdi, [r14 + 0x530]
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x14000e7ce
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000e7d6
jmp 0x14000e7d1
mov rdx, rbx
call fcn.1400116a0
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000e7e3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000ea2f
lea rdx, [0x14006b417]
lea ecx, [r14 + 3]
call fcn.14003da50
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbp - 0x80], 0
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x14000e820
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002280
nop
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
setae r12b
mov rbx, qword [rbp - 0x80]
cmovae rcx, rbx
mov qword [rsp + 0x20], 7
lea r9, str.Chinese
xor r8d, r8d
mov r15, qword [rbp - 0x70]
mov rdx, r15
call fcn.140002840
cmp rax, 0xffffffffffffffff
je 0x14000e8dd
lea rcx, [rbp - 0x80]
test r12b, r12b
cmovne rcx, rbx
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.Traditional
xor r8d, r8d
mov rdx, r15
call fcn.140002840
lea rcx, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rax, 0xffffffffffffffff
cmovne rdx, rcx
mov r8, r14
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000e8d0
jmp 0x14000e8ea
mov r8d, 7
lea rdx, str.English
lea rcx, [rsp + 0x60]
call fcn.1400020c0
mov rbx, qword [rdi]
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x60]
call fcn.1400020c0
mov r9, qword [rbx]
cmp qword [r9 + 0x18], 8
jb 0x14000e92a
mov r9, qword [r9]
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
lea rcx, [rbx + 8]
cmp qword [rcx + 0x18], 8
jb 0x14000e957
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14000e99e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e998
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000eda6
call fcn.140032d70
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000e9e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e9db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edac
call fcn.140032d70
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14000ea2f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edb2
call fcn.140032d70
mov rbx, qword [rdi]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov r8d, 7
lea rdx, str.ENGLISH
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x80]
call fcn.1400020c0
nop
lea r8, [rbx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx]
call fcn.14000d190
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000eaee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eae9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edb8
call fcn.140032d70
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000eb41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eb3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edbe
call fcn.140032d70
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
lea r15, [rbp - 0x40]
mov r12, qword [rbp - 0x40]
mov rax, qword [rbp - 0x28]
mov r13, qword [rbp - 0x30]
cmp rax, 8
jb 0x14000eb77
lea rbx, [r12 + r13*2]
mov rdi, r12
mov r15, r12
jmp 0x14000eb83
lea rcx, [rbp - 0x40]
lea rbx, [rcx + r13*2]
lea rdi, [rbp - 0x40]
cmp rdi, rbx
je 0x14000ebb2
sub r15, rdi
nop dword [rax + rax]
movzx ecx, word [rdi]
call fcn.14003ccf0
mov word [r15 + rdi], ax
add rdi, 2
cmp rdi, rbx
jne 0x14000eb90
mov rax, qword [rbp - 0x28]
mov r13, qword [rbp - 0x30]
mov r12, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
cmp rax, 8
setae bl
cmovae rcx, r12
mov qword [rsp + 0x20], 0xa
lea r9, str.SIMPLIFIED
xor r8d, r8d
mov rdx, r13
call fcn.140002750
cmp rax, 0xffffffffffffffff
je 0x14000ebea
xor r15d, r15d
mov ebx, r15d
jmp 0x14000ec1e
lea rcx, [rbp - 0x40]
test bl, bl
cmovne rcx, r12
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.TRADITIONAL
xor r8d, r8d
mov rdx, r13
call fcn.140002750
xor r15d, r15d
mov ebx, r15d
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.14000a350
lea r12, [0x140081a90]
mov qword [rsp + 0x58], r12
mov rcx, r12
call fcn.140032328
test eax, eax
jne 0x14000edc4
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsi + 0x18], 8
jb 0x14000ec9f
mov rsi, qword [rsi]
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
nop
inc r14
cmp word [rsi + r14*2], 0
jne 0x14000ecb0
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.1400020c0
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14000b100
nop
mov rcx, r12
call fcn.140032330
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14000ed20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000edcc
call fcn.140032d70
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r15w
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14000ed6d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ed9a
call fcn.140032d70
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140032d50
lea r11, [rsp + 0x110]
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.1400394dc
nop
call fcn.140001340
nop
call fcn.1400394dc
nop
call fcn.1400394dc
nop
call fcn.1400394dc
nop
call fcn.1400394dc
nop
call fcn.1400394dc
int3
mov ecx, eax
call fcn.140031f50
nop
call fcn.1400394dc
int3