Function at 0x1400186cc
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword gs:[0x58]
mov r15, rcx
mov ecx, 8
mov rdx, qword [rax]
lea rax, str.CTieredVolume::UpgradePinnedDataDatabaseToDscAttribute
mov qword [rcx + rdx], rax
lea rcx, [rbp - 0x50]
call fcn.140005468
and word [rbp - 0x20], 0
lea r13, [r15 + 0x540]
and qword [rbp - 0x18], 0
lea rcx, [rbp - 0x40]
mov rdx, r13
mov byte [rbp - 0x40], 0
mov byte [rbp - 0x1e], 0
mov byte [rbp - 0x10], 0
call fcn.14001bbac
mov dword [rbp - 0x48], eax
mov ebx, eax
test eax, eax
jns 0x140018776
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x1400189c4
test byte [rcx + 0x1c], 1
je 0x1400189c4
cmp byte [rcx + 0x19], 2
jb 0x1400189c4
mov edx, 0x9e
jmp 0x1400187ba
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14001cdcc
mov dword [rbp - 0x48], eax
mov ebx, eax
test eax, eax
jns 0x1400187da
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x1400189c4
test byte [rcx + 0x1c], 1
je 0x1400189c4
cmp byte [rcx + 0x19], 2
jb 0x1400189c4
mov edx, 0x9f
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
lea r8, [0x1400467c0]
mov dword [rsp + 0x20], eax
call fcn.14000c408
jmp 0x1400189c4
lea rcx, [rbp - 0x40]
call fcn.1400222f8
mov dword [rbp - 0x48], eax
mov ebx, eax
lea r14, [0x14004d128]
test eax, eax
jns 0x14001882b
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x14001882b
test byte [rcx + 0x1c], 1
je 0x14001882b
cmp byte [rcx + 0x19], 2
jb 0x14001882b
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa0
mov dword [rsp + 0x20], eax
lea r8, [0x1400467c0]
call fcn.14000c408
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.14001b11c
test eax, eax
jns 0x140018872
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140018872
test byte [rcx + 0x1c], 1
je 0x140018872
cmp byte [rcx + 0x19], 2
jb 0x140018872
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa1
mov dword [rsp + 0x20], eax
lea r8, [0x1400467c0]
call fcn.14000c408
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.14001ae48
test eax, eax
jns 0x1400188bb
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400188bb
test byte [rcx + 0x1c], 1
je 0x1400188bb
cmp byte [rcx + 0x19], 2
jb 0x1400188bb
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa2
mov dword [rsp + 0x20], eax
lea r8, [0x1400467c0]
call fcn.14000c408
mov rcx, r13
call fcn.14001e688
test eax, eax
jns 0x1400188ff
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400188ff
test byte [rcx + 0x1c], 1
je 0x1400188ff
cmp byte [rcx + 0x19], 2
jb 0x1400188ff
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa3
mov dword [rsp + 0x20], eax
lea r8, [0x1400467c0]
call fcn.14000c408
lea rdx, [r15 + 0x488]
mov rcx, r15
call fcn.14001e614
test eax, eax
jns 0x14001894a
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x14001894a
test byte [rcx + 0x1c], 1
je 0x14001894a
cmp byte [rcx + 0x19], 2
jb 0x14001894a
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa4
mov dword [rsp + 0x20], eax
lea r8, [0x1400467c0]
call fcn.14000c408
mov rcx, qword [r15 + 0x360]
mov byte [r15 + 0x480], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400189c4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400189a6
test byte [rcx + 0x1c], 1
je 0x1400189a6
cmp byte [rcx + 0x19], 2
jb 0x1400189a6
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + 0x2a0]
mov edx, 0xa5
mov dword [rsp + 0x20], eax
call fcn.1400195a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400189c1
movzx ebx, ax
or ebx, 0x80070000
mov dword [rbp - 0x48], ebx
lea rcx, [rbp - 0x40]
call fcn.14001a118
lea rcx, [rbp - 0x50]
call fcn.1400059dc
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov r13, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret