Function at 0x14001e4f8
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov r12d, eax
mov qword [rbp + 0x58], rax
mov qword [rbp - 0x18], rax
mov esi, eax
mov qword [rbp + 0x50], rax
mov r15d, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x48], rax
mov r13d, eax
cmp qword [rcx + 0x1d8], rax
jne 0x14001e559
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x1eb7
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008624c
lea r14, [0x1401782b0]
test byte [rbx + 0x154], 4
je 0x14001e66e
lea r9, [rbp - 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1d8]
call fcn.14012e618
mov edi, eax
test eax, eax
js 0x14001e813
lea rdx, [rbp + 0x50]
mov r14, qword [rbp - 0x18]
mov rcx, r14
call fcn.1400fd654
mov edi, eax
test eax, eax
jns 0x14001e5fb
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14001e5f2
test byte [rcx + 0x1c], 1
je 0x14001e5f2
cmp byte [rcx + 0x19], 2
jb 0x14001e5f2
mov edx, 0x16e
mov dword [rsp + 0x28], edi
mov rax, qword [rbx + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140005e64
mov rsi, qword [rbp + 0x50]
jmp 0x14001e7e2
mov rsi, qword [rbp + 0x50]
jmp 0x14001e7e9
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14001e66e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e66e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x14001e65b
test byte [rcx + 0x1c], 1
je 0x14001e65b
cmp byte [rcx + 0x19], 2
jb 0x14001e65b
mov edx, 0x16f
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14001e7f0
lea r14, [rbx + 0x128]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbx + 0x1d8]
call fcn.14012e618
mov edi, eax
mov r15, qword [rbp + 0x60]
test eax, eax
js 0x14001e7e2
test byte [rbx + 0x154], 1
je 0x14001e6b3
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.14008704c
jmp 0x14001e6c9
lea r9, [rbp + 0x48]
mov r8b, 1
mov rdx, r14
mov rcx, qword [rbx + 0x1d8]
call fcn.14012e618
mov edi, eax
test eax, eax
js 0x14001e7d0
lea rcx, [rbp + 0x58]
call fcn.14012de7c
mov edi, eax
mov r12, qword [rbp + 0x58]
mov r14, qword [rbp + 0x48]
test eax, eax
js 0x14001e7d4
mov r9, r12
mov r8d, dword [rbx + 0x150]
mov rdx, r14
mov rcx, r15
call fcn.1400fcd54
mov edi, eax
xor ecx, ecx
test eax, eax
js 0x14001e7d4
test byte [rbx + 0x154], 0x80
je 0x14001e7d4
cmp byte [rbx + 0x114], cl
je 0x14001e7d4
mov ecx, 0x40
call fcn.1401470a8
mov qword [rbp + 0x48], rax
xor ecx, ecx
test rax, rax
je 0x14001e74a
mov rcx, rax
call fcn.14003babc
mov r13, rax
jmp 0x14001e74d
mov r13, rcx
mov qword [rbp + 0x48], r13
mov rdx, r15
mov rcx, r13
call fcn.14001186c
mov edi, eax
test eax, eax
js 0x14001e7d4
or r8, 0xffffffffffffffff
xor edi, edi
inc r8
cmp word [r12 + r8*2], di
jne 0x14001e768
lea r8, [r8*2 + 2]
mov rdx, r12
mov rcx, r13
call fcn.140011b90
mov edi, eax
test eax, eax
js 0x14001e7d4
add rbx, 0x308
mov r13, qword [rbx + 8]
cmp r13, qword [rbx + 0x10]
jb 0x14001e7b7
lea rdx, [r13 + 1]
mov rcx, rbx
call fcn.14000ff48
test al, al
jne 0x14001e7b7
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov rax, qword [rbx]
lea rcx, [rax + r13*8]
mov r13, qword [rbp + 0x48]
test rcx, rcx
je 0x14001e7ca
mov qword [rcx], r13
inc qword [rbx + 8]
jmp 0x14001e7d4
mov r14, qword [rbp + 0x48]
test r14, r14
je 0x14001e7e2
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
test rsi, rsi
je 0x14001e805
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test r15, r15
je 0x14001e81a
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x14001e833
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test edi, edi
jns 0x14001e886
test r13, r13
je 0x14001e85d
mov rax, qword [r13]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14014cce0]
mov edx, 1
mov rcx, r13
call rbx
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14001e886
test byte [rcx + 0x1c], 1
je 0x14001e886
cmp byte [rcx + 0x19], 2
jb 0x14001e886
mov edx, 0x170
mov r9d, edi
lea r8, [0x140151a70]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
test r12, r12
je 0x14001e894
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret