Function at 0x14000cc50
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 [0x140098088]
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.140010e00
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.140002be0
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.140002ca0
lea r8d, [r13 + 0x14]
lea rdx, str.TrainerSettings.ini
lea rcx, [rbp - 0x71]
call fcn.140002ca0
lea rdi, [r14 + 0x478]
lea rax, [rbp - 0x71]
cmp rdi, rax
je 0x14000cd38
mov rcx, rdi
call fcn.140001df0
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 0x14000cd3c
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000cd78
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4ba
call fcn.14002a284
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 0x14000cda4
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14004f908
mov ecx, 0x20
call fcn.14002a28c
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 0x14000cde5
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000cdd8
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.140002030
nop
lea rsi, [r14 + 0x498]
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x14000ce03
mov rdx, qword [rsi]
mov qword [rsi], rbx
test rdx, rdx
je 0x14000ce0b
jmp 0x14000ce06
mov rdx, rbx
call fcn.14000ef70
mov rsi, qword [rsi]
mov ecx, 0x28
call fcn.14002a28c
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.140002030
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 0x14000ce84
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.140002030
mov qword [rbx], rsi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000cec7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cec2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4c0
call fcn.14002a284
add r14, 0x4a0
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x14000cee5
mov rdx, qword [r14]
mov qword [r14], rbx
test rdx, rdx
je 0x14000ceed
jmp 0x14000cee8
mov rdx, rbx
call fcn.14000eef0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000cefa
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000d12a
lea rdx, [0x1400814be]
lea ecx, [rsi + 3]
call fcn.14004fc14
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 0x14000cf32
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.1400021e0
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.140002630
cmp rax, 0xffffffffffffffff
je 0x14000cfe0
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.140002630
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 0x14000cfd3
jmp 0x14000cfed
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.140002030
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.140002030
mov rcx, qword [r14]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000d02d
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 0x14000d057
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000d09e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d098
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4c6
call fcn.14002a284
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000d0de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4cc
call fcn.14002a284
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14000d12a
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d125
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4d2
call fcn.14002a284
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.140002030
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.140002030
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.14000bc20
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000d1db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d1d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4d8
call fcn.14002a284
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000d22c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d227
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4de
call fcn.14002a284
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 0x14000d2b1
sub r15, rbx
nop dword [rax]
movzx ecx, word [rbx]
call fcn.14004ec58
mov word [r15 + rbx], ax
lea rbx, [rbx + 2]
inc r14
cmp r14, r12
jne 0x14000d290
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.140002570
cmp rax, 0xffffffffffffffff
je 0x14000d2ea
xor r15d, r15d
mov ebx, r15d
jmp 0x14000d321
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.140002570
xor r15d, r15d
mov ebx, r15d
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.140008f80
lea r12, [0x14009d780]
mov qword [rbp - 0x79], r12
mov rcx, r12
call fcn.140028e3c
test eax, eax
je 0x14000d347
mov ecx, eax
call fcn.1400288f8
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 0x14000d3a7
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 0x14000d3c0
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.140002030
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.140009c60
nop
mov rcx, r12
call fcn.140028e60
test eax, eax
je 0x14000d3fa
mov ecx, eax
call fcn.1400288f8
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000d43a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d435
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4e4
call fcn.14002a284
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000d487
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d482
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d4b4
call fcn.14002a284
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002a260
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.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
nop
call fcn.14004b5f4
int3