Function at 0x14003d4d4
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
xor r12d, r12d
xor r15d, r15d
and qword [rbp + 0x50], r12
mov rdi, rcx
and qword [rbp + 0x48], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x58], r15
cmp qword [rcx + 0x1d8], r12
jne 0x14003d522
lea r8, str.m_wszBackupSetDirectory
mov edx, 0x230a
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
test byte [rdi + 0x154], 4
lea r13, [0x140173048]
je 0x14003d5e3
mov rcx, qword [rdi + 0x1d8]
lea r9, [rbp + 0x60]
xor r8d, r8d
xor edx, edx
call fcn.140113480
mov r12, qword [rbp + 0x60]
mov ebx, eax
test eax, eax
js 0x14003d883
lea rdx, [rbp + 0x58]
mov rcx, r12
call fcn.14010258c
mov r15, qword [rbp + 0x58]
mov ebx, eax
test eax, eax
js 0x14003d86f
test r15, r15
je 0x14003d5e3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003d5e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14003d5cd
test byte [rcx + 0x1c], 1
je 0x14003d5cd
cmp byte [rcx + 0x19], 2
jb 0x14003d5cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401529e0]
mov edx, 0x18b
mov dword [rsp + 0x20], eax
mov r9, r15
call fcn.14003fe00
test ebx, ebx
jle 0x14003d86f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003d86f
mov rcx, qword [rdi + 0x1d8]
lea rsi, [rdi + 0x128]
mov rdx, rsi
lea r9, [rbp + 0x50]
xor r8d, r8d
call fcn.140113480
mov ebx, eax
test eax, eax
js 0x14003d85a
test byte [rdi + 0x154], 1
je 0x14003d639
mov r13, qword [rbp + 0x50]
lea rdx, [rbp + 0x48]
mov rcx, r13
xor r8d, r8d
call fcn.140091bf0
mov ebx, eax
test eax, eax
js 0x14003d83b
mov r14, qword [rbp + 0x48]
jmp 0x14003d6d1
mov rcx, qword [rdi + 0x1d8]
lea r9, [rbp + 0x48]
mov r8b, 1
mov rdx, rsi
call fcn.140113480
mov ebx, eax
test eax, eax
js 0x14003d83b
mov r14, qword [rbp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003d6cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x14003d6cd
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14003d6b7
test byte [rcx + 0x1c], 1
je 0x14003d6b7
cmp byte [rcx + 0x19], 2
jb 0x14003d6b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401529e0]
mov edx, 0x18c
mov dword [rsp + 0x20], eax
mov r9, r14
call fcn.14003fe00
test ebx, ebx
jle 0x14003d83f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003d83f
mov r13, qword [rbp + 0x50]
cmp qword [rdi + 0x190], 0
jne 0x14003d6f3
lea r8, str.m_pLocalCatalog
mov edx, 0x2355
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400906e0
mov rcx, qword [rdi + 0x190]
mov rax, qword [rcx]
movabs r10, 0xb154b6e53453c270
mov rax, qword [rax + 0x88]
mov rdx, r14
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
js 0x14003d83f
test byte [rdi + 0x154], 1
jne 0x14003d7a5
mov r8d, 1
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003d7a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14003d6b7
test byte [rcx + 0x1c], 1
je 0x14003d6b7
cmp byte [rcx + 0x19], 2
jb 0x14003d6b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401529e0]
mov edx, 0x18d
mov dword [rsp + 0x28], ebx
mov r9, r14
mov qword [rsp + 0x20], r13
call fcn.1400152ec
jmp 0x14003d6b7
test byte [rdi + 0x154], 0x80
je 0x14003d83f
cmp byte [rdi + 0x114], 0
je 0x14003d83f
mov ecx, 0x20
call fcn.140006fcc
xor ecx, ecx
mov qword [rbp + 0x48], rax
mov rsi, rax
test rax, rax
je 0x14003d7ee
lea rax, [0x14014ca20]
mov byte [rsi + 8], cl
mov qword [rsi], rax
mov qword [rsi + 0x18], rcx
mov qword [rsi + 0x10], rcx
jmp 0x14003d7f1
mov rsi, rcx
mov rdx, r13
mov rcx, rsi
call fcn.14002b31c
mov ebx, eax
test eax, eax
js 0x14003d83f
add rdi, 0x308
mov r13, qword [rdi + 8]
cmp r13, qword [rdi + 0x10]
jb 0x14003d82e
lea rdx, [r13 + 1]
mov rcx, rdi
call fcn.1400109ec
test al, al
jne 0x14003d82e
mov ecx, 0x8007000e
call fcn.140008e64
int3
mov rax, qword [rdi]
mov qword [rax + r13*8], rsi
inc qword [rdi + 8]
jmp 0x14003d83f
mov r14, qword [rbp + 0x48]
test r14, r14
je 0x14003d853
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea r13, [0x140173048]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14003d86f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r15, r15
je 0x14003d883
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r12, r12
je 0x14003d897
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14003d8cb
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14003d8cb
test byte [rcx + 0x1c], 1
je 0x14003d8cb
cmp byte [rcx + 0x19], 2
jb 0x14003d8cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401529e0]
mov edx, 0x18e
mov r9d, ebx
call fcn.14000c47c
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret