Function at 0x1400139f0
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.140037570
sub rsp, rax
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor r13d, r13d
mov rcx, qword [0x1400812e0]
test rcx, rcx
jne 0x140013a51
call fcn.1400135d0
test al, al
je 0x14001437b
mov rcx, qword [0x1400812e0]
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 0x140014366
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400143bc
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x14006cce8]
call qword [rax]
test eax, eax
js 0x140014355
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x68]
lea rdx, [0x14006c5e4]
mov ecx, 0x65
call fcn.140012c80
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x14001431d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.1400592e0
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001431d
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.140002800
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x140013b40
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.1400079a0
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 0x140013bc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013bc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143c7
call fcn.140036ed0
movdqa xmm0, xmmword [0x140073070]
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, [0x14006c578]
lea rcx, [rbp - 0x60]
call fcn.140002800
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8d, 2
lea rdx, [0x14006cccc]
lea rcx, [rbp + 0x20]
call fcn.140002800
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 0x140013ca3
sub rax, rdi
cmp rbx, rax
ja 0x140013ca3
test rdi, rdi
je 0x140013dfa
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140013ca3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140013dbe
add rbx, 2
sub rax, 1
jne 0x140013c90
cmp r15, 7
jbe 0x140013cdf
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140013cd6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143cd
mov rcx, r14
call fcn.140036ed0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140013d1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143f1
call fcn.140036ed0
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 0x140014226
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 0x1400143d3
cmp rdi, 7
ja 0x140013e3b
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 0x140013e90
test rbx, rbx
je 0x140013ca3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140013df4
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140013e32
add rcx, 2
sub rdx, 1
jne 0x140013de0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013ca3
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.140018460
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x140013c40
add rbx, 2
jmp 0x140013c80
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140013e56
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.1400026d0
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.1400596a0
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.140002800
nop
mov edx, r12d
lea rcx, [rbp + 0x60]
call fcn.140014430
nop
mov r9d, 1
lea r8, [0x14006cce4]
lea rcx, [rbp + 0x60]
call fcn.1400079a0
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.140003340
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 0x140013fe3
sub rax, rdi
cmp rbx, rax
ja 0x140013fe3
test rdi, rdi
je 0x14001419a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140013fe3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140014163
add rbx, 2
sub rax, 1
jne 0x140013fd0
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140014024
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001401e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143d9
call fcn.140036ed0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140014064
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001405f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143df
call fcn.140036ed0
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 0x1400140b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143e5
call fcn.140036ed0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], bx
test r13b, r13b
je 0x140014100
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400140f8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143eb
mov rcx, r14
call fcn.140036ed0
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 0x1400141db
inc r12d
cmp r12d, 0x32
jge 0x1400141db
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x60]
jmp 0x140013ea0
test rbx, rbx
je 0x140013fe3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140014194
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1400141d2
add rcx, 2
sub rdx, 1
jne 0x140014180
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013fe3
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.140018460
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x140013f80
add rbx, 2
jmp 0x140013fc0
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14001421b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143f1
call fcn.140036ed0
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x14001424f
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 0x1400142d8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x1400142bf
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x1400142bf
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400143f7
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 0x1400142dc
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400143b1
jmp 0x140014284
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14001431d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014317
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014402
call fcn.140036ed0
nop
test r12, r12
je 0x140014355
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x14001434c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400143ab
mov rcx, r12
call fcn.140036ed0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014366
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014377
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.140036eb0
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.14003ddcc
nop
mov ecx, 0x8007000e
call fcn.140013070
nop
mov ecx, 0x80004003
call fcn.140035350
nop
call fcn.14003ddcc
nop
call fcn.14003ddcc
nop
call fcn.140001340
nop
call fcn.14003ddcc
nop
call fcn.14003ddcc
nop
call fcn.14003ddcc
nop
call fcn.14003ddcc
nop
call fcn.14003ddcc
nop
mov ecx, 0x80004003
call fcn.140035350
nop
call fcn.14003ddcc
int3