Function at 0x14003e150
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 rdi, 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 0x14003e1a9
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x1eb7
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
lea r14, [0x140173048]
test byte [rdi + 0x154], 4
je 0x14003e2cd
lea r9, [rbp - 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x1d8]
call fcn.140131da4
mov ebx, eax
test eax, eax
js 0x14003e47f
lea rdx, [rbp + 0x50]
mov r14, qword [rbp - 0x18]
mov rcx, r14
call fcn.14010258c
mov ebx, eax
test eax, eax
jns 0x14003e24b
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14003e242
test byte [rcx + 0x1c], 1
je 0x14003e242
cmp byte [rcx + 0x19], 2
jb 0x14003e242
mov edx, 0x16e
mov dword [rsp + 0x28], ebx
mov rax, qword [rdi + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.140040084
mov rsi, qword [rbp + 0x50]
jmp 0x14003e442
mov rsi, qword [rbp + 0x50]
jmp 0x14003e449
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14003e2cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003e2cd
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 0x14003e2b7
test byte [rcx + 0x1c], 1
je 0x14003e2b7
cmp byte [rcx + 0x19], 2
jb 0x14003e2b7
mov edx, 0x16f
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14003fe00
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x14003e450
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003e450
lea r14, [rdi + 0x128]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rdi + 0x1d8]
call fcn.140131da4
mov ebx, eax
mov r15, qword [rbp + 0x60]
test eax, eax
js 0x14003e442
test byte [rdi + 0x154], 1
je 0x14003e312
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.140091bf0
jmp 0x14003e328
lea r9, [rbp + 0x48]
mov r8b, 1
mov rdx, r14
mov rcx, qword [rdi + 0x1d8]
call fcn.140131da4
mov ebx, eax
test eax, eax
js 0x14003e42a
lea rcx, [rbp + 0x58]
call fcn.14013299c
mov ebx, eax
mov r12, qword [rbp + 0x58]
mov r14, qword [rbp + 0x48]
test eax, eax
js 0x14003e42e
mov r9, r12
mov r8d, dword [rdi + 0x150]
mov rdx, r14
mov rcx, r15
call fcn.140103cf4
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x14003e42e
test byte [rdi + 0x154], 0x80
je 0x14003e42e
cmp byte [rdi + 0x114], cl
je 0x14003e42e
mov ecx, 0x40
call fcn.140006fcc
mov qword [rbp + 0x48], rax
xor ecx, ecx
test rax, rax
je 0x14003e3a9
mov rcx, rax
call fcn.1400157ec
mov r13, rax
jmp 0x14003e3ac
mov r13, rcx
mov qword [rbp + 0x48], r13
mov rdx, r15
mov rcx, r13
call fcn.14002b260
mov ebx, eax
test eax, eax
js 0x14003e42e
or r8, 0xffffffffffffffff
xor ebx, ebx
inc r8
cmp word [r12 + r8*2], bx
jne 0x14003e3c7
lea r8, [r8*2 + 2]
mov rdx, r12
mov rcx, r13
call fcn.140037ee0
mov ebx, eax
test eax, eax
js 0x14003e42e
add rdi, 0x308
mov r13, qword [rdi + 8]
cmp r13, qword [rdi + 0x10]
jb 0x14003e416
lea rdx, [r13 + 1]
mov rcx, rdi
call fcn.1400109ec
test al, al
jne 0x14003e416
mov ecx, 0x8007000e
call fcn.140008e64
int3
mov rax, qword [rdi]
mov rcx, qword [rbp + 0x48]
mov qword [rax + r13*8], rcx
inc qword [rdi + 8]
mov r13, rcx
jmp 0x14003e42e
mov r14, qword [rbp + 0x48]
test r14, r14
je 0x14003e442
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
test rsi, rsi
je 0x14003e46b
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test r15, r15
je 0x14003e486
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x14003e4a5
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x14003e4fd
test r13, r13
je 0x14003e4d4
mov rax, qword [r13]
movabs r10, 0xf4ec1f86505c1b70
mov edx, 1
mov rcx, r13
mov rax, qword [rax]
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14003e4fd
test byte [rcx + 0x1c], 1
je 0x14003e4fd
cmp byte [rcx + 0x19], 2
jb 0x14003e4fd
mov edx, 0x170
mov r9d, ebx
lea r8, [0x1401529e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000c47c
test r12, r12
je 0x14003e511
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret