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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x490
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call sub.msvcrt.dll_memset
xor ebx, ebx
mov rcx, qword [str.___t_]
lea rbp, str.___t_
lea r14, [0x140083e00]
mov sil, 2
cmp rcx, rbp
je 0x14006511f
test byte [rcx + 0x1c], sil
je 0x14006511f
cmp byte [rcx + 0x19], 5
jb 0x14006511f
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x51]
mov r8, r14
call fcn.140001010
mov rcx, rdi
call fcn.140063944
mov rdi, rax
test rax, rax
jne 0x140065172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x1400652ee
test byte [rcx + 0x1c], sil
je 0x1400652ee
cmp byte [rcx + 0x19], sil
jb 0x1400652ee
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x52]
mov r9d, eax
mov r8, r14
call fcn.140001030
jmp 0x1400652ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400652b2
test al, 0x10
je 0x1400652b2
lea r9, [rsp + 0x270]
xor r8d, r8d
lea rdx, [0x140083df8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400651f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x1400652e6
test byte [rcx + 0x1c], sil
je 0x1400652e6
cmp byte [rcx + 0x19], sil
jb 0x1400652e6
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.140001030
jmp 0x1400652e6
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140065230
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140065276
test byte [rcx + 0x1c], sil
je 0x140065276
cmp byte [rcx + 0x19], sil
jb 0x140065276
mov edx, 0x55
jmp 0x140065267
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140065276
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140065276
test byte [rax + 0x1c], sil
je 0x140065276
cmp byte [rax + 0x19], sil
jb 0x140065276
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x56
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.140001030
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400652e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x1400652e6
test byte [rcx + 0x1c], sil
je 0x1400652e6
cmp byte [rcx + 0x19], sil
jb 0x1400652e6
mov edx, 0x57
jmp 0x1400651dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x1400652e6
test byte [rcx + 0x1c], sil
je 0x1400652e6
cmp byte [rcx + 0x19], sil
jb 0x1400652e6
mov rcx, qword [rcx + 0x10]
mov edx, 0x53
mov r9d, eax
mov r8, r14
call fcn.140001030
mov rcx, rdi
call fcn.140062654
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140077900
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret