Function at 0x14002045c
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, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rsi, rcx
add rcx, 0x18
call fcn.140004e3c
mov r12, rax
xor r14d, r14d
mov qword [rbp + 0x50], r14
and dword [rbp + 0x40], r14d
and qword [rbp + 0x48], r14
lea r15, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400204c8
test byte [rcx + 0x1c], 1
je 0x1400204c8
cmp byte [rcx + 0x19], 4
jb 0x1400204c8
mov edx, 0x18f
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c6c
cmp qword [rsi + 0x190], r14
jne 0x1400204e9
lea r8, str.m_pLocalCatalog
mov edx, 0x23bc
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
mov rax, qword [r12]
mov rbx, qword [rax + 0xc0]
mov rcx, rbx
call qword [0x14014cce0]
mov rdx, qword [rsi + 0x190]
mov rcx, r12
call rbx
mov ebx, eax
test eax, eax
js 0x14002082a
test byte [rsi + 0x154], 1
jne 0x14002071d
mov rax, qword [r12]
xor ebx, ebx
cmp dword [rsi + 0x150], 4
setne bl
mov rdi, qword [rax + 0xd0]
mov rcx, rdi
call qword [0x14014cce0]
mov r8d, ebx
mov rdx, qword [rsi + 0x248]
mov rcx, r12
call rdi
mov ebx, eax
test eax, eax
jns 0x140020596
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x140020831
test byte [rcx + 0x1c], 1
je 0x140020831
cmp byte [rcx + 0x19], 2
jb 0x140020831
mov edx, 0x190
mov r9d, eax
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
jmp 0x14002082a
cmp qword [rsi + 0x1d8], r14
jne 0x1400205b7
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x23d5
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
lea rdx, [rsi + 0x128]
lea r9, [rbp + 0x50]
xor r8d, r8d
mov rcx, qword [rsi + 0x1d8]
call fcn.1401122fc
mov ebx, eax
mov r14, qword [rbp + 0x50]
test eax, eax
js 0x140020815
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140020647
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x140020647
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x140020634
test byte [rcx + 0x1c], 1
je 0x140020634
cmp byte [rcx + 0x19], 2
jb 0x140020634
mov edx, 0x191
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14002081c
test byte [rsi + 0x154], 0x80
je 0x14002071d
cmp byte [rsi + 0x114], 0
je 0x14002071d
lea rcx, [rsi + 0x2d8]
mov rdx, r14
call fcn.140012a1c
test al, al
jne 0x14002068c
lea r8, str.m_BackupsetVerifier.Remove_wszLocalCatalogFile_
mov edx, 0x23ec
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
mov ecx, 0x20
call fcn.1401470a8
mov rdi, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x1400206bc
lea rax, [0x14014e7b8]
mov qword [rdi], rax
mov byte [rdi + 8], 1
and qword [rdi + 0x18], 0
and qword [rdi + 0x10], 0
jmp 0x1400206be
xor edi, edi
mov rdx, qword [rsi + 0x248]
mov rcx, rdi
call fcn.140012584
mov ebx, eax
test eax, eax
js 0x140020815
lea rbx, [rsi + 0x308]
mov r15, qword [rbx + 8]
cmp r15, qword [rbx + 0x10]
jb 0x140020703
lea rdx, [r15 + 1]
mov rcx, rbx
call fcn.14000ff48
test al, al
jne 0x140020703
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov rax, qword [rbx]
lea rcx, [rax + r15*8]
test rcx, rcx
je 0x140020712
mov qword [rcx], rdi
inc qword [rbx + 8]
lea r15, [0x1401782b0]
movups xmm0, xmmword [0x140154f98]
movdqu xmmword [rbp - 0x10], xmm0
mov rdi, qword [rsi + 0x50]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xb0]
mov rcx, rbx
call qword [0x14014cce0]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
or qword [rsp + 0x20], 0xffffffffffffffff
xor r9d, r9d
lea r8, [rbp - 0x10]
mov rdx, r12
mov rcx, rdi
call rbx
mov ebx, eax
test eax, eax
jns 0x1400207b0
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14002081c
test byte [rcx + 0x1c], 1
je 0x14002081c
cmp byte [rcx + 0x19], 2
jb 0x14002081c
mov edx, 0x192
mov r9d, eax
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
jmp 0x140020815
lea r8, [rsi + 0x28]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x40]
mov rdx, qword [rsi + 0x330]
mov rcx, qword [rsi + 0x158]
call fcn.140082e1c
mov ebx, eax
test eax, eax
jns 0x140020815
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x140020811
test byte [rcx + 0x1c], 1
je 0x140020811
cmp byte [rcx + 0x19], 3
jb 0x140020811
mov edx, 0x193
mov r9d, eax
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
mov rcx, qword [0x1401782b0]
xor ebx, ebx
jmp 0x14002081c
mov rcx, qword [0x1401782b0]
test r14, r14
je 0x140020831
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp qword [rbp + 0x48], 0
je 0x14002084c
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.14013e6ac
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x140020880
cmp rcx, r15
je 0x1400208a6
test byte [rcx + 0x1c], 1
je 0x140020880
cmp byte [rcx + 0x19], 2
jb 0x140020880
mov edx, 0x194
mov r9d, ebx
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400208a6
test byte [rcx + 0x1c], 1
je 0x1400208a6
cmp byte [rcx + 0x19], 4
jb 0x1400208a6
mov edx, 0x195
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c6c
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret