Function at 0x140012910
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.140030f90
sub rsp, rax
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov rcx, qword [0x1400772e0]
test rcx, rcx
jne 0x140012970
call fcn.1400124e0
test al, al
je 0x1400132a6
mov rcx, qword [0x1400772e0]
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 0x140013291
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400132e7
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x58]
lea rdx, [0x140067c98]
call qword [rax]
test eax, eax
js 0x140013280
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
lea rdx, [0x140067594]
mov ecx, 0x65
call fcn.140011b90
mov rax, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x48], r13
sub rax, r13
mov qword [rsp + 0x68], rax
je 0x14001324a
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.140053630
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001324a
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.140002870
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140012a70
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.140006680
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 0x140012af8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012af3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400132f2
call fcn.1400308f0
movdqa xmm0, xmmword [0x14006a750]
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, [0x140067538]
lea rcx, [rbp - 0x50]
call fcn.140002870
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rbx
mov r8d, 2
lea rdx, [0x140067c7c]
lea rcx, [rbp + 0x30]
call fcn.140002870
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 0x140012c5c
sub rax, rdi
cmp rbx, rax
ja 0x140012c5c
test rdi, rdi
je 0x140012c1f
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 0x140012bec
cmp word [rbx], r9w
je 0x140012be9
cmp rax, 1
je 0x140012bec
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140012bd6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140012c5c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140012c19
mov r8, rbx
sub r8, r10
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140012c53
add rcx, 2
sub rdx, 1
jne 0x140012c05
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012c5c
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.140017270
mov r14, qword [rbp - 0x40]
add rbx, r14
jmp 0x140012b70
add rbx, 2
jmp 0x140012bc0
cmp r12, 7
jbe 0x140012c98
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140012c8f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400132f8
mov rcx, r15
call fcn.1400308f0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140012cd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012cd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001331c
call fcn.1400308f0
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 0x140013153
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 0x1400132fe
cmp rdi, 7
ja 0x140012d73
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 0x140012dca
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140012d8e
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.140002710
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.1400539f0
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.140013360
nop
mov r9d, 1
lea r8, [0x140067c94]
lea rcx, [rbp + 0x70]
call fcn.140006680
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
lea rdx, str..tmp
lea rcx, [rbp - 0x30]
call fcn.1400052c0
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.140002870
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 + 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 0x140012f9b
sub rax, rdi
cmp rbx, rax
ja 0x140012f9b
test rdi, rdi
je 0x140012f5a
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 0x140012f27
cmp word [rbx], r9w
je 0x140012f24
cmp rax, 1
je 0x140012f27
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140012f11
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140012f9b
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140012f54
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140012f90
add rcx, 2
sub rdx, 1
jne 0x140012f40
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012f9b
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.140017270
mov r14, qword [rbp]
add rbx, r14
xor ecx, ecx
jmp 0x140012eb0
add rbx, 2
xor ecx, ecx
jmp 0x140012f00
cmp byte [rsp + 0x40], 0
je 0x140012fd8
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140012fcf
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013304
mov rcx, r15
call fcn.1400308f0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140013019
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013013
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001330a
call fcn.1400308f0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140013059
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013054
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013310
call fcn.1400308f0
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 0x1400130b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013316
call fcn.1400308f0
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 0x140013108
inc r13d
cmp r13d, 0x32
jge 0x140013108
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x50]
jmp 0x140012dd0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140013148
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013143
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001331c
call fcn.1400308f0
mov r13, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x14001317c
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 0x140013205
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
jbe 0x1400131ec
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400131ec
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013322
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 0x140013209
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400132dc
jmp 0x1400131b1
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14001324a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013244
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001332d
call fcn.1400308f0
nop
test r13, r13
je 0x140013280
mov rdx, qword [rbp - 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140013277
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400132d6
mov rcx, r13
call fcn.1400308f0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013291
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400132a2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.1400308d0
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.1400377ec
nop
mov ecx, 0x8007000e
call fcn.140011f80
nop
mov ecx, 0x80004003
call fcn.14002ed70
nop
call fcn.1400377ec
nop
call fcn.1400377ec
nop
call fcn.140001300
nop
call fcn.1400377ec
nop
call fcn.1400377ec
nop
call fcn.1400377ec
nop
call fcn.1400377ec
nop
call fcn.1400377ec
nop
mov ecx, 0x80004003
call fcn.14002ed70
nop
call fcn.1400377ec
int3