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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov esi, edx
mov rdi, rcx
lea rdx, str.CBaseInfoPrinterEx::DeletePrinterInfoFile
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea rbp, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rbp
je 0x140133628
test byte [rcx + 0x1c], 1
je 0x140133628
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x18
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
call fcn.140091e00
nop
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x28]
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, r8
call qword [case.0x1400136d6.0]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140133699
cmp eax, 0x3e8
je 0x140133699
cmp eax, 0x270f
je 0x140133699
cmp esi, 1
jne 0x14013379c
lea rcx, [rdi + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401336c9
mov edx, 0x20
lea rcx, [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rdi, 8
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401336f1
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x30]
mov rcx, rdx
call qword [case.0x1400136d6.0]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x90]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rsp + 0x90]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140097fc0
mov byte [rsp + 0x48], 1
mov rcx, qword [0x1402a8360]
cmp rcx, rbp
je 0x1401337e4
test byte [rcx + 0x1c], 1
je 0x1401337e4
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x19
mov dword [rsp + 0x20], 0
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x38]
call fcn.140091f70
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x48], 0
jne 0x140133852
mov rcx, qword [0x1402a8360]
cmp rcx, rbp
je 0x140133852
test byte [rcx + 0x1c], 1
je 0x140133852
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret