Function at 0x14003b560
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x18], 8
movzx ebx, dl
mov rdi, rcx
jb 0x14003b57a
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14003b7b6
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
jb 0x14003b59f
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003b5b2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
lea rbp, [0x1400c3148]
sete sil
je 0x14003b6d0
test bl, bl
je 0x14003b6d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14003b6d0
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003b5f0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r8d, eax
test al, 1
je 0x14003b6d0
mov rax, qword [0x1400ed810]
test rax, rax
je 0x14003b653
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003b61a
mov rcx, qword [rdi]
mov dword [rsp + 0x38], r8d
lea rdx, str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov qword [rsp + 0x30], rcx
lea r8, str.FileUtils
mov qword [rsp + 0x28], rdx
mov r9, rbp
lea rdx, str.OOBEUtils
mov qword [rsp + 0x20], rbp
mov ecx, 0x14
call qword [case.0x140049d6d.0]
jmp 0x14003b69e
mov rcx, qword [0x1400ed818]
test rcx, rcx
je 0x14003b69e
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14003b66c
mov rdx, qword [rdi]
mov rax, qword [rcx]
lea r9, str.FileUtils
mov dword [rsp + 0x30], r8d
mov r8, rbp
mov qword [rsp + 0x28], rdx
lea rdx, str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov qword [rsp + 0x20], rdx
mov edx, 0x14
mov rax, qword [rax + 0x68]
call qword [case.0x140049d6d.0]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003b6ab
mov rcx, qword [rdi]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003b6c3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete sil
test sil, sil
jne 0x14003b79d
cmp qword [0x1400ed810], 0
je 0x14003b749
cmp qword [rdi + 0x18], 8
jb 0x14003b6ed
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov r9, rbp
mov qword [rsp + 0x30], rdi
lea r8, str.FileUtils
lea rax, str.Failed_to_delete_file:__s_LastError:_d
mov ecx, PathResolve
mov qword [rsp + 0x28], rax
lea rdx, str.OOBEUtils
mov rax, qword [0x1400ed810]
mov qword [rsp + 0x20], rbp
call qword [case.0x140049d6d.0]
mov rbp, qword [rsp + 0x60]
movzx eax, sil
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [0x1400ed818]
test rbx, rbx
je 0x14003b79d
cmp qword [rdi + 0x18], 8
jb 0x14003b75f
mov rdi, qword [rdi]
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400ed818]
lea r9, str.FileUtils
mov dword [rsp + 0x30], eax
mov r8, rbp
lea rax, str.Failed_to_delete_file:__s_LastError:_d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov edx, PathResolve
mov rax, qword [rbx + 0x68]
call qword [case.0x140049d6d.0]
mov rbp, qword [rsp + 0x60]
movzx eax, sil
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret