Function at 0x140013250
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 - 0x2090]
mov eax, 0x2190
call fcn.140037a80
sub rsp, rax
mov rax, qword [0x140083040]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor r13d, r13d
mov rcx, qword [0x1400862e0]
test rcx, rcx
jne 0x1400132b1
call fcn.140012e30
test al, al
je 0x140013bdb
mov rcx, qword [0x1400862e0]
xor dil, dil
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], r13
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x140013bc6
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013c1c
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x14006ecb8]
call qword [rax]
test eax, eax
js 0x140013bb5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x68]
lea rdx, [0x14006e5b4]
mov ecx, 0x65
call fcn.1400124e0
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x140013b7d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.1400597f0
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140013b7d
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp]
call fcn.140002870
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x1400133a0
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.140007170
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140013429
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013424
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c27
call fcn.1400372c0
movdqa xmm0, xmmword [0x1400788a0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov r8d, 1
lea rdx, [0x14006e548]
lea rcx, [rbp - 0x60]
call fcn.140002870
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8d, 2
lea rdx, [0x14006ec9c]
lea rcx, [rbp + 0x20]
call fcn.140002870
nop
mov rbx, r13
mov r15, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x20]
mov rsi, qword [rbp - 0x50]
nop word [rax + rax]
lea r9, [rbp + 0x20]
cmp r15, 7
cmova r9, r14
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140013503
sub rax, rdi
cmp rbx, rax
ja 0x140013503
test rdi, rdi
je 0x14001365a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140013503
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001361e
add rbx, 2
sub rax, 1
jne 0x1400134f0
cmp r15, 7
jbe 0x14001353f
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140013536
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c2d
mov rcx, r14
call fcn.1400372c0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14001357f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001357a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c51
call fcn.1400372c0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r13
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 0x140013a86
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r14, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x70]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x140013c33
cmp rdi, 7
ja 0x14001369b
mov qword [rbp - 0x50], rdi
mov ebx, 7
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x60], xmm0
movq rsi, xmm0
jmp 0x1400136f0
test rbx, rbx
je 0x140013503
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140013654
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140013692
add rcx, 2
sub rdx, 1
jne 0x140013640
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013503
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017cc0
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x1400134a0
add rbx, 2
jmp 0x1400134e0
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x1400136b6
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rax, [rbx + 1]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140002740
mov rsi, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.140059bb0
nop
mov r12d, r13d
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x60]
cmp rbx, 7
cmova rdx, rsi
mov r8, rdi
lea rcx, [rbp - 0x80]
call fcn.140002310
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r13
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x40]
call fcn.140002870
nop
mov edx, r12d
lea rcx, [rbp + 0x60]
call fcn.140013c90
nop
mov r9d, 1
lea r8, [0x14006ecb4]
lea rcx, [rbp + 0x60]
call fcn.140007170
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x40]
call fcn.140003410
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rbx, r13
mov r15, qword [rbp + 0x58]
cmp r15, 7
seta r13b
mov rdi, qword [rbp + 0x50]
mov r14, qword [rbp + 0x40]
mov rsi, qword [rbp - 0x10]
nop
lea r9, [rbp + 0x40]
cmp r15, 7
cmova r9, r14
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140013843
sub rax, rdi
cmp rbx, rax
ja 0x140013843
test rdi, rdi
je 0x1400139fa
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140013843
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x1400139c3
add rbx, 2
sub rax, 1
jne 0x140013830
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140013884
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001387e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c39
call fcn.1400372c0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400138c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400138bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c3f
call fcn.1400372c0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x140013916
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013911
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c45
call fcn.1400372c0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], bx
test r13b, r13b
je 0x140013960
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140013958
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c4b
mov rcx, r14
call fcn.1400372c0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140013a3b
inc r12d
cmp r12d, 0x32
jge 0x140013a3b
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x60]
jmp 0x140013700
test rbx, rbx
je 0x140013843
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x1400139f4
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140013a32
add rcx, 2
sub rdx, 1
jne 0x1400139e0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013843
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova r9, qword [rbp - 0x20]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017cc0
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x1400137e0
add rbx, 2
jmp 0x140013820
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140013a7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c51
call fcn.1400372c0
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x140013aaf
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013b38
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x140013b1f
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140013b1f
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013c57
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
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 0x140013b3c
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013c11
jmp 0x140013ae4
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140013b7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013b77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c62
call fcn.1400372c0
nop
test r12, r12
je 0x140013bb5
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140013bac
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c0b
mov rcx, r12
call fcn.1400372c0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013bc6
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013bd7
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.1400372a0
lea r11, [rsp + 0x2190]
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.14003e2dc
nop
mov ecx, 0x8007000e
call fcn.1400128d0
nop
mov ecx, 0x80004003
call fcn.140035740
nop
call fcn.14003e2dc
nop
call fcn.14003e2dc
nop
call fcn.140001340
nop
call fcn.14003e2dc
nop
call fcn.14003e2dc
nop
call fcn.14003e2dc
nop
call fcn.14003e2dc
nop
call fcn.14003e2dc
nop
mov ecx, 0x80004003
call fcn.140035740
nop
call fcn.14003e2dc
int3