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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov dword [rbp - 0x39], r9d
mov dword [rbp - 0x3d], r8d
mov r15, rdx
mov rdi, rcx
call fcn.1400718fc
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
lea rax, vtable.ClassPtr_class_FSItem_.0
mov qword [rbp - 0x29], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rbp - 0x21], r12
mov dword [rbp - 0x41], r12d
mov esi, r12d
lea r13, [rdi + 0xc8]
mov qword [rbp - 9], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 1], 1
lea rbx, [rdi + 0x10]
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x61], r12
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], r12w
or r12, 0xffffffffffffffff
mov r8, r12
xor ecx, ecx
inc r8
cmp word [r15 + r8*2], cx
jne 0x140070c4f
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.14001b664
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.14006789c
mov rdi, qword [rdi + 0x18]
mov rbx, qword [rax]
lea rcx, [rbp - 0x61]
call fcn.14001b814
cmp rbx, rdi
je 0x140070dd7
xor edi, edi
mov qword [rbp - 0x61], rdi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], di
mov r8, r12
inc r8
cmp word [r15 + r8*2], di
jne 0x140070ca9
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.14001b664
nop
lea rdx, [rbp - 0x61]
mov rbx, qword [rbp - 0x31]
mov rcx, rbx
call fcn.1400746c8
mov r14, qword [rax + 8]
test r14, r14
je 0x140070ce8
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [str.0B__]
mov qword [rbp - 0x21], r14
lea rcx, [rbp - 0x61]
call fcn.14001b814
test r14, r14
je 0x140070dd9
mov rcx, r14
call fcn.1400753dc
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], di
mov r8, r12
inc r8
cmp word [r15 + r8*2], di
jne 0x140070d1d
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.14001b664
nop
cmp qword [rbp - 0x51], rdi
jne 0x140070d55
mov esi, 0x80070057
mov r8d, 0x4e5
mov ecx, esi
lea rdx, str.D:dbs_shodct0417_084611_0cmduclientonedriveSetup_standalone_fsmanager_fsmanagerimpl.cpp
call fcn.140064438
jmp 0x140070da7
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.140075300
mov esi, eax
test eax, eax
jns 0x140070d71
mov r8d, 0x4e9
mov ecx, eax
jmp 0x140070d47
mov rax, qword [r14 + 0x18]
sub rax, qword [r14 + 0x10]
cmp rax, 0x20
jae 0x140070da7
mov qword [rbp - 0x19], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x11], 1
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.1400747a0
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rbp - 0x61]
call fcn.14001b814
test esi, esi
jns 0x140070dd9
mov r8d, 0x258
lea rdx, str.D:dbs_shodct0417_084611_0cmduclientonedriveSetup_standalone_fsmanager_fsmanagerimpl.cpp
mov ecx, esi
call fcn.140064438
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140070f03
xor edi, edi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 0x8000ffff
test eax, eax
je 0x140070eae
mov qword [rbp - 9], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], di
inc r12
cmp word [r15 + r12*2], di
jne 0x140070e0c
mov r8, r12
mov rdx, r15
lea rcx, [rbp - 9]
call fcn.14001b664
nop
lea rcx, [rbp - 9]
call fcn.140077cb0
mov edi, dword [rbp - 0x41]
mov r12d, dword [rbp - 0x3d]
mov r13d, dword [rbp - 0x39]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140070ea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, ebx
test ecx, ecx
cmovs esi, ecx
lea r9, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r9, qword [rbp - 9]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
lea r8, str.Failed_to_immediately_delete_file___ls___hr0x_08X__retry_u
lea rdx, str.FSManagerImpl
mov ecx, esi
call fcn.140064998
inc edi
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, r12d
jbe 0x140070e3a
xor edi, edi
jmp 0x140070ea5
xor edi, edi
mov esi, edi
lea rcx, [rbp - 9]
call fcn.14001b814
test esi, esi
jns 0x140070f03
cmp byte [rbp + 0x7f], dil
je 0x140070f03
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140070ecf
mov esi, edi
jmp 0x140070f03
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovs ebx, r8d
lea r8, str.Failed_to_schedule_reboot_delete_using_the_MoveFileEx_API.
lea rdx, str.FSManagerImpl
mov ecx, ebx
call fcn.140064998
nop
test r14, r14
je 0x140070f19
mov rdx, qword [r14]
mov rcx, r14
mov rax, qword [rdx + 8]
call qword [str.0B__]
nop
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret