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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov rax, qword [0x14010e0c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x48], r14d
lea rcx, [rbp]
call fcn.140054c4c
nop
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x10]
sub rax, rcx
cmp rax, 0x14
jb 0x14004a22a
lea r9, [rbp]
lea ebx, [r14 + 7]
cmp qword [rbp + 0x18], rbx
cmova r9, qword [rbp]
mov qword [rsp + 0x30], SafeArrayUnaccessData
lea rax, str.TrainerSettings.ini
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x20]
call fcn.14001e5cc
lea rsi, [r12 + 0x498]
lea rax, [rbp + 0x20]
cmp rsi, rax
je 0x140049aaf
mov rcx, rsi
call fcn.14001b1b8
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], rbx
mov word [rbp + 0x20], r14w
lea rcx, [rbp + 0x20]
call fcn.14001b1b8
lea rcx, [rbp]
cmp qword [rbp + 0x18], rbx
cmova rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140049ae2
lea rcx, [rbp]
cmp qword [rbp + 0x18], rbx
cmova rcx, qword [rbp]
call fcn.14009a850
mov r15d, 0x20
mov ecx, r15d
call fcn.140088a14
mov rdi, rax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rbx
mov word [rax], r14w
cmp rax, rsi
je 0x140049b4b
mov rdx, qword [rsi + 0x10]
mov r9, rsi
cmp qword [rsi + 0x18], rbx
jbe 0x140049b1f
mov r9, qword [rsi]
mov rcx, rdi
cmp rdx, rbx
ja 0x140049b45
mov qword [rax + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1400ae5a0
xor ecx, ecx
mov word [rdi + rbx], cx
xor r14d, r14d
jmp 0x140049b4b
call fcn.14001d178
nop
mov rbx, qword [r12 + 0x5a8]
mov qword [r12 + 0x5a8], rdi
test rbx, rbx
je 0x140049b73
mov rcx, rbx
call fcn.14001b1b8
mov rdx, r15
mov rcx, rbx
call fcn.1400889e0
mov r13, qword [r12 + 0x5a8]
mov ecx, 0x28
call fcn.140088a14
mov r15, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov r8d, 7
lea rdx, str.Trainer
lea rcx, [rbp - 0x20]
call fcn.1400063c4
nop
mov dword [rsp + 0x48], SafeArrayDestroy
lea rdi, [r15 + 8]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
lea rax, [rdi + 0x10]
mov qword [rax], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
lea rcx, [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp rdi, rcx
je 0x140049c2f
lea r9, [rbp - 0x20]
cmp r14, 7
cmova r9, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rdi + 0x18]
ja 0x140049c23
cmp qword [rdi + 0x18], 7
jbe 0x140049c06
mov rdi, qword [rdi]
mov qword [rax], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.1400ae5a0
xor ecx, ecx
mov word [rbx + rdi], cx
jmp 0x140049c2f
mov rcx, rdi
call fcn.14001d178
mov r14, qword [rbp - 8]
mov qword [r15], r13
cmp r14, 7
jbe 0x140049c6e
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049c69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a230
call fcn.1400889e0
mov rbx, qword [r12 + 0x5b0]
mov qword [r12 + 0x5b0], r15
xor edi, edi
test rbx, rbx
je 0x140049c99
lea rcx, [rbx + 8]
call fcn.14001b1b8
lea edx, [rdi + 0x28]
mov rcx, rbx
call fcn.1400889e0
mov rcx, rsi
mov r14d, 7
cmp qword [rsi + 0x18], r14
jbe 0x140049cab
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r13, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x140049ebd
lea rdx, [0x1400eeae2]
lea ecx, [r13 + 3]
call fcn.14009ab58
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov r8, r13
inc r8
cmp byte [rax + r8], dil
jne 0x140049ce0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400133f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], r14
mov word [rbp - 0x80], di
lea rdi, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
seta byte [rsp + 0x40]
mov r15, qword [rbp - 0x60]
cmova rdi, r15
mov r14, qword [rbp - 0x50]
cmp r14, 7
jb 0x140049d7b
lea r15, [rdi + r14]
lea r8, [r15 - 6]
sub r8, rdi
mov rcx, rdi
jmp 0x140049d65
mov r8d, 7
lea rdx, str.Chinese
mov rcx, rbx
call fcn.1400ae4a0
xor ecx, ecx
test eax, eax
je 0x140049fea
inc rbx
lea r8, [r15 - 6]
sub r8, rbx
mov rcx, rbx
mov edx, 0x43
call fcn.1400aefe0
test rax, rax
mov rbx, rax
jne 0x140049d39
mov r15, qword [rbp - 0x60]
lea rdx, str.English
lea rcx, [rbp - 0x80]
call fcn.14001a630
mov rbx, qword [r12 + 0x5b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
lea r8d, [rdi + 8]
lea rdx, str.Language
lea rcx, [rsp + 0x60]
call fcn.1400063c4
mov r9, qword [rbx]
lea r14d, [rdi + 7]
cmp qword [r9 + 0x18], r14
jbe 0x140049dcc
mov r9, qword [r9]
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], r14
cmova r8, qword [rbp - 0x80]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], r14
cmova rdx, qword [rsp + 0x60]
lea rcx, [rbx + 8]
cmp qword [rcx + 0x18], r14
jbe 0x140049df6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rsp + 0x78]
mov ebx, 0x1000
cmp rdx, r14
jbe 0x140049e3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140049e39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a236
call fcn.1400889e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140049e7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x140049e75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a23c
call fcn.1400889e0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], r14
mov word [rbp - 0x80], di
cmp byte [rsp + 0x40], dil
je 0x140049ebd
mov rdx, qword [rbp - 0x48]
inc rdx
mov rax, r15
cmp rdx, rbx
jb 0x140049eb5
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a242
mov rcx, r15
call fcn.1400889e0
mov rbx, qword [r12 + 0x5b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov r8, r14
lea rdx, str.ENGLISH
lea rcx, [rsp + 0x60]
call fcn.1400063c4
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x80]
call fcn.1400063c4
nop
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.1400479f0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r14
jbe 0x140049f67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049f62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a248
call fcn.1400889e0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], r14
mov word [rbp - 0x80], di
mov rdx, qword [rsp + 0x78]
cmp rdx, r14
jbe 0x140049fb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049faf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a24e
call fcn.1400889e0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r14
mov word [rsp + 0x60], di
lea r15, [rbp - 0x40]
mov rax, qword [rbp - 0x28]
cmp rax, r14
seta dl
mov r14, qword [rbp - 0x40]
cmp rax, 7
jbe 0x14004a078
mov r15, r14
mov rcx, r14
jmp 0x14004a07c
sub rbx, rdi
cmp rbx, r13
je 0x140049d77
lea rdi, [rbp - 0x60]
cmp byte [rsp + 0x40], cl
mov r15, qword [rbp - 0x60]
cmovne rdi, r15
cmp r14, 0xb
jb 0x14004a056
lea r8, [r14 - 0xa]
add r8, rdi
sub r8, rdi
mov rcx, rdi
jmp 0x14004a044
mov r8d, SafeArrayDestroy
lea rdx, str.Traditional
mov rcx, rbx
call fcn.1400ae4a0
test eax, eax
je 0x14004a073
inc rbx
lea r8, [r14 - 0xa]
add r8, rdi
sub r8, rbx
mov rcx, rbx
mov edx, 0x54
call fcn.1400aefe0
mov rbx, rax
test rax, rax
jne 0x14004a01b
mov rbx, r13
lea rax, str.Chinese_Traditional
lea rdx, str.Chinese_Simplified
cmp rbx, r13
cmovne rdx, rax
jmp 0x140049d82
sub rbx, rdi
jmp 0x14004a059
lea rcx, [rbp - 0x40]
mov r12, qword [rbp - 0x30]
lea rbx, [rcx + r12*2]
lea rdi, [rbp - 0x40]
test dl, dl
cmovne rdi, r14
cmp rdi, rbx
je 0x14004a0b8
sub r15, rdi
movzx ecx, word [rdi]
call fcn.140098348
mov word [r15 + rdi], ax
add rdi, 2
cmp rdi, rbx
jne 0x14004a096
mov rax, qword [rbp - 0x28]
mov r12, qword [rbp - 0x30]
mov r14, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
cmp rax, 7
seta bl
cmova rcx, r14
mov qword [rsp + 0x20], 0xa
lea r9, str.SIMPLIFIED
xor r8d, r8d
mov rdx, r12
call fcn.1400422ac
xor r15d, r15d
cmp rax, r13
je 0x14004a0ef
mov ebx, r15d
jmp 0x14004a11f
lea rcx, [rbp - 0x40]
test bl, bl
cmovne rcx, r14
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.TRADITIONAL
xor r8d, r8d
mov rdx, r12
call fcn.1400422ac
mov ebx, r15d
cmp rax, r13
sete bl
inc ebx
mov edx, ebx
call fcn.1400437b4
lea r14, [0x140122d30]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.1400874a0
test eax, eax
jne 0x14004a254
mov eax, dword [0x140122d7c]
cmp eax, 0x7fffffff
je 0x14004a217
xor edx, edx
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140053a3c
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsi + 0x18], 7
jbe 0x14004a194
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
inc r13
cmp word [rsi + r13*2], r15w
jne 0x14004a1a6
mov r8, r13
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400063c4
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140045628
nop
mov rcx, r14
call fcn.1400874a8
nop
lea rcx, [rbp - 0x40]
call fcn.14001b1b8
nop
lea rcx, [rbp]
call fcn.14001b1b8
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400889c0
lea r11, [rsp + 0x150]
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
dec eax
mov dword [0x140122d7c], eax
mov ecx, 6
call fcn.140087444
nop
call fcn.140001ab4
int3
call fcn.14008f8f4
nop
call fcn.14008f8f4
nop
call fcn.14008f8f4
nop
call fcn.14008f8f4
nop
call fcn.14008f8f4
nop
call fcn.14008f8f4
int3
mov ecx, 5
call fcn.140087444
int3