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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
lea rcx, [r11 - 0x236]
xor r13d, r13d
xor edx, edx
mov r8d, 0x206
mov word [r11 - 0x238], r13w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], r13d
call sub.msvcrt.dll_memset
mov ebx, r13d
mov rcx, qword [str.P5_n_]
lea rbp, str.P5_n_
lea r12, [0x140008e18]
mov sil, 2
cmp rcx, rbp
je 0x140079e56
test byte [rcx + 0x1c], sil
je 0x140079e56
cmp byte [rcx + 0x19], 5
jb 0x140079e56
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x51]
mov r8, r12
call fcn.14000ffa8
mov rcx, rdi
call fcn.140077df4
mov rdi, rax
cmp rax, r13
jne 0x140079eab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14007a02a
test byte [rcx + 0x1c], sil
je 0x14007a02a
cmp byte [rcx + 0x19], sil
jb 0x14007a02a
mov rcx, qword [rcx + 0x10]
mov edx, 0x52
mov r9d, eax
mov r8, r12
call fcn.1400100e0
jmp 0x14007a02a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140079fee
test al, 0x10
je 0x140079fee
lea r9, [rsp + 0x270]
lea rdx, [0x14000d078]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, r13d
jne 0x140079f2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14007a022
test byte [rcx + 0x1c], sil
je 0x14007a022
cmp byte [rcx + 0x19], sil
jb 0x14007a022
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.1400100e0
jmp 0x14007a022
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140079f6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x140079fb1
test byte [rcx + 0x1c], sil
je 0x140079fb1
cmp byte [rcx + 0x19], sil
jb 0x140079fb1
mov edx, 0x55
jmp 0x140079fa2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, r13d
jne 0x140079fb1
mov rax, qword [str.P5_n_]
cmp rax, rbp
je 0x140079fb1
test byte [rax + 0x1c], sil
je 0x140079fb1
cmp byte [rax + 0x19], sil
jb 0x140079fb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x56
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.1400100e0
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r13d
jne 0x14007a022
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14007a022
test byte [rcx + 0x1c], sil
je 0x14007a022
cmp byte [rcx + 0x19], sil
jb 0x14007a022
mov edx, 0x57
jmp 0x140079f16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14007a022
test byte [rcx + 0x1c], sil
je 0x14007a022
cmp byte [rcx + 0x19], sil
jb 0x14007a022
mov rcx, qword [rcx + 0x10]
mov edx, 0x53
mov r9d, eax
mov r8, r12
call fcn.1400100e0
mov rcx, rdi
call fcn.140076afc
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14008c5b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret