Function at 0x14001c904
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov r13, rcx
or qword [rbp - 0x38], 0xffffffffffffffff
mov edi, r14d
mov qword [rbp - 0x40], r14
mov esi, r14d
mov qword [rbp - 0x28], r14
mov r15d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x48], r14d
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14001c990
test byte [rcx + 0x1c], 1
je 0x14001c990
cmp byte [rcx + 0x19], 4
jb 0x14001c990
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov edx, 0x25d
call fcn.140006b98
mov rcx, qword [r13 + 0x1d8]
lea rax, [rbp - 0x40]
lea r9, str..vhdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call fcn.140117a3c
mov ebx, eax
test eax, eax
js 0x14001d0b8
mov rax, qword [r13 + 0x1d8]
test rax, rax
je 0x14001d0b3
mov edx, 0x7fffffff
mov ecx, edx
cmp word [rax], r14w
je 0x14001c9e2
add rax, 2
sub rcx, 1
jne 0x14001c9d2
mov rax, rcx
neg rax
mov rax, rcx
sbb ebx, ebx
sub rdx, rcx
not ebx
and ebx, 0x80070057
neg rax
sbb r12, r12
and r12, rdx
mov qword [rbp - 0x18], r12
test rcx, rcx
je 0x14001d0b8
cmp byte [r13 + 0x187], r14b
je 0x14001ca6a
mov rcx, qword [r13 + 0x340]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x48]
call fcn.14000a2e0
test eax, eax
jns 0x14001ca66
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
cmp rcx, rdx
je 0x14001ca66
test byte [rcx + 0x1c], 1
je 0x14001ca66
cmp byte [rcx + 0x19], 3
jb 0x14001ca66
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov edx, 0x25e
mov r9d, eax
call fcn.140006bc4
mov r15d, dword [rbp - 0x48]
mov r14, qword [rbp - 0x40]
lea r8, [rbp - 0x38]
mov rcx, r14
lea rdx, [rbp - 0x28]
xor r9d, r9d
call fcn.140105758
mov ebx, eax
test eax, eax
jns 0x14001cacb
mov rcx, qword [0x14017a048]
lea r12, [0x14017a048]
cmp rcx, r12
je 0x14001cac2
test byte [rcx + 0x1c], 1
je 0x14001cac2
cmp byte [rcx + 0x19], 2
jb 0x14001cac2
mov edx, 0x25f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140011330
mov rdi, qword [rbp - 0x28]
jmp 0x14001d0c3
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14001ce00
mov rax, qword [rbp - 0x18]
add r12, r12
mov qword [rbp - 0x18], rax
test rsi, rsi
je 0x14001cafc
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
and qword [rbp - 0x50], 0
lea rcx, [rdi + 2]
xor r8d, r8d
add rcx, r12
lea rdx, [rbp - 0x50]
call fcn.14008c1cc
mov rsi, qword [rbp - 0x50]
mov ebx, eax
test eax, eax
js 0x14001d0bc
mov r8d, 3
lea rdx, [0x140159158]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14001cbfb
mov r8d, dword [r13 + 0x170]
mov edx, ebx
test r8d, r8d
je 0x14001cb74
mov r9, qword [r13 + 0xd8]
mov eax, edx
imul rcx, rax, 0x170
test byte [rcx + r9 + 0x54], 1
jne 0x14001cdbf
inc edx
cmp edx, r8d
jb 0x14001cb58
cmp edx, r8d
jne 0x14001cdbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cdbf
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x14001cdbf
test byte [rax + 0x1c], 1
je 0x14001cdbf
cmp byte [rax + 0x19], 2
jb 0x14001cdbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14001cbd7
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x14017a048]
lea r8, [0x14015a530]
mov edx, 0x260
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140006bc4
jmp 0x14001cdbf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x14001cbff
cmp rax, 0x24
jb 0x14001cd88
mov word [rsi + 0x48], bx
lea rdx, [rbp - 0x28]
movups xmm0, xmmword [0x14015f068]
mov rcx, rsi
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cd62
mov r10, qword [rbp - 0x28]
cmp r10, qword [0x14015f068]
mov rdx, qword [rbp - 0x20]
jne 0x14001cc77
cmp rdx, qword [0x14015f070]
jne 0x14001cc77
lea r8, str.guidBagVolumeId___GUID_NULL
mov edx, 0x3800
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008ac24
mov rdx, qword [rbp - 0x20]
mov r10, qword [rbp - 0x28]
mov r11d, dword [r13 + 0x170]
mov r8d, ebx
test r11d, r11d
je 0x14001ccad
mov r9, qword [r13 + 0xd8]
mov eax, r8d
imul rcx, rax, 0x170
cmp qword [rcx + r9 + 0x44], r10
jne 0x14001cca5
cmp qword [rcx + r9 + 0x4c], rdx
je 0x14001ccad
inc r8d
cmp r8d, r11d
jb 0x14001cc8d
mov eax, ebx
test r15d, r15d
je 0x14001ccd1
mov r9, qword [rbp - 0x30]
mov ecx, eax
add rcx, rcx
cmp qword [r9 + rcx*8], r10
jne 0x14001ccca
cmp qword [r9 + rcx*8 + 8], rdx
je 0x14001ccd1
inc eax
cmp eax, r15d
jb 0x14001ccb8
cmp r8d, r11d
jne 0x14001cdbf
cmp eax, r15d
jne 0x14001cdbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cdbf
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x14001cdbf
test byte [rax + 0x1c], 1
je 0x14001cdbf
cmp byte [rax + 0x19], 2
jb 0x14001cdbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14001cd3d
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x14017a048]
lea r8, [0x14015a530]
mov edx, 0x261
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.140011330
jmp 0x14001cdbf
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14001cdbf
test byte [rcx + 0x1c], 1
je 0x14001cdbf
cmp byte [rcx + 0x19], 3
jb 0x14001cdbf
mov edx, 0x262
jmp 0x14001cdac
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14001cdbf
test byte [rcx + 0x1c], 1
je 0x14001cdbf
cmp byte [rcx + 0x19], 3
jb 0x14001cdbf
mov edx, 0x263
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov r9, rdi
call fcn.1400112c8
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x28]
xor r9d, r9d
mov qword [rbp - 0x28], rbx
mov rcx, r14
call fcn.140105b40
mov rdi, qword [rbp - 0x28]
mov ebx, eax
test eax, eax
js 0x14001d0bc
test rdi, rdi
jne 0x14001cae3
mov r12, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
or qword [rbp - 0x38], 0xffffffffffffffff
xor r15d, r15d
test r14, r14
je 0x14001ce30
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x40], r15
mov rcx, qword [r13 + 0x1d8]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call fcn.140117e80
mov ebx, eax
test eax, eax
js 0x14001d0b8
test rdi, rdi
je 0x14001ce74
lea r8, str.wszFileFound__NULL
mov edx, 0x3840
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008ac24
mov r14, qword [rbp - 0x40]
lea r8, [rbp - 0x38]
mov rcx, r14
lea rdx, [rbp - 0x28]
xor r9d, r9d
call fcn.140105758
mov ebx, eax
test eax, eax
jns 0x14001d06f
mov rcx, qword [0x14017a048]
lea r12, [0x14017a048]
cmp rcx, r12
je 0x14001cac2
test byte [rcx + 0x1c], 1
je 0x14001cac2
cmp byte [rcx + 0x19], 3
jb 0x14001cac2
mov edx, 0x264
jmp 0x14001caab
test rsi, rsi
je 0x14001cee2
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x50], r15
lea rcx, [r12 + 1]
xor r8d, r8d
lea rcx, [rdi + rcx*2]
lea rdx, [rbp - 0x50]
call fcn.14008c1cc
mov rsi, qword [rbp - 0x50]
mov ebx, eax
test eax, eax
js 0x14001d0bc
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14001cf09
cmp rax, 0x24
jb 0x14001d00c
mov word [rsi + 0x48], r15w
lea rdx, [rbp - 0x18]
movups xmm0, xmmword [0x14015f068]
mov rcx, rsi
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cfe6
mov rax, qword [rbp - 0x18]
cmp rax, qword [r13 + 0x128]
jne 0x14001cf67
mov rax, qword [rbp - 0x10]
cmp rax, qword [r13 + 0x130]
je 0x14001d043
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d043
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x14001d043
test byte [rax + 0x1c], 1
je 0x14001d043
cmp byte [rax + 0x19], 3
jb 0x14001d043
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14001cfc1
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x14017a048]
lea r8, [0x14015a530]
mov edx, 0x265
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.140011330
jmp 0x14001d043
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14001d043
test byte [rcx + 0x1c], 1
je 0x14001d043
cmp byte [rcx + 0x19], 3
jb 0x14001d043
mov edx, 0x266
jmp 0x14001d030
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14001d043
test byte [rcx + 0x1c], 1
je 0x14001d043
cmp byte [rcx + 0x19], 3
jb 0x14001d043
mov edx, 0x267
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov r9, rdi
call fcn.1400112c8
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x28]
xor r9d, r9d
mov qword [rbp - 0x28], r15
mov rcx, r14
call fcn.140105b40
mov ebx, eax
test eax, eax
js 0x14001d07e
mov rdi, qword [rbp - 0x28]
test rdi, rdi
jne 0x14001ceca
jmp 0x14001d0bc
mov rcx, qword [0x14017a048]
lea r12, [0x14017a048]
cmp rcx, r12
je 0x14001cac2
test byte [rcx + 0x1c], 1
je 0x14001cac2
cmp byte [rcx + 0x19], 2
jb 0x14001cac2
mov edx, 0x268
jmp 0x14001caab
mov ebx, 0x80070057
mov r14, qword [rbp - 0x40]
lea r12, [0x14017a048]
test r14, r14
je 0x14001d0d7
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rdi, rdi
je 0x14001d0eb
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14001d0ff
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14001d115
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14001d12d
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r12
je 0x14001d15a
test byte [rcx + 0x1c], 1
je 0x14001d15a
cmp byte [rcx + 0x19], 4
jb 0x14001d15a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a530]
mov edx, 0x269
call fcn.140006b98
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001d90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret