Function at 0x140013b50
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.1400359c0
sub rsp, rax
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov rcx, qword [0x1400812c0]
test rcx, rcx
jne 0x140013bb0
call fcn.140013720
test al, al
je 0x1400144f6
mov rcx, qword [0x1400812c0]
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 0x1400144e1
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014537
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x58]
lea rdx, [0x14006eaf8]
call qword [rax]
test eax, eax
js 0x1400144d0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
lea rdx, [0x14006e3f4]
mov ecx, 0x65
call fcn.140012dd0
mov rax, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x48], r13
sub rax, r13
mov qword [rsp + 0x68], rax
je 0x14001449a
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.14005a480
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001449a
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.140002ab0
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140013cb0
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.140007040
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 0x140013d38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014542
call fcn.140035320
movdqa xmm0, xmmword [0x140073170]
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, [0x14006e398]
lea rcx, [rbp - 0x50]
call fcn.140002ab0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rbx
mov r8d, 2
lea rdx, [0x14006eadc]
lea rcx, [rbp + 0x30]
call fcn.140002ab0
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 0x140013e9c
sub rax, rdi
cmp rbx, rax
ja 0x140013e9c
test rdi, rdi
je 0x140013e5f
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 0x140013e2c
cmp word [rbx], r9w
je 0x140013e29
cmp rax, 1
je 0x140013e2c
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140013e16
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140013e9c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140013e59
mov r8, rbx
sub r8, r10
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140013e93
add rcx, 2
sub rdx, 1
jne 0x140013e45
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013e9c
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.1400188f0
mov r14, qword [rbp - 0x40]
add rbx, r14
jmp 0x140013db0
add rbx, 2
jmp 0x140013e00
cmp r12, 7
jbe 0x140013ed8
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140013ecf
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014548
mov rcx, r15
call fcn.140035320
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140013f18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
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 0x14001456c
call fcn.140035320
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 0x1400143a3
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 0x14001454e
cmp rdi, 7
ja 0x140013fb3
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 0x14001400a
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140013fce
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.140002950
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.14005a840
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.1400023a0
mov edx, r13d
lea rcx, [rbp + 0x70]
call fcn.1400145b0
nop
mov r9d, 1
lea r8, [0x14006eaf4]
lea rcx, [rbp + 0x70]
call fcn.140007040
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.140003660
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.140002ab0
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 0x1400141eb
sub rax, rdi
cmp rbx, rax
ja 0x1400141eb
test rdi, rdi
je 0x1400141aa
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 0x140014177
cmp word [rbx], r9w
je 0x140014174
cmp rax, 1
je 0x140014177
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140014161
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x1400141eb
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x1400141a4
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400141e0
add rcx, 2
sub rdx, 1
jne 0x140014190
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x1400141eb
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.1400188f0
mov r14, qword [rbp]
add rbx, r14
xor ecx, ecx
jmp 0x140014100
add rbx, 2
xor ecx, ecx
jmp 0x140014150
cmp byte [rsp + 0x40], 0
je 0x140014228
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x14001421f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014554
mov rcx, r15
call fcn.140035320
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140014269
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014263
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001455a
call fcn.140035320
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x1400142a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400142a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014560
call fcn.140035320
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 0x140014300
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400142fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014566
call fcn.140035320
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 0x140014358
inc r13d
cmp r13d, 0x32
jge 0x140014358
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x50]
jmp 0x140014010
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140014398
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014393
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001456c
call fcn.140035320
mov r13, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x1400143cc
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 0x140014455
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
jbe 0x14001443c
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14001443c
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014572
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 0x140014459
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14001452c
jmp 0x140014401
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14001449a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014494
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001457d
call fcn.140035320
nop
test r13, r13
je 0x1400144d0
mov rdx, qword [rbp - 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x1400144c7
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014526
mov rcx, r13
call fcn.140035320
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400144e1
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400144f2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.140035300
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.14003c3f8
nop
mov ecx, 0x8007000e
call fcn.1400131c0
nop
mov ecx, 0x80004003
call fcn.1400337a0
nop
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
call fcn.140001300
nop
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
mov ecx, 0x80004003
call fcn.1400337a0
nop
call fcn.14003c3f8
int3