Function at 0x14001ea48
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
lea rsi, [0x14017b048]
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x14001eaa0
test byte [rcx + 0x1c], 1
je 0x14001eaa0
cmp byte [rcx + 0x19], 4
jb 0x14001eaa0
mov edx, 0x171
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
xor r15d, r15d
mov qword [rbp + 0x50], r15
mov r14d, r15d
mov qword [rbp + 0x40], r15
mov r12d, r15d
mov qword [rbp + 0x48], r15
cmp qword [rdi + 0x1d8], r15
jne 0x14001ead6
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x1f58
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140087b08
cmp qword [rdi + 0x358], r15
jne 0x14001eaf7
lea r8, str.m_wszBackupSpecs___NULL
mov edx, 0x1f59
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140087b08
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rdi + 0x1d8]
call fcn.140115f10
mov ebx, eax
mov r13, qword [rbp + 0x50]
test eax, eax
js 0x14001ed3c
test byte [rdi + 0x154], 4
je 0x14001ec03
lea rdx, [rbp + 0x40]
mov rcx, r13
call fcn.1400ff030
mov ebx, eax
test eax, eax
jns 0x14001eb88
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x14001eb7f
test byte [rcx + 0x1c], 1
je 0x14001eb7f
cmp byte [rcx + 0x19], 2
jb 0x14001eb7f
mov edx, 0x172
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005e80
mov r14, qword [rbp + 0x40]
jmp 0x14001ed2f
mov r14, qword [rbp + 0x40]
jmp 0x14001ed36
mov r14, qword [rbp + 0x40]
test r14, r14
je 0x14001ec03
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ec03
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x14001ed36
test byte [rcx + 0x1c], 1
je 0x14001ed36
cmp byte [rcx + 0x19], 2
jb 0x14001ed36
mov edx, 0x173
mov dword [rsp + 0x20], ebx
mov r9, r14
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
jmp 0x14001ed2f
test byte [rdi + 0x154], 1
je 0x14001ec1d
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r13
call fcn.1400889dc
jmp 0x14001ec2f
lea r8, [rbp + 0x48]
mov dl, 1
mov rcx, qword [rdi + 0x1d8]
call fcn.140115f10
test eax, eax
mov ebx, eax
mov r12, qword [rbp + 0x48]
js 0x14001ed3c
mov r9, qword [rdi + 0x358]
mov r8d, dword [rdi + 0x150]
mov rdx, r12
mov rcx, r13
call fcn.1400fe688
mov ebx, eax
test eax, eax
js 0x14001ed3c
test byte [rdi + 0x154], 0x80
je 0x14001ed2f
cmp byte [rdi + 0x114], r15b
je 0x14001ed2f
mov ecx, 0x40
call fcn.14014b734
mov qword [rbp + 0x40], rax
test rax, rax
je 0x14001ec9a
mov rcx, rax
call fcn.14003bf6c
mov rsi, rax
jmp 0x14001ec9d
mov rsi, r15
mov rdx, r13
mov rcx, rsi
call fcn.140011548
mov ebx, eax
test eax, eax
js 0x14001ed0f
mov rdx, qword [rdi + 0x358]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14001ecb9
lea r8, [r8*2 + 2]
mov rcx, rsi
call fcn.14001189c
mov ebx, eax
test eax, eax
js 0x14001ed0f
add rdi, 0x308
mov r15, qword [rdi + 8]
cmp r15, qword [rdi + 0x10]
jb 0x14001ecfe
lea rdx, [r15 + 1]
mov rcx, rdi
call fcn.14000fbf0
test al, al
je 0x14001ee05
mov rax, qword [rdi]
mov qword [rax + r15*8], rsi
inc qword [rdi + 8]
xor r15d, r15d
mov esi, r15d
test rsi, rsi
je 0x14001ed28
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140005bb3.0]
lea rsi, [0x14017b048]
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x14001ed73
jmp 0x14001ed43
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x14001ed73
test byte [rcx + 0x1c], 1
je 0x14001ed73
cmp byte [rcx + 0x19], 2
jb 0x14001ed73
mov edx, 0x174
mov r9d, ebx
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov rcx, qword [0x14017b048]
test r13, r13
je 0x14001ed8e
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test r12, r12
je 0x14001eda9
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test r14, r14
je 0x14001edc4
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x14001edea
test byte [rcx + 0x1c], 1
je 0x14001edea
cmp byte [rcx + 0x19], 4
jb 0x14001edea
mov edx, 0x175
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001950
int3