Function at 0x14009f7b0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140353240]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rsi, rcx
mov qword [rbp - 0x78], rcx
xor r13d, r13d
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
lea rax, [rbp + 0xc0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r13b
jne 0x14009f821
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x70]
call fcn.140022740
nop
lea rdi, [rbp - 0x70]
mov r15, qword [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdi, r15
mov r14, qword [rbp - 0x60]
test r14, r14
je 0x14009f8c8
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140301368]
lea rdx, [0x14030136a]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x50], 1
inc rcx
cmp rcx, rdx
jne 0x14009f880
lea rax, [r14 - 1]
mov r8, rbx
cmp rax, rbx
cmovb r8, rax
add r8, rdi
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x50], 0
jne 0x14009f8c3
nop dword [rax]
cmp r8, rdi
je 0x14009f8c8
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x50], 0
je 0x14009f8b0
sub r8, rdi
jmp 0x14009f8cb
mov r8, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp r14, r8
cmovb r8, r14
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140022740
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14009f938
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f933
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009f933
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14028653c
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x140311250]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.140022880
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14009fb96
test al, 0x10
je 0x14009fb96
test al, 1
jne 0x14009fb96
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rcx, qword [rbp - 0x60]
sub rax, rcx
cmp rax, 9
jb 0x14009fc78
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 9
lea r15, str._test.tmp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.140024c90
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.1400a0b60
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rsp + 0x40]
call fcn.140022880
cmp qword [rbp + 0x38], 0
je 0x14009fb5a
lea rcx, [rbp - 0x48]
call fcn.1400a0aa0
test rax, rax
jne 0x14009fa75
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, rdi
mov rcx, qword [rbp - 0x60]
sub rax, rcx
cmp rax, 9
jb 0x14009fc7e
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 9
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140024c90
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x60]
call fcn.140022880
mov rax, qword [rbp - 0x60]
sub rdi, rax
cmp rdi, 1
jb 0x14009fc72
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rcx, [0x14030137c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140024c90
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rbp + rdx - 0x54], r8d
lea rcx, [rbp - 0x48]
call fcn.1400a08c0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14009fc3b
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400a08c0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0x1d0]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009fbd0
mov r8, rbx
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x60]
call fcn.140022740
nop
mov r8d, 0x12
lea rdx, str.Knuckle_Knockout_
lea rcx, [rsp + 0x60]
call fcn.140025130
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call fcn.140022880
nop
lea rcx, [rbp - 0x70]
call fcn.140022880
mov rax, rsi
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.1402863b0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.140022580
nop
call fcn.140022580
nop
call fcn.140022580
int3