Function at 0x140017e80
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 [0x1400a7088]
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.14001d620
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.140009c40
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.140007740
lea r8d, [r13 + 0x14]
lea rdx, str.TrainerSettings.ini
lea rcx, [rbp - 0x71]
call fcn.140007740
lea rdi, [r14 + 0x5e8]
lea rax, [rbp - 0x71]
cmp rdi, rax
je 0x140017f68
mov rcx, rdi
call fcn.140006f00
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 0x140017f6c
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x140017fa8
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017fa3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400186ea
call fcn.140036a24
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 0x140017fd4
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14005c0a8
mov ecx, 0x20
call fcn.140036a2c
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 0x140018015
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140018008
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400071d0
nop
lea rsi, [r14 + 0x608]
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x140018033
mov rdx, qword [rsi]
mov qword [rsi], rbx
test rdx, rdx
je 0x14001803b
jmp 0x140018036
mov rdx, rbx
call fcn.14001b510
mov rsi, qword [rsi]
mov ecx, 0x28
call fcn.140036a2c
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.1400071d0
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 0x1400180b4
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.1400071d0
mov qword [rbx], rsi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x1400180f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400180f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400186f0
call fcn.140036a24
add r14, 0x610
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x140018115
mov rdx, qword [r14]
mov qword [r14], rbx
test rdx, rdx
je 0x14001811d
jmp 0x140018118
mov rdx, rbx
call fcn.14001b490
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001812a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14001835a
lea rdx, [0x14008e4de]
lea ecx, [rsi + 3]
call fcn.14005c3b4
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 0x140018162
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140007380
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.140009140
cmp rax, 0xffffffffffffffff
je 0x140018210
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.140009140
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 0x140018203
jmp 0x14001821d
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.1400071d0
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.1400071d0
mov rcx, qword [r14]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14001825d
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 0x140018287
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400182ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400182c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400186f6
call fcn.140036a24
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001830e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018309
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400186fc
call fcn.140036a24
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14001835a
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018355
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018702
call fcn.140036a24
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.1400071d0
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.1400071d0
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.140016bc0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14001840b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018406
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018708
call fcn.140036a24
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14001845c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001870e
call fcn.140036a24
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 0x1400184e1
sub r15, rbx
nop dword [rax]
movzx ecx, word [rbx]
call fcn.14005b3f8
mov word [r15 + rbx], ax
lea rbx, [rbx + 2]
inc r14
cmp r14, r12
jne 0x1400184c0
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.140009080
cmp rax, 0xffffffffffffffff
je 0x14001851a
xor r15d, r15d
mov ebx, r15d
jmp 0x140018551
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.140009080
xor r15d, r15d
mov ebx, r15d
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.140013f10
lea r12, [0x1400ac900]
mov qword [rbp - 0x79], r12
mov rcx, r12
call fcn.1400355dc
test eax, eax
je 0x140018577
mov ecx, eax
call fcn.140035098
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 0x1400185d7
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 0x1400185f0
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.1400071d0
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.140014c00
nop
mov rcx, r12
call fcn.140035600
test eax, eax
je 0x14001862a
mov ecx, eax
call fcn.140035098
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14001866a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018665
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018714
call fcn.140036a24
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400186b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400186b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400186e4
call fcn.140036a24
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140036a00
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.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
nop
call fcn.140057d94
int3