Function at 0x140014200
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.140038990
sub rsp, rax
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov rcx, qword [0x1400832e0]
test rcx, rcx
jne 0x140014260
call fcn.140013dd0
test al, al
je 0x140014ba6
mov rcx, qword [0x1400832e0]
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 0x140014b91
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014be7
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x58]
lea rdx, [0x14006fcc8]
call qword [rax]
test eax, eax
js 0x140014b80
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
lea rdx, [0x14006f5c4]
mov ecx, 0x65
call fcn.140013480
mov rax, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x48], r13
sub rax, r13
mov qword [rsp + 0x68], rax
je 0x140014b4a
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.14005b0e0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140014b4a
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.140002b20
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140014360
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.140008110
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 0x1400143e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400143e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014bf2
call fcn.1400382f0
movdqa xmm0, xmmword [0x140075020]
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, [0x14006f558]
lea rcx, [rbp - 0x50]
call fcn.140002b20
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rbx
mov r8d, 2
lea rdx, [0x14006fcac]
lea rcx, [rbp + 0x30]
call fcn.140002b20
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 0x14001454c
sub rax, rdi
cmp rbx, rax
ja 0x14001454c
test rdi, rdi
je 0x14001450f
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 0x1400144dc
cmp word [rbx], r9w
je 0x1400144d9
cmp rax, 1
je 0x1400144dc
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x1400144c6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14001454c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140014509
mov r8, rbx
sub r8, r10
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140014543
add rcx, 2
sub rdx, 1
jne 0x1400144f5
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001454c
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.140018d30
mov r14, qword [rbp - 0x40]
add rbx, r14
jmp 0x140014460
add rbx, 2
jmp 0x1400144b0
cmp r12, 7
jbe 0x140014588
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x14001457f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014bf8
mov rcx, r15
call fcn.1400382f0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400145c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400145c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c1c
call fcn.1400382f0
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 0x140014a53
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 0x140014bfe
cmp rdi, 7
ja 0x140014663
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 0x1400146ba
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x14001467e
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.1400029c0
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.14005b4a0
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.1400023c0
mov edx, r13d
lea rcx, [rbp + 0x70]
call fcn.140014c60
nop
mov r9d, 1
lea r8, [0x14006fcc4]
lea rcx, [rbp + 0x70]
call fcn.140008110
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.140003700
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.140002b20
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 0x14001489b
sub rax, rdi
cmp rbx, rax
ja 0x14001489b
test rdi, rdi
je 0x14001485a
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 0x140014827
cmp word [rbx], r9w
je 0x140014824
cmp rax, 1
je 0x140014827
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140014811
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14001489b
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140014854
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140014890
add rcx, 2
sub rdx, 1
jne 0x140014840
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001489b
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.140018d30
mov r14, qword [rbp]
add rbx, r14
xor ecx, ecx
jmp 0x1400147b0
add rbx, 2
xor ecx, ecx
jmp 0x140014800
cmp byte [rsp + 0x40], 0
je 0x1400148d8
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400148cf
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c04
mov rcx, r15
call fcn.1400382f0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140014919
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014913
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c0a
call fcn.1400382f0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140014959
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014954
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c10
call fcn.1400382f0
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 0x1400149b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400149ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c16
call fcn.1400382f0
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 0x140014a08
inc r13d
cmp r13d, 0x32
jge 0x140014a08
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x50]
jmp 0x1400146c0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140014a48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014a43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c1c
call fcn.1400382f0
mov r13, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x140014a7c
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 0x140014b05
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
jbe 0x140014aec
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x140014aec
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014c22
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 0x140014b09
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140014bdc
jmp 0x140014ab1
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140014b4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014b44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c2d
call fcn.1400382f0
nop
test r13, r13
je 0x140014b80
mov rdx, qword [rbp - 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140014b77
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014bd6
mov rcx, r13
call fcn.1400382f0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014b91
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014ba2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.1400382d0
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.14003f1ec
nop
mov ecx, 0x8007000e
call fcn.140013870
nop
mov ecx, 0x80004003
call fcn.140036770
nop
call fcn.14003f1ec
nop
call fcn.14003f1ec
nop
call fcn.140001300
nop
call fcn.14003f1ec
nop
call fcn.14003f1ec
nop
call fcn.14003f1ec
nop
call fcn.14003f1ec
nop
call fcn.14003f1ec
nop
mov ecx, 0x80004003
call fcn.140036770
nop
call fcn.14003f1ec
int3