Function at 0x14003c8f4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov r13d, esi
mov qword [rbp - 0x18], rsi
mov r15d, esi
mov qword [rbp + 0x58], rsi
mov r12d, esi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], sil
lea rax, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, rax
je 0x14003c968
test byte [rcx + 0x1c], 1
je 0x14003c968
cmp byte [rcx + 0x19], 4
jb 0x14003c968
mov edx, 0x15f
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c328
cmp qword [rdi + 0x1d8], rsi
jne 0x14003c989
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x1c59
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
lea rax, [rdi + 0x28]
mov qword [rbp - 8], rax
xor edx, edx
mov rcx, rax
call fcn.1400ffdd4
mov ebx, eax
test eax, eax
js 0x14003cd30
lea rcx, [rbp + 0x40]
call fcn.140099910
mov ebx, eax
test eax, eax
jns 0x14003c9fc
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14003cd37
test byte [rcx + 0x1c], 1
je 0x14003cd37
cmp byte [rcx + 0x19], 2
jb 0x14003cd37
mov edx, 0x160
mov r9d, eax
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c354
jmp 0x14003cd37
cmp qword [rdi + 0x1d0], rsi
jne 0x14003ca4a
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14003cd37
test byte [rcx + 0x1c], 1
je 0x14003cd37
cmp byte [rcx + 0x19], 4
jb 0x14003cd37
mov edx, 0x161
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c328
jmp 0x14003cd37
test byte [rdi + 0x154], 4
je 0x14003cb57
lea r9, [rbp - 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x1d8]
call fcn.140112ec4
mov ebx, eax
mov r13, qword [rbp - 0x18]
test eax, eax
js 0x14003cd30
lea rdx, [rbp + 0x58]
mov rcx, r13
call fcn.14010258c
mov ebx, eax
test eax, eax
jns 0x14003cadc
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14003cad3
test byte [rcx + 0x1c], 1
je 0x14003cad3
cmp byte [rcx + 0x19], 2
jb 0x14003cad3
mov edx, 0x162
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.140040084
mov r15, qword [rbp + 0x58]
jmp 0x14003cd37
mov r15, qword [rbp + 0x58]
test r15, r15
je 0x14003cb57
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003cb57
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14003cb41
test byte [rcx + 0x1c], 1
je 0x14003cb41
cmp byte [rcx + 0x19], 2
jb 0x14003cb41
mov edx, 0x163
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14003fe00
test ebx, ebx
jle 0x14003cd37
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003cd37
lea rsi, [rdi + 0x128]
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rdi + 0x1d8]
call fcn.140112ec4
mov ebx, eax
mov r12, qword [rbp - 0x10]
test eax, eax
js 0x14003cd2e
test byte [rdi + 0x154], 1
je 0x14003cb9c
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140091bf0
jmp 0x14003cbb2
lea r9, [rbp - 0x20]
mov r8b, 1
mov rdx, rsi
mov rcx, qword [rdi + 0x1d8]
call fcn.140112ec4
xor esi, esi
test eax, eax
mov ebx, eax
js 0x14003cd30
cmp byte [rbp + 0x40], sil
jne 0x14003cc3a
test r14, r14
jne 0x14003cbe1
lea r8, str.pSPP
mov edx, 0x1cb6
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
mov rax, qword [r14]
movabs r10, 0xf64106c4365ef970
lea rdx, [rbp + 0x50]
mov rcx, r14
mov rax, qword [rax + 0x70]
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
jns 0x14003cc3a
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14003cd37
test byte [rcx + 0x1c], 1
je 0x14003cd37
cmp byte [rcx + 0x19], 2
jb 0x14003cd37
mov edx, 0x164
jmp 0x14003c9e4
mov r9, qword [rbp + 0x50]
test r9, r9
jne 0x14003cc4a
mov r9, qword [rdi + 0x1d0]
mov r8d, dword [rdi + 0x150]
mov rdx, qword [rbp - 0x20]
mov rcx, r12
call fcn.140103cf4
mov ebx, eax
test eax, eax
js 0x14003cd30
test byte [rdi + 0x154], 0x80
je 0x14003cd30
cmp byte [rdi + 0x114], sil
je 0x14003cd30
mov ecx, 0x40
call fcn.140006fcc
mov qword [rbp + 0x40], rax
test rax, rax
je 0x14003cca1
mov rcx, rax
call fcn.1400157ec
mov r14, rax
jmp 0x14003cca4
mov r14, rsi
mov rdx, r12
mov rcx, r14
call fcn.14002b260
mov ebx, eax
test eax, eax
js 0x14003cd30
mov rdx, qword [rbp + 0x50]
test rdx, rdx
mov rcx, rdx
jne 0x14003ccc8
mov rcx, qword [rdi + 0x1d0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003cccc
lea r8, [rax*2 + 2]
test rdx, rdx
jne 0x14003cce9
mov rdx, qword [rdi + 0x1d0]
mov rcx, r14
call fcn.140037ee0
mov ebx, eax
test eax, eax
js 0x14003cd30
add rdi, 0x308
mov rsi, qword [rdi + 8]
cmp rsi, qword [rdi + 0x10]
jb 0x14003cd23
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.1400109ec
test al, al
jne 0x14003cd23
mov ecx, 0x8007000e
call fcn.140008e64
int3
mov rax, qword [rdi]
mov qword [rax + rsi*8], r14
inc qword [rdi + 8]
xor esi, esi
lea r14, [0x140173048]
mov rcx, qword [rbp - 8]
call fcn.1401005a4
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14003cd59
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp + 0x50], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003cd6e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r15, r15
je 0x14003cd82
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r13, r13
je 0x14003cd96
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r12, r12
je 0x14003cdaa
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14003cdde
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14003ce0b
test byte [rcx + 0x1c], 1
je 0x14003cde5
cmp byte [rcx + 0x19], 2
jb 0x14003cde5
mov edx, 0x165
mov r9d, ebx
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c47c
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14003ce0b
test byte [rcx + 0x1c], 1
je 0x14003ce0b
cmp byte [rcx + 0x19], 4
jb 0x14003ce0b
mov edx, 0x166
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c328
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret