Function at 0x140029024
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 [0x140183808]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r14d, r14d
mov r15, rcx
or qword [rbp - 0x40], 0xffffffffffffffff
mov edi, r14d
mov qword [rbp - 0x20], r14
mov esi, r14d
mov qword [rbp - 0x30], r14
mov r12d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x38], r14
mov dword [rbp - 0x48], r14d
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400290b0
test byte [rcx + 0x1c], 1
je 0x1400290b0
cmp byte [rcx + 0x19], 4
jb 0x1400290b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x25d
call fcn.140004e50
mov rcx, qword [r15 + 0x1d8]
lea rax, [rbp - 0x20]
lea r9, str..vhdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call fcn.140119edc
mov ebx, eax
test eax, eax
js 0x1400297cf
mov rax, qword [r15 + 0x1d8]
mov r13, r14
test rax, rax
je 0x140029122
mov r13d, 0x7fffffff
mov ecx, r13d
cmp word [rax], r14w
je 0x140029103
add rax, 2
sub rcx, 1
jne 0x1400290f3
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14002911d
sub r13, rcx
jmp 0x140029127
mov r13, r14
jmp 0x140029127
mov ebx, 0x80070057
test ebx, ebx
cmovs r13, r14
js 0x1400297cf
cmp byte [r15 + 0x187], r14b
je 0x14002918f
mov rcx, qword [r15 + 0x340]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x48]
call fcn.14000d550
test eax, eax
jns 0x14002918b
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
cmp rcx, rdx
je 0x14002918b
test byte [rcx + 0x1c], 1
je 0x14002918b
cmp byte [rcx + 0x19], 3
jb 0x14002918b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x25e
mov r9d, eax
call fcn.140004e7c
mov r12d, dword [rbp - 0x48]
mov r14, qword [rbp - 0x20]
lea r8, [rbp - 0x40]
mov rcx, r14
lea rdx, [rbp - 0x30]
xor r9d, r9d
call fcn.1401065ac
mov ebx, eax
test eax, eax
jns 0x140029501
mov rcx, qword [0x140183048]
lea r12, [0x140183048]
cmp rcx, r12
je 0x1400291eb
test byte [rcx + 0x1c], 1
je 0x1400291eb
cmp byte [rcx + 0x19], 2
jb 0x1400291eb
mov edx, 0x25f
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov r9, r14
call fcn.140005f80
mov rdi, qword [rbp - 0x30]
jmp 0x1400297da
test rsi, rsi
je 0x14002920d
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
and qword [rbp - 0x50], 0
lea rcx, [r13 + 1]
xor r8d, r8d
lea rcx, [rdi + rcx*2]
lea rdx, [rbp - 0x50]
call fcn.14009039c
mov rsi, qword [rbp - 0x50]
mov ebx, eax
test eax, eax
js 0x1400297d3
mov r8d, 3
lea rdx, [0x14015c228]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14002930b
mov r8d, dword [r15 + 0x170]
mov edx, ebx
test r8d, r8d
je 0x140029282
mov r9, qword [r15 + 0xd8]
mov eax, edx
imul rcx, rax, 0x170
test byte [rcx + r9 + 0x54], 1
jne 0x140029282
inc edx
cmp edx, r8d
jb 0x14002926a
cmp edx, r8d
jne 0x1400294d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400294d1
mov rax, qword [0x140183048]
lea rcx, [0x140183048]
cmp rax, rcx
je 0x1400294d1
test byte [rax + 0x1c], 1
je 0x1400294d1
cmp byte [rax + 0x19], 2
jb 0x1400294d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
lea r8, [0x14015d600]
movzx r9d, ax
mov edx, 0x260
or r9d, 0x80070000
test eax, eax
mov rcx, qword [rcx + 0x10]
cmovle r9d, eax
call fcn.140004e7c
jmp 0x1400294d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x14002930f
cmp rax, 0x24
jb 0x14002949a
mov word [rsi + 0x48], bx
lea rdx, [rbp - 0x30]
movups xmm0, xmmword [0x140162618]
mov rcx, rsi
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140029474
mov r10, qword [rbp - 0x30]
cmp r10, qword [0x140162618]
mov rdx, qword [rbp - 0x28]
jne 0x140029387
cmp rdx, qword [0x140162620]
jne 0x140029387
lea r8, str.guidBagVolumeId___GUID_NULL
mov edx, 0x3800
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008f4c8
mov rdx, qword [rbp - 0x28]
mov r10, qword [rbp - 0x30]
mov r11d, dword [r15 + 0x170]
mov r8d, ebx
test r11d, r11d
je 0x1400293bd
mov r9, qword [r15 + 0xd8]
mov eax, r8d
imul rcx, rax, 0x170
cmp qword [rcx + r9 + 0x44], r10
jne 0x1400293b5
cmp qword [rcx + r9 + 0x4c], rdx
je 0x1400293bd
inc r8d
cmp r8d, r11d
jb 0x14002939d
mov eax, ebx
test r12d, r12d
je 0x1400293e1
mov r9, qword [rbp - 0x38]
mov ecx, eax
add rcx, rcx
cmp qword [r9 + rcx*8], r10
jne 0x1400293da
cmp qword [r9 + rcx*8 + 8], rdx
je 0x1400293e1
inc eax
cmp eax, r12d
jb 0x1400293c8
cmp r8d, r11d
jne 0x1400294d1
cmp eax, r12d
jne 0x1400294d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400294d1
mov rax, qword [0x140183048]
lea rcx, [0x140183048]
cmp rax, rcx
je 0x1400294d1
test byte [rax + 0x1c], 1
je 0x1400294d1
cmp byte [rax + 0x19], 2
jb 0x1400294d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 0x261
or ecx, 0x80070000
lea r8, [0x14015d600]
test eax, eax
mov r9, rdi
cmovle ecx, eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [0x140183048]
mov rcx, qword [rcx + 0x10]
call fcn.140005f80
jmp 0x1400294d1
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400294d1
test byte [rcx + 0x1c], 1
je 0x1400294d1
cmp byte [rcx + 0x19], 3
jb 0x1400294d1
mov edx, 0x262
jmp 0x1400294be
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400294d1
test byte [rcx + 0x1c], 1
je 0x1400294d1
cmp byte [rcx + 0x19], 3
jb 0x1400294d1
mov edx, 0x263
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov r9, rdi
call fcn.140005f10
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x40]
lea r8, [rbp - 0x30]
xor r9d, r9d
mov qword [rbp - 0x30], rbx
mov rcx, r14
call fcn.1401067e4
mov ebx, eax
test eax, eax
js 0x1400295dc
mov rdi, qword [rbp - 0x30]
test rdi, rdi
jne 0x1400291f4
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
or qword [rbp - 0x40], 0xffffffffffffffff
xor r12d, r12d
test r14, r14
je 0x14002953e
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x20], r12
mov rcx, qword [r15 + 0x1d8]
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call fcn.140119d54
mov ebx, eax
test eax, eax
js 0x1400297cf
test rdi, rdi
je 0x140029582
lea r8, str.wszFileFound__NULL
mov edx, 0x3840
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008f4c8
mov r14, qword [rbp - 0x20]
lea r8, [rbp - 0x40]
mov rcx, r14
lea rdx, [rbp - 0x30]
xor r9d, r9d
call fcn.1401065ac
mov ebx, eax
test eax, eax
jns 0x14002978b
mov rcx, qword [0x140183048]
lea r12, [0x140183048]
cmp rcx, r12
je 0x1400291eb
test byte [rcx + 0x1c], 1
je 0x1400291eb
cmp byte [rcx + 0x19], 3
jb 0x1400291eb
mov edx, 0x264
mov dword [rsp + 0x20], eax
jmp 0x1400291d8
mov rdi, qword [rbp - 0x30]
jmp 0x1400297d3
test rsi, rsi
je 0x1400295fd
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x50], r12
lea rcx, [r13 + 1]
xor r8d, r8d
lea rcx, [rdi + rcx*2]
lea rdx, [rbp - 0x50]
call fcn.14009039c
mov rsi, qword [rbp - 0x50]
mov ebx, eax
test eax, eax
js 0x1400297d3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140029623
cmp rax, 0x24
jb 0x140029728
mov word [rsi + 0x48], r12w
lea rdx, [rbp - 0x20]
movups xmm0, xmmword [0x140162618]
mov rcx, rsi
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140029702
mov rax, qword [rbp - 0x20]
cmp rax, qword [r15 + 0x128]
jne 0x140029681
mov rax, qword [rbp - 0x18]
cmp rax, qword [r15 + 0x130]
je 0x14002975f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002975f
mov rax, qword [0x140183048]
lea rcx, [0x140183048]
cmp rax, rcx
je 0x14002975f
test byte [rax + 0x1c], 1
je 0x14002975f
cmp byte [rax + 0x19], 3
jb 0x14002975f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 0x265
or ecx, 0x80070000
lea r8, [0x14015d600]
test eax, eax
mov r9, rdi
cmovle ecx, eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [0x140183048]
mov rcx, qword [rcx + 0x10]
call fcn.140005f80
jmp 0x14002975f
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14002975f
test byte [rcx + 0x1c], 1
je 0x14002975f
cmp byte [rcx + 0x19], 3
jb 0x14002975f
mov edx, 0x266
jmp 0x14002974c
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14002975f
test byte [rcx + 0x1c], 1
je 0x14002975f
cmp byte [rcx + 0x19], 3
jb 0x14002975f
mov edx, 0x267
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov r9, rdi
call fcn.140005f10
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x40]
lea r8, [rbp - 0x30]
xor r9d, r9d
mov qword [rbp - 0x30], r12
mov rcx, r14
call fcn.1401067e4
mov ebx, eax
test eax, eax
js 0x14002979a
mov rdi, qword [rbp - 0x30]
test rdi, rdi
jne 0x1400295e5
jmp 0x1400297d3
mov rcx, qword [0x140183048]
lea r12, [0x140183048]
cmp rcx, r12
je 0x1400291eb
test byte [rcx + 0x1c], 1
je 0x1400291eb
cmp byte [rcx + 0x19], 2
jb 0x1400291eb
mov edx, 0x268
jmp 0x1400295d3
mov r14, qword [rbp - 0x20]
lea r12, [0x140183048]
test r14, r14
je 0x1400297ee
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rdi, rdi
je 0x140029802
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
je 0x140029816
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x40]
cmp rcx, 0xffffffffffffffff
je 0x14002982c
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140029844
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, r12
je 0x140029871
test byte [rcx + 0x1c], 1
je 0x140029871
cmp byte [rcx + 0x19], 4
jb 0x140029871
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x269
call fcn.140004e50
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401534b0
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