Function at 0x140017ae0
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.14003eea0
sub rsp, rax
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov rcx, qword [0x14008d360]
test rcx, rcx
jne 0x140017b40
call fcn.1400176b0
test al, al
je 0x140018486
mov rcx, qword [0x14008d360]
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 0x140018471
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400184c7
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x58]
lea rdx, [0x140077b98]
call qword [rax]
test eax, eax
js 0x140018460
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
lea r8, [rsp + 0x78]
lea rdx, [0x14007748c]
mov ecx, 0x65
call fcn.140016d80
mov rax, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x48], r13
sub rax, r13
mov qword [rsp + 0x68], rax
je 0x14001842a
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.1400635b0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001842a
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.140004b70
nop
lea rax, [rbp + 0x90]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140017c40
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.14000b930
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 0x140017cc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017cc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184d2
call fcn.14003e800
movdqa xmm0, xmmword [0x14007e880]
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, [0x140073d08]
lea rcx, [rbp - 0x50]
call fcn.140004b70
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rbx
mov r8d, 2
lea rdx, [0x140077b7c]
lea rcx, [rbp + 0x30]
call fcn.140004b70
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 0x140017e2c
sub rax, rdi
cmp rbx, rax
ja 0x140017e2c
test rdi, rdi
je 0x140017def
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 0x140017dbc
cmp word [rbx], r9w
je 0x140017db9
cmp rax, 1
je 0x140017dbc
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x140017da6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140017e2c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140017de9
mov r8, rbx
sub r8, r10
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140017e23
add rcx, 2
sub rdx, 1
jne 0x140017dd5
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140017e2c
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.14001cb90
mov r14, qword [rbp - 0x40]
add rbx, r14
jmp 0x140017d40
add rbx, 2
jmp 0x140017d90
cmp r12, 7
jbe 0x140017e68
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140017e5f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184d8
mov rcx, r15
call fcn.14003e800
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140017ea8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017ea3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184fc
call fcn.14003e800
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 0x140018333
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 0x1400184de
cmp rdi, 7
ja 0x140017f43
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 0x140017f9a
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140017f5e
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.140004b00
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.140063970
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.140004770
mov edx, r13d
lea rcx, [rbp + 0x70]
call fcn.140018540
nop
mov r9d, 1
lea r8, [0x140077b94]
lea rcx, [rbp + 0x70]
call fcn.14000b930
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
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x30]
call fcn.140005430
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.140004b70
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]
nop word [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 0x14001817b
sub rax, rdi
cmp rbx, rax
ja 0x14001817b
test rdi, rdi
je 0x14001813a
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 0x140018107
cmp word [rbx], r9w
je 0x140018104
cmp rax, 1
je 0x140018107
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x1400180f1
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14001817b
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x140018134
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140018170
add rcx, 2
sub rdx, 1
jne 0x140018120
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001817b
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.14001cb90
mov r14, qword [rbp]
add rbx, r14
xor ecx, ecx
jmp 0x140018090
add rbx, 2
xor ecx, ecx
jmp 0x1400180e0
cmp byte [rsp + 0x40], 0
je 0x1400181b8
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400181af
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184e4
mov rcx, r15
call fcn.14003e800
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x1400181f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400181f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184ea
call fcn.14003e800
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x140018239
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018234
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184f0
call fcn.14003e800
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 0x140018290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001828b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184f6
call fcn.14003e800
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 0x1400182e8
inc r13d
cmp r13d, 0x32
jge 0x1400182e8
mov rbx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x50]
jmp 0x140017fa0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140018328
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184fc
call fcn.14003e800
mov r13, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x14001835c
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 0x1400183e5
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
jbe 0x1400183cc
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400183cc
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018502
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 0x1400183e9
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400184bc
jmp 0x140018391
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14001842a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018424
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001850d
call fcn.14003e800
nop
test r13, r13
je 0x140018460
mov rdx, qword [rbp - 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140018457
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184b6
mov rcx, r13
call fcn.14003e800
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018471
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140018482
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14003e7e0
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.1400457dc
nop
mov ecx, 0x8007000e
call fcn.140017150
nop
mov ecx, 0x80004003
call fcn.14003cc80
nop
call fcn.1400457dc
nop
call fcn.1400457dc
nop
call fcn.140001300
nop
call fcn.1400457dc
nop
call fcn.1400457dc
nop
call fcn.1400457dc
nop
call fcn.1400457dc
nop
call fcn.1400457dc
nop
mov ecx, 0x80004003
call fcn.14003cc80
nop
call fcn.1400457dc
int3