Function at 0x14000d800
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 [0x1400a4088]
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.140013c50
nop
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov dword [rsp + 0x30], 2
mov rdx, qword [rbp + 0x1f]
add rdx, 0x14
lea rcx, [rbp - 0x71]
call fcn.140002d90
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 0x14000d8d3
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.140050cc0
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r13w
jmp 0x14000d8e4
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.1400030d0
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x14000d92a
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.140050cc0
mov word [rbx + rdi*2], r13w
jmp 0x14000d948
mov qword [rsp + 0x20], 0x14
lea r9, str.TrainerSettings.ini
mov edx, 0x14
lea rcx, [rbp - 0x71]
call fcn.1400030d0
lea r15, [r14 + 0x410]
lea rax, [rbp - 0x71]
cmp r15, rax
je 0x14000d985
mov rcx, r15
call fcn.140001f00
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 0x14000d989
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000d9c5
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d9c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1aa
call fcn.140032654
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 0x14000d9f1
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.140057ef8
mov ecx, 0x20
call fcn.14003265c
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 0x14000da32
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000da25
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.140002140
nop
lea rdi, [r14 + 0x520]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000da50
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000da58
jmp 0x14000da53
mov rdx, rbx
call fcn.140011250
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.14003265c
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.140002140
nop
mov dword [rsp + 0x30], 0xc
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 0x14000dad1
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.140002140
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000db14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000db0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1b0
call fcn.140032654
lea rdi, [r14 + 0x528]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000db32
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000db3a
jmp 0x14000db35
mov rdx, rbx
call fcn.1400111d0
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000db47
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000dd79
lea rdx, [0x14008961e]
lea ecx, [r12 + 3]
call fcn.140058204
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 0x14000db81
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.1400022f0
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.140002780
cmp rax, 0xffffffffffffffff
je 0x14000dc2f
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.140002780
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 0x14000dc22
jmp 0x14000dc3c
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.140002140
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.140002140
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000dc7c
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 0x14000dca6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000dced
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dce7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1b6
call fcn.140032654
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000dd2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dd28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1bc
call fcn.140032654
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000dd79
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dd74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1c2
call fcn.140032654
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.140002140
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.140002140
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.14000c380
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000de2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000de25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1c8
call fcn.140032654
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000de7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000de76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1ce
call fcn.140032654
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 0x14000defb
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.140057248
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x14000ded7
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 0x14000df8b
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 0x14000df87
movzx ecx, word [rax]
cmp cx, 0x53
je 0x14000df3e
add rax, 2
sub rdx, 1
jmp 0x14000df29
test rax, rax
je 0x14000df87
mov r9d, 0xa
lea rdx, str.SIMPLIFIED
mov r8, rax
cmp cx, word [rdx]
jne 0x14000df6c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000df72
movzx ecx, word [r8]
jmp 0x14000df53
add rax, 2
jmp 0x14000df20
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000df87
xor esi, esi
mov ebx, esi
jmp 0x14000e01a
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xb
jb 0x14000e00a
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 0x14000e00a
movzx ecx, word [rax]
cmp cx, 0x54
je 0x14000dfce
add rax, 2
sub rdx, 1
jmp 0x14000dfb9
test rax, rax
je 0x14000e00a
mov r9d, 0xb
lea rdx, str.TRADITIONAL
mov r8, rax
cmp cx, word [rdx]
jne 0x14000dffc
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000e002
movzx ecx, word [r8]
jmp 0x14000dfe3
add rax, 2
jmp 0x14000dfb0
sub rax, r10
sar rax, 1
jmp 0x14000e00d
mov rax, r12
xor esi, esi
mov ebx, esi
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.140009520
lea r14, [0x1400a9940]
mov qword [rbp - 0x79], r14
mov rcx, r14
call fcn.14003120c
test eax, eax
je 0x14000e040
mov ecx, eax
call fcn.140030cc8
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 0x14000e09d
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 0x14000e0b0
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140002140
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.14000a2e0
nop
mov rcx, r14
call fcn.140031230
test eax, eax
je 0x14000e0eb
mov ecx, eax
call fcn.140030cc8
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000e12b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e126
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1d4
call fcn.140032654
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000e177
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e172
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1a4
call fcn.140032654
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140032630
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.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
nop
call fcn.140053be4
int3