Function at 0x14001bec0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001c31b
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bx
lea rax, [rbp + 0xa0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14001bf50
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400022e0
nop
lea rbx, [rsp + 0x38]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
cmp r14, 8
cmovae rbx, r15
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14001c053
mov edi, 0x100
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14002a650]
lea rdx, [0x14002a652]
movzx eax, word [rcx]
cmp ax, di
jae 0x14001bffb
movzx eax, al
mov byte [rbp + rax - 0x60], 1
add rcx, 2
cmp rcx, rdx
jne 0x14001bfb2
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
movzx eax, word [rcx]
cmp ax, di
jae 0x14001bff0
cmp byte [rbp + rax - 0x60], 0
jne 0x14001c04b
cmp rcx, rbx
je 0x14001c053
sub rcx, 2
jmp 0x14001bfe1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov edx, 1
lea rax, [0x14002a650]
movzx r8d, word [rcx]
cmp word [rax], r8w
je 0x14001c04b
add rax, 2
sub rdx, 1
jne 0x14001c030
cmp rcx, rbx
je 0x14001c053
sub rcx, 2
jmp 0x14001c020
sub rcx, rbx
sar rcx, 1
jmp 0x14001c05a
mov rcx, 0xffffffffffffffff
lea rax, [rsi - 1]
mov r12d, 0x5c
cmp rcx, rax
je 0x14001c0c6
mov rax, r14
sub rax, rsi
cmp rax, 1
jb 0x14001c098
lea rcx, [rsi + 1]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp r14, 8
cmovae rax, r15
mov word [rax + rsi*2], r12w
xor edx, edx
mov word [rax + rcx*2], dx
jmp 0x14001c0b7
mov qword [rsp + 0x20], 1
lea r9, [0x14002a650]
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001680
mov r15, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, r14
sub rax, rsi
cmp rax, 0x10
jb 0x14001c106
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r14, 8
cmovae rbx, r15
lea rcx, [rbx + rsi*2]
mov r8d, 0x20
lea rdx, str.FLiNGTrainerTemp
call sub.VCRUNTIME140.dll_memmove
xor esi, esi
mov word [rbx + rdi*2], si
jmp 0x14001c127
mov qword [rsp + 0x20], 0x10
lea r9, str.FLiNGTrainerTemp
mov edx, 0x10
lea rcx, [rsp + 0x38]
call fcn.140001680
xor esi, esi
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001c15c
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c2d6
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x48]
inc rdx
lea rcx, [rsp + 0x58]
call fcn.1400013d0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400015f0
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x14001c1f1
lea rcx, [rdx + 1]
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x58]
cmp r8, 8
cmovae rax, qword [rsp + 0x58]
mov word [rax + rdx*2], r12w
mov word [rax + rcx*2], si
jmp 0x14001c210
mov qword [rsp + 0x20], 1
lea r9, [0x14002a650]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140001680
lea rdx, [r13 + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1400015f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [r13 + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400020a0
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14001c290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c28a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c28a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022b54
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14001c2d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c2d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c2d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022b54
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14001c31b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c316
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c316
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022b54
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140022b30
lea r11, [rsp + 0x3c0]
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