Function at 0x1400133d0
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.140031590
sub rsp, rax
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor r13d, r13d
mov rcx, qword [0x1400762e0]
test rcx, rcx
jne 0x140013431
call fcn.140012fb0
test al, al
je 0x140013d5b
mov rcx, qword [0x1400762e0]
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 0x140013d46
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013d9c
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x140066d58]
call qword [rax]
test eax, eax
js 0x140013d35
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x68]
lea rdx, [0x140066654]
mov ecx, 0x65
call fcn.140012660
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x140013cfd
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.140053250
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140013cfd
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.140002740
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x140013520
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.140006af0
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 0x1400135a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400135a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013da7
call fcn.140030ef0
movdqa xmm0, xmmword [0x140069900]
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, [0x1400665f8]
lea rcx, [rbp - 0x60]
call fcn.140002740
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8d, 2
lea rdx, [0x140066d3c]
lea rcx, [rbp + 0x20]
call fcn.140002740
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 0x140013683
sub rax, rdi
cmp rbx, rax
ja 0x140013683
test rdi, rdi
je 0x1400137da
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140013683
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001379e
add rbx, 2
sub rax, 1
jne 0x140013670
cmp r15, 7
jbe 0x1400136bf
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400136b6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dad
mov rcx, r14
call fcn.140030ef0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400136ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400136fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dd1
call fcn.140030ef0
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 0x140013c06
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 0x140013db3
cmp rdi, 7
ja 0x14001381b
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 0x140013870
test rbx, rbx
je 0x140013683
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x1400137d4
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140013812
add rcx, 2
sub rdx, 1
jne 0x1400137c0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140013683
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.140018350
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x140013620
add rbx, 2
jmp 0x140013660
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140013836
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.140002610
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.140053610
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.140002190
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.140002740
nop
mov edx, r12d
lea rcx, [rbp + 0x60]
call fcn.140013e10
nop
mov r9d, 1
lea r8, [0x140066d54]
lea rcx, [rbp + 0x60]
call fcn.140006af0
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.140003060
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 0x1400139c3
sub rax, rdi
cmp rbx, rax
ja 0x1400139c3
test rdi, rdi
je 0x140013b7a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x1400139c3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140013b43
add rbx, 2
sub rax, 1
jne 0x1400139b0
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140013a04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400139fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013db9
call fcn.140030ef0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140013a44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dbf
call fcn.140030ef0
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 0x140013a96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dc5
call fcn.140030ef0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], bx
test r13b, r13b
je 0x140013ae0
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140013ad8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dcb
mov rcx, r14
call fcn.140030ef0
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 0x140013bbb
inc r12d
cmp r12d, 0x32
jge 0x140013bbb
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x60]
jmp 0x140013880
test rbx, rbx
je 0x1400139c3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140013b74
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140013bb2
add rcx, 2
sub rdx, 1
jne 0x140013b60
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x1400139c3
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.140018350
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x140013960
add rbx, 2
jmp 0x1400139a0
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140013bfb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013bf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013dd1
call fcn.140030ef0
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x140013c2f
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 0x140013cb8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x140013c9f
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140013c9f
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013dd7
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 0x140013cbc
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013d91
jmp 0x140013c64
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140013cfd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013cf7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013de2
call fcn.140030ef0
nop
test r12, r12
je 0x140013d35
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140013d2c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013d8b
mov rcx, r12
call fcn.140030ef0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013d46
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013d57
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.140030ed0
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.140037dec
nop
mov ecx, 0x8007000e
call fcn.140012a50
nop
mov ecx, 0x80004003
call fcn.14002f370
nop
call fcn.140037dec
nop
call fcn.140037dec
nop
call fcn.140001300
nop
call fcn.140037dec
nop
call fcn.140037dec
nop
call fcn.140037dec
nop
call fcn.140037dec
nop
call fcn.140037dec
nop
mov ecx, 0x80004003
call fcn.14002f370
nop
call fcn.140037dec
int3