Function at 0x14000f640
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 [0x1400ab088]
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.140015df0
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.140002e70
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 0x14000f713
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.140053e40
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r13w
jmp 0x14000f724
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.1400032f0
mov rcx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x59]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x14000f76a
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.140053e40
mov word [rbx + rdi*2], r13w
jmp 0x14000f788
mov qword [rsp + 0x20], 0x14
lea r9, str.TrainerSettings.ini
mov edx, 0x14
lea rcx, [rbp - 0x71]
call fcn.1400032f0
lea r15, [r14 + 0x440]
lea rax, [rbp - 0x71]
cmp r15, rax
je 0x14000f7c5
mov rcx, r15
call fcn.140001f20
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 0x14000f7c9
mov rax, qword [rbp - 0x59]
cmp rax, 8
jb 0x14000f805
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f800
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ffea
call fcn.1400357d4
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 0x14000f831
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call fcn.14005b0e8
mov ecx, 0x20
call fcn.1400357dc
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 0x14000f872
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000f865
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.140002170
nop
lea rdi, [r14 + 0x550]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000f890
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000f898
jmp 0x14000f893
mov rdx, rbx
call fcn.140013010
mov rdi, qword [rdi]
mov ecx, 0x28
call fcn.1400357dc
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.140002170
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 0x14000f911
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov r8, qword [rbp - 0x61]
call fcn.140002170
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000f954
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f94f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fff0
call fcn.1400357d4
lea rdi, [r14 + 0x558]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000f972
mov rdx, qword [rdi]
mov qword [rdi], rbx
test rdx, rdx
je 0x14000f97a
jmp 0x14000f975
mov rdx, rbx
call fcn.140012f90
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x14000f987
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14000fbb9
lea rdx, [0x14008d62e]
lea ecx, [r12 + 3]
call fcn.14005b3f4
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 0x14000f9c1
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140002320
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.140002860
cmp rax, 0xffffffffffffffff
je 0x14000fa6f
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.140002860
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 0x14000fa62
jmp 0x14000fa7c
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x71]
call fcn.140002170
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.140002170
mov rcx, qword [rdi]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x14000fabc
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 0x14000fae6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14000fb2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fff6
call fcn.1400357d4
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000fb6d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fffc
call fcn.1400357d4
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov word [rbp - 0x71], r13w
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14000fbb9
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fbb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010002
call fcn.1400357d4
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.140002170
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.140002170
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.14000e440
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14000fc6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010008
call fcn.1400357d4
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x14000fcbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fcb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001000e
call fcn.1400357d4
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 0x14000fd3b
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.14005a520
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x14000fd17
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 0x14000fdcb
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 0x14000fdc7
movzx ecx, word [rax]
cmp cx, 0x53
je 0x14000fd7e
add rax, 2
sub rdx, 1
jmp 0x14000fd69
test rax, rax
je 0x14000fdc7
mov r9d, 0xa
lea rdx, str.SIMPLIFIED
mov r8, rax
cmp cx, word [rdx]
jne 0x14000fdac
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000fdb2
movzx ecx, word [r8]
jmp 0x14000fd93
add rax, 2
jmp 0x14000fd60
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000fdc7
xor esi, esi
mov ebx, esi
jmp 0x14000fe5a
mov r8, qword [rbp - 0x39]
lea r10, [rbp - 0x51]
cmp r8, 8
cmovae r10, r13
cmp r11, 0xb
jb 0x14000fe4a
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 0x14000fe4a
movzx ecx, word [rax]
cmp cx, 0x54
je 0x14000fe0e
add rax, 2
sub rdx, 1
jmp 0x14000fdf9
test rax, rax
je 0x14000fe4a
mov r9d, 0xb
lea rdx, str.TRADITIONAL
mov r8, rax
cmp cx, word [rdx]
jne 0x14000fe3c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14000fe42
movzx ecx, word [r8]
jmp 0x14000fe23
add rax, 2
jmp 0x14000fdf0
sub rax, r10
sar rax, 1
jmp 0x14000fe4d
mov rax, r12
xor esi, esi
mov ebx, esi
cmp rax, 0xffffffffffffffff
sete bl
inc ebx
mov edx, ebx
call fcn.14000b5d0
lea r14, [0x1400b0b60]
mov qword [rbp - 0x79], r14
mov rcx, r14
call fcn.14003438c
test eax, eax
je 0x14000fe80
mov ecx, eax
call fcn.140033e48
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 0x14000fedd
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 0x14000fef0
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140002170
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.14000c390
nop
mov rcx, r14
call fcn.1400343b0
test eax, eax
je 0x14000ff2b
mov ecx, eax
call fcn.140033e48
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14000ff6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ff66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010014
call fcn.1400357d4
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], si
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14000ffb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ffb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ffe4
call fcn.1400357d4
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400357b0
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.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
int3