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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
lea rdx, str.CBaseInfoPrinterEx::OpenRestoreFile
lea rcx, [rbp + 0x40]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140133200
test byte [rcx + 0x1c], 1
je 0x140133200
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor esi, esi
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea edx, [rsi + 3]
mov rax, qword [rax + 0x58]
call qword [case.0x1400136d6.0]
mov r14d, esi
test rax, rax
setne r14b
add rdi, 0x210
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14013325c
lea edx, [rsi + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r14d, r14d
je 0x14013330c
lea rcx, [rsp + 0x30]
call fcn.140140aa0
nop
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1401409a0
cmp qword [rbp - 0x48], 0
jne 0x140133295
mov esi, 0x80010005
mov dword [0x1402bbd98], 5
jmp 0x1401332a0
lea rcx, [rsp + 0x30]
call fcn.14011a730
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140041fc0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.1401e465c
nop
mov cl, 1
mov byte [rbp + 0x48], cl
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x140133359
test byte [rax + 0x1c], cl
je 0x140133359
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
mov dword [rsp + 0x20], esi
lea r8, [0x140261f68]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rbp + 0x48]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rbp + 0x40], rdx
test cl, cl
jne 0x1401333ae
cmp rax, r15
je 0x1401333ae
test byte [rax + 0x1c], 1
je 0x1401333ae
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rcx, qword [rbp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x70]
call fcn.1400048a0
lea rcx, [rbp + 0x50]
call fcn.1400048a0
mov eax, esi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret