Function at 0x14002f310
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.140076e90
sub rsp, rax
mov rax, qword [0x1400df080]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rcx, qword [0x1400e3090]
test rcx, rcx
jne 0x14002f36e
call fcn.14002eee0
test al, al
je 0x14002fd3e
mov rcx, qword [0x1400e3090]
xor dil, dil
xor esi, esi
mov qword [rsp + 0x58], rsi
mov rax, qword [rcx]
mov qword [rsp + 0x58], rsi
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x14002fd29
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002fd7f
mov rax, qword [rcx]
mov qword [rsp + 0x50], rsi
lea r8, [rsp + 0x50]
lea rdx, [0x1400c8b18]
call qword [rax]
test eax, eax
js 0x14002fd18
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
lea r8, [rsp + 0x68]
lea rdx, [0x1400c840c]
lea ecx, [rsi + 0x65]
call fcn.140042410
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
sub rax, rbx
mov qword [rsp + 0x60], rax
je 0x14002fce1
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.140078c70
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002fce1
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
lea r8d, [rsi + 0x11]
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp - 0x20]
call fcn.140005660
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], 0
jne 0x14002f460
lea r8, [rbp + 0x90]
lea rcx, [rbp - 0x20]
call fcn.14002fe70
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14002f4e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f4e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd8a
call fcn.1400761b0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov r8d, 1
lea rdx, [0x1400c8b78]
lea rcx, [rbp - 0x60]
call fcn.140005660
nop
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov r8d, 2
lea rdx, [0x1400c8afc]
lea rcx, [rbp - 0x40]
call fcn.140005660
nop
mov rbx, rsi
cmp qword [rbp - 0x28], 8
setae r12b
mov rdi, qword [rbp - 0x30]
mov r13, qword [rbp - 0x40]
mov r15, qword [rbp - 0x50]
nop dword [rax]
nop word [rax + rax]
lea r11, [rbp - 0x40]
test r12b, r12b
cmovne r11, r13
lea rsi, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rsi, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x14002f66c
sub rax, rdi
cmp rbx, rax
ja 0x14002f66c
test rdi, rdi
je 0x14002f638
lea r14, [rax + 1]
lea r14, [rsi + r14*2]
lea rbx, [rsi + rbx*2]
movzx r10d, word [r11]
nop dword [rax + rax]
mov rax, r14
sub rax, rbx
sar rax, 1
mov ecx, 0
je 0x14002f5ec
cmp word [rbx], r10w
je 0x14002f5e9
cmp rax, 1
je 0x14002f5ec
dec rax
add rbx, 2
cmp word [rbx], r10w
jne 0x14002f5d6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14002f66c
mov r8, rdi
mov rax, r11
movzx ecx, word [rcx]
movzx edx, r10w
cmp cx, r10w
jb 0x14002f62c
mov r9, rbx
sub r9, r11
cmp cx, dx
ja 0x14002f62c
cmp r8, 1
je 0x14002f632
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x14002f610
add rbx, 2
jmp 0x14002f5c0
sub rbx, rsi
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14002f66c
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], r15
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140046c70
mov r15, qword [rbp - 0x50]
add rbx, r15
jmp 0x14002f570
test r12b, r12b
je 0x14002f6ab
mov rdx, qword [rbp - 0x28]
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14002f6a2
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd90
mov rcx, r13
call fcn.1400761b0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14002f6eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f6e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fdb4
call fcn.1400761b0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002fbe8
mov r15, qword [rbp - 0x70]
lea rbx, [rbp - 0x80]
mov rsi, qword [rbp - 0x68]
cmp rsi, 8
cmovae rbx, qword [rbp - 0x80]
movabs rdx, 0x7ffffffffffffffe
cmp r15, 8
jae 0x14002f76c
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x40], xmm0
mov edi, 7
mov qword [rsp + 0x48], rdi
mov r13, qword [rbp - 0x40]
jmp 0x14002f7b4
mov rdi, r15
or rdi, 7
cmp rdi, rdx
cmova rdi, rdx
mov qword [rsp + 0x48], rdi
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x40]
call fcn.14001de20
mov r13, rax
mov qword [rbp - 0x40], rax
lea r8, [r15*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.1400785c0
mov rsi, qword [rbp - 0x68]
movabs rdx, 0x7ffffffffffffffe
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], r15
mov r12d, r14d
cmp rdi, 8
setae al
mov byte [rsp + 0x40], al
nop word [rax + rax]
lea r14, [rbp - 0x40]
test al, al
cmovne r14, r13
cmp r15, rsi
ja 0x14002f80f
lea rdi, [rbp - 0x80]
cmp rsi, 8
cmovae rdi, qword [rbp - 0x80]
mov qword [rbp - 0x70], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.1400785c0
xor r14d, r14d
mov word [rdi + rbx], r14w
jmp 0x14002f8bc
cmp r15, rdx
ja 0x14002fdba
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x14002f829
mov rbx, rdx
jmp 0x14002f84a
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rsi, rax
jbe 0x14002f83f
mov rbx, rdx
jmp 0x14002f84a
lea rax, [rcx + rsi]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.14001de20
mov rdi, rax
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, rax
call fcn.1400785c0
xor r14d, r14d
mov word [rdi + rbx], r14w
cmp rsi, 8
jb 0x14002f8b8
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f8b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd96
call fcn.1400761b0
mov qword [rbp - 0x80], rdi
lea r9, [rbp + 0x8a]
mov r8d, r12d
test r12d, r12d
jns 0x14002f910
neg r8d
nop
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14002f8d0
add r9, 0xfffffffffffffffe
mov eax, 0x2d
mov word [r9], ax
jmp 0x14002f940
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14002f910
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rax, [rbp + 0x8a]
cmp r9, rax
je 0x14002f97b
lea r8, [rbp + 0x8a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp + 0x20]
call fcn.140005660
nop
mov r9d, 1
lea r8, [0x1400c8b14]
lea rcx, [rbp + 0x20]
call fcn.14002fe70
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x60]
call fcn.14002bab0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov qword [rbp], r14
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], 7
mov word [rbp], r14w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp]
call fcn.140005660
nop
lea r8, [rbp + 0x40]
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140042ab0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14002fa70
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fa6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd9c
call fcn.1400761b0
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x14002fab1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002faab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fda2
call fcn.1400761b0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14002faf1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002faec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fda8
call fcn.1400761b0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x14002fb42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fb3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fdae
call fcn.1400761b0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r14
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 0x14002fba1
inc r12d
cmp r12d, 0x32
jge 0x14002fba1
mov rsi, qword [rbp - 0x68]
movzx eax, byte [rsp + 0x40]
movabs rdx, 0x7ffffffffffffffe
jmp 0x14002f7d0
cmp byte [rsp + 0x40], 0
je 0x14002fbe2
mov rdx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14002fbda
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fdb4
mov rcx, r13
call fcn.1400761b0
cmp rbx, 0xffffffffffffffff
je 0x14002fc13
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
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], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fc99
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x14002fc80
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x14002fc80
mov rbx, r14
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x48], r14d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002fdc0
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
test eax, eax
setns dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14002fc9c
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002fd74
jmp 0x14002fc48
xor dil, dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14002fcdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fcd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fdcb
call fcn.1400761b0
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14002fd18
mov rdx, qword [rsp + 0x78]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14002fd0f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd6e
mov rcx, rbx
call fcn.1400761b0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002fd29
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002fd3a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.140076190
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.14007cacc
nop
mov ecx, 0x8007000e
call fcn.14002e8c0
nop
mov ecx, 0x80004003
call fcn.140073540
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.14007cacc
nop
call fcn.140002550
nop
mov ecx, 0x80004003
call fcn.140073540
nop
call fcn.14007cacc
int3