Function at 0x1400205a8
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rdi, rcx
add rcx, 0x18
call fcn.140004e08
mov r12, rax
xor r14d, r14d
mov qword [rbp + 0x50], r14
and dword [rbp + 0x40], r14d
and qword [rbp + 0x48], r14
lea r15, [0x14017b048]
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x140020614
test byte [rcx + 0x1c], 1
je 0x140020614
cmp byte [rcx + 0x19], 4
jb 0x140020614
mov edx, 0x18f
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov rdx, qword [rdi + 0x190]
test rdx, rdx
jne 0x14002063f
lea r8, str.m_pLocalCatalog
mov edx, 0x23bc
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140087b08
mov rdx, qword [rdi + 0x190]
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0xc0]
call qword [case.0x140005bb3.0]
mov ebx, eax
test eax, eax
js 0x1400208fd
test byte [rdi + 0x154], 1
jne 0x140020861
mov rax, qword [r12]
xor r8d, r8d
cmp dword [rdi + 0x150], 4
setne r8b
mov rdx, qword [rdi + 0x248]
mov rcx, r12
mov rax, qword [rax + 0xd0]
call qword [case.0x140005bb3.0]
mov ebx, eax
test eax, eax
jns 0x1400206da
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x140020904
test byte [rcx + 0x1c], 1
je 0x140020904
cmp byte [rcx + 0x19], 2
jb 0x140020904
mov edx, 0x190
mov r9d, eax
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
jmp 0x1400208fd
mov rcx, qword [rdi + 0x1d8]
test rcx, rcx
jne 0x140020705
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x23d5
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140087b08
mov rcx, qword [rdi + 0x1d8]
lea rdx, [rdi + 0x128]
lea r9, [rbp + 0x50]
xor r8d, r8d
call fcn.140114378
mov ebx, eax
mov r14, qword [rbp + 0x50]
test eax, eax
js 0x1400208e2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002079a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
cmp eax, 2
je 0x14002079a
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x140020787
test byte [rcx + 0x1c], 1
je 0x140020787
cmp byte [rcx + 0x19], 2
jb 0x140020787
mov edx, 0x191
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1400208e9
test byte [rdi + 0x154], 0x80
je 0x140020861
cmp byte [rdi + 0x114], 0
je 0x140020861
lea rcx, [rdi + 0x2d8]
mov rdx, r14
call fcn.140012710
test al, al
jne 0x1400207df
lea r8, str.m_BackupsetVerifier.Remove_wszLocalCatalogFile_
mov edx, 0x23ec
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140087b08
mov ecx, 0x20
call fcn.14014b734
mov rsi, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x14002080f
lea rax, [0x1401506f0]
mov qword [rsi], rax
mov byte [rsi + 8], 1
and qword [rsi + 0x18], 0
and qword [rsi + 0x10], 0
jmp 0x140020811
xor esi, esi
mov rdx, qword [rdi + 0x248]
mov rcx, rsi
call fcn.1400122b0
mov ebx, eax
test eax, eax
js 0x1400208e2
lea rbx, [rdi + 0x308]
mov r15, qword [rbx + 8]
cmp r15, qword [rbx + 0x10]
jb 0x14002084f
lea rdx, [r15 + 1]
mov rcx, rbx
call fcn.14000fbf0
test al, al
je 0x1400209f7
mov rax, qword [rbx]
mov qword [rax + r15*8], rsi
inc qword [rbx + 8]
lea r15, [0x14017b048]
movups xmm0, xmmword [0x14015af68]
movdqu xmmword [rbp - 0x10], xmm0
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], rdx
mov byte [rsp + 0x28], 0
or qword [rsp + 0x20], 0xffffffffffffffff
xor r9d, r9d
lea r8, [rbp - 0x10]
mov rdx, r12
mov rax, qword [rax + 0xb0]
call qword [case.0x140005bb3.0]
mov ebx, eax
test eax, eax
jns 0x14002098b
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400208e9
test byte [rcx + 0x1c], 1
je 0x1400208e9
cmp byte [rcx + 0x19], 2
jb 0x1400208e9
mov edx, 0x192
mov r9d, eax
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov rcx, qword [0x14017b048]
test r14, r14
je 0x140020904
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp qword [rbp + 0x48], 0
je 0x14002091f
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.1401421dc
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x140020953
cmp rcx, r15
je 0x140020979
test byte [rcx + 0x1c], 1
je 0x140020953
cmp byte [rcx + 0x19], 2
jb 0x140020953
mov edx, 0x194
mov r9d, ebx
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x140020979
test byte [rcx + 0x1c], 1
je 0x140020979
cmp byte [rcx + 0x19], 4
jb 0x140020979
mov edx, 0x195
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rdi + 0x28]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x40]
mov rdx, qword [rdi + 0x330]
mov rcx, qword [rdi + 0x158]
call fcn.140084550
mov ebx, eax
test eax, eax
jns 0x1400208e2
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400209f0
test byte [rcx + 0x1c], 1
je 0x1400209f0
cmp byte [rcx + 0x19], 3
jb 0x1400209f0
mov edx, 0x193
mov r9d, eax
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov rcx, qword [0x14017b048]
xor ebx, ebx
jmp 0x1400208e9
mov ecx, 0x8007000e
call fcn.140001950
int3