Function at 0x140074e00
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 r14
push r15
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
lea rcx, [r11 - 0x236]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov word [r11 - 0x238], r15w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], r15d
call sub.msvcrt.dll_memset
mov ebx, r15d
mov rcx, qword [str.___t_]
lea rbp, str.___t_
lea r14, [0x1400053c0]
mov sil, 2
cmp rcx, rbp
je 0x140074ea2
test byte [rcx + 0x1c], sil
je 0x140074ea2
cmp byte [rcx + 0x19], 5
jb 0x140074ea2
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x51]
mov r8, r14
call fcn.14000e618
mov rcx, rdi
call fcn.14007365c
mov rdi, rax
test rax, rax
jne 0x140074ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075071
test byte [rcx + 0x1c], sil
je 0x140075071
cmp byte [rcx + 0x19], sil
jb 0x140075071
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x52]
mov r9d, eax
mov r8, r14
call fcn.14000e63c
jmp 0x140075071
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140075035
test al, 0x10
je 0x140075035
lea r9, [rsp + 0x270]
lea rdx, [0x1400053a8]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140074f73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075069
test byte [rcx + 0x1c], sil
je 0x140075069
cmp byte [rcx + 0x19], sil
jb 0x140075069
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.14000e63c
jmp 0x140075069
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140074fb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140074ff9
test byte [rcx + 0x1c], sil
je 0x140074ff9
cmp byte [rcx + 0x19], sil
jb 0x140074ff9
mov edx, 0x55
jmp 0x140074fea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140074ff9
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140074ff9
test byte [rax + 0x1c], sil
je 0x140074ff9
cmp byte [rax + 0x19], sil
jb 0x140074ff9
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.14000e63c
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140075069
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075069
test byte [rcx + 0x1c], sil
je 0x140075069
cmp byte [rcx + 0x19], sil
jb 0x140075069
mov edx, 0x57
jmp 0x140074f5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075069
test byte [rcx + 0x1c], sil
je 0x140075069
cmp byte [rcx + 0x19], sil
jb 0x140075069
mov rcx, qword [rcx + 0x10]
mov edx, 0x53
mov r9d, eax
mov r8, r14
call fcn.14000e63c
mov rcx, rdi
call fcn.140072328
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140088640
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret