Function at 0x140013d30
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.1400359f0
sub rsp, rax
mov rax, qword [0x14007b040]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov rcx, qword [0x14007e2e0]
test rcx, rcx
jne 0x140013d90
call fcn.140013900
test al, al
je 0x1400146d6
mov rcx, qword [0x14007e2e0]
xor dil, dil
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
call qword [rax + 0x68]
test eax, eax
js 0x1400146c1
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014717
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x58]
lea rdx, [0x14006bcd8]
call qword [rax]
test eax, eax
js 0x1400146b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
lea rdx, [0x14006b5d4]
mov ecx, 0x65
call fcn.140012fb0
mov rax, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x48], r13
sub rax, r13
mov qword [rsp + 0x68], rax
je 0x14001467a
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.1400577f0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001467a
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp + 0x10]
call fcn.1400028f0
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140013e90
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.140007b70
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x140013f18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014722
call fcn.140035420
movdqa xmm0, xmmword [0x1400707b0]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], bx
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov r8d, 1
lea rdx, [0x14006b568]
lea rcx, [rbp - 0x50]
call fcn.1400028f0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rbx
mov r8d, 2
lea rdx, [0x14006bcbc]
lea rcx, [rbp + 0x30]
call fcn.1400028f0
nop
mov r12, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x40]
mov r15, qword [rbp + 0x30]
mov r14, qword [rbp - 0x40]
nop word [rax + rax]
lea r10, [rbp + 0x30]
cmp r12, 7
cmova r10, r15
lea r11, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova r11, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp rdi, rax
ja 0x14001407c
sub rax, rdi
cmp rbx, rax
ja 0x14001407c
test rdi, rdi
je 0x14001403f
lea rsi, [rax + 1]
lea rsi, [r11 + rsi*2]
lea rbx, [r11 + rbx*2]
movzx r9d, word [r10]
nop dword [rax + rax]
mov rax, rsi
sub rax, rbx
sar rax, 1
mov ecx, 0
je 0x14001400c
cmp word [rbx], r9w
je 0x140014009
cmp rax, 1
je 0x14001400c
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140013ff6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14001407c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140014039
mov r8, rbx
sub r8, r10
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140014073
add rcx, 2
sub rdx, 1
jne 0x140014025
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001407c
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400187b0
mov r14, qword [rbp - 0x40]
add rbx, r14
jmp 0x140013f90
add rbx, 2
jmp 0x140013fe0
cmp r12, 7
jbe 0x1400140b8
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400140af
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014728
mov rcx, r15
call fcn.140035420
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400140f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001474c
call fcn.140035420
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r15 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140014583
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov rdi, qword [rbp - 0x60]
lea r14, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova r14, qword [rbp - 0x70]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x14001472e
cmp rdi, 7
ja 0x140014193
mov qword [rbp - 0x40], rdi
mov ebx, 7
mov qword [rbp - 0x38], rbx
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x50], xmm0
movq rsi, xmm0
jmp 0x1400141ea
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x1400141ae
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
inc rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140002790
mov rsi, rax
dec rbx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rbx
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.140057bb0
nop
mov r13d, r15d
nop dword [rax]
lea rdx, [rbp - 0x50]
cmp rbx, 7
cmova rdx, rsi
mov r8, rdi
lea rcx, [rbp - 0x70]
call fcn.1400022f0
mov edx, r13d
lea rcx, [rbp + 0x70]
call fcn.140014790
nop
mov r9d, 1
lea r8, [0x14006bcd4]
lea rcx, [rbp + 0x70]
call fcn.140007b70
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r15
mov word [rax], r15w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x30]
call fcn.140003410
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x50]
call fcn.1400028f0
nop
xor ecx, ecx
mov ebx, ecx
mov r12, qword [rbp + 0x68]
cmp r12, 7
seta byte [rsp + 0x40]
mov rdi, qword [rbp + 0x60]
mov r15, qword [rbp + 0x50]
mov r14, qword [rbp]
nop dword [rax]
nop word [rax + rax]
lea r10, [rbp + 0x50]
cmp r12, 7
cmova r10, r15
lea r11, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova r11, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp rdi, rax
ja 0x1400143cb
sub rax, rdi
cmp rbx, rax
ja 0x1400143cb
test rdi, rdi
je 0x14001438a
lea rsi, [rax + 1]
lea rsi, [r11 + rsi*2]
lea rbx, [r11 + rbx*2]
movzx r9d, word [r10]
nop dword [rax + rax]
mov rax, rsi
sub rax, rbx
sar rax, 1
je 0x140014357
cmp word [rbx], r9w
je 0x140014354
cmp rax, 1
je 0x140014357
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140014341
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x1400143cb
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140014384
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400143c0
add rcx, 2
sub rdx, 1
jne 0x140014370
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x1400143cb
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400187b0
mov r14, qword [rbp]
add rbx, r14
xor ecx, ecx
jmp 0x1400142e0
add rbx, 2
xor ecx, ecx
jmp 0x140014330
cmp byte [rsp + 0x40], 0
je 0x140014408
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400143ff
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014734
mov rcx, r15
call fcn.140035420
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140014449
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014443
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001473a
call fcn.140035420
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140014489
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014484
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014740
call fcn.140035420
xor r15d, r15d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x1400144e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014746
call fcn.140035420
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140014538
inc r13d
cmp r13d, 0x32
jge 0x140014538
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x50]
jmp 0x1400141f0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140014578
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014573
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001474c
call fcn.140035420
mov r13, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x1400145ac
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x68]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014635
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
jbe 0x14001461c
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14001461c
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014752
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov edi, eax
shr edi, 0x1f
xor dil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140014639
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14001470c
jmp 0x1400145e1
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14001467a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014674
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001475d
call fcn.140035420
nop
test r13, r13
je 0x1400146b0
mov rdx, qword [rbp - 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x1400146a7
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014706
mov rcx, r13
call fcn.140035420
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400146c1
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400146d2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.140035400
lea r11, [rsp + 0x21a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14003c24c
nop
mov ecx, 0x8007000e
call fcn.1400133a0
nop
mov ecx, 0x80004003
call fcn.1400338a0
nop
call fcn.14003c24c
nop
call fcn.14003c24c
nop
call fcn.140001340
nop
call fcn.14003c24c
nop
call fcn.14003c24c
nop
call fcn.14003c24c
nop
call fcn.14003c24c
nop
call fcn.14003c24c
nop
mov ecx, 0x80004003
call fcn.1400338a0
nop
call fcn.14003c24c
int3