Function at 0x1400127d0
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.140033fc0
sub rsp, rax
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor r13d, r13d
mov rcx, qword [0x14007d2d0]
test rcx, rcx
jne 0x140012831
call fcn.1400123b0
test al, al
je 0x14001315b
mov rcx, qword [0x14007d2d0]
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 0x140013146
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001319c
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x14006cad8]
call qword [rax]
test eax, eax
js 0x140013135
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x68]
lea rdx, [0x14006c3d4]
mov ecx, 0x65
call fcn.140011a60
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x1400130fd
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.140058630
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400130fd
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.1400025f0
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x140012920
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.1400064a0
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 0x1400129a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400129a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131a7
call fcn.140033920
movdqa xmm0, xmmword [0x1400702c0]
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, [0x14006c378]
lea rcx, [rbp - 0x60]
call fcn.1400025f0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8d, 2
lea rdx, [0x14006cabc]
lea rcx, [rbp + 0x20]
call fcn.1400025f0
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 0x140012a83
sub rax, rdi
cmp rbx, rax
ja 0x140012a83
test rdi, rdi
je 0x140012bda
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140012a83
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140012b9e
add rbx, 2
sub rax, 1
jne 0x140012a70
cmp r15, 7
jbe 0x140012abf
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140012ab6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131ad
mov rcx, r14
call fcn.140033920
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012aff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012afa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131d1
call fcn.140033920
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 0x140013006
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 0x1400131b3
cmp rdi, 7
ja 0x140012c1b
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 0x140012c70
test rbx, rbx
je 0x140012a83
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140012bd4
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140012c12
add rcx, 2
sub rdx, 1
jne 0x140012bc0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012a83
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.140017740
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x140012a20
add rbx, 2
jmp 0x140012a60
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140012c36
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.1400024c0
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.1400589f0
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.140002100
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.1400025f0
nop
mov edx, r12d
lea rcx, [rbp + 0x60]
call fcn.140013210
nop
mov r9d, 1
lea r8, [0x14006cad4]
lea rcx, [rbp + 0x60]
call fcn.1400064a0
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.140002d50
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 0x140012dc3
sub rax, rdi
cmp rbx, rax
ja 0x140012dc3
test rdi, rdi
je 0x140012f7a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140012dc3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140012f43
add rbx, 2
sub rax, 1
jne 0x140012db0
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140012e04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012dfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131b9
call fcn.140033920
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012e44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131bf
call fcn.140033920
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 0x140012e96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131c5
call fcn.140033920
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], bx
test r13b, r13b
je 0x140012ee0
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140012ed8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131cb
mov rcx, r14
call fcn.140033920
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 0x140012fbb
inc r12d
cmp r12d, 0x32
jge 0x140012fbb
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x60]
jmp 0x140012c80
test rbx, rbx
je 0x140012dc3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140012f74
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140012fb2
add rcx, 2
sub rdx, 1
jne 0x140012f60
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012dc3
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.140017740
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x140012d60
add rbx, 2
jmp 0x140012da0
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012ffb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ff6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131d1
call fcn.140033920
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x14001302f
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 0x1400130b8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x14001309f
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x14001309f
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400131d7
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 0x1400130bc
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013191
jmp 0x140013064
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400130fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131e2
call fcn.140033920
nop
test r12, r12
je 0x140013135
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x14001312c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001318b
mov rcx, r12
call fcn.140033920
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013146
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013157
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.140033900
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.14003a9f4
nop
mov ecx, 0x8007000e
call fcn.140011e50
nop
mov ecx, 0x80004003
call fcn.140031da0
nop
call fcn.14003a9f4
nop
call fcn.14003a9f4
nop
call fcn.140001300
nop
call fcn.14003a9f4
nop
call fcn.14003a9f4
nop
call fcn.14003a9f4
nop
call fcn.14003a9f4
nop
call fcn.14003a9f4
nop
mov ecx, 0x80004003
call fcn.140031da0
nop
call fcn.14003a9f4
int3