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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x40], 0
lea r9, [rcx + 0x10]
mov rbx, qword [0x14005eb48]
mov rdi, rcx
je 0x1400110bb
cmp qword [r9 + 0x18], 8
jb 0x14001104f
mov r9, qword [r9]
mov r8d, 1
lea rdx, str.Rollback_restore__ls
lea rcx, [rbp - 0x30]
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14001112c
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011127
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112c8
jmp 0x140011127
cmp qword [r9 + 0x18], 8
jb 0x1400110c5
mov r9, qword [r9]
mov r8d, 1
lea rdx, str.Rollback_delete__ls
lea rcx, [rbp - 0x30]
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14001112c
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011127
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112ce
call fcn.14001c70c
cmp qword [rdi + 0x28], 8
lea rbx, [rdi + 0x10]
mov rcx, rbx
jb 0x14001113d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400111e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400111e9
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x140011179
mov r9, qword [rbx]
mov r8d, 2
mov dword [rsp + 0x20], eax
lea rdx, str.Rollback_delete__ls_failed___d_
lea rcx, [rbp - 0x30]
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rsi
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
mov rsi, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400111e9
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112d4
call fcn.14001c70c
cmp qword [rdi + 0x40], 0
je 0x1400112a4
cmp qword [rdi + 0x48], 8
lea rcx, [rdi + 0x30]
jb 0x140011202
mov rcx, qword [rcx]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14001120f
mov rdx, qword [rbx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400112a4
mov rdi, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
jb 0x14001123a
mov rbx, qword [rbx]
mov r9, rbx
mov dword [rsp + 0x20], eax
mov r8d, 2
lea rdx, str.Rollback_restore_of__ls_failed___d_
lea rcx, [rbp - 0x30]
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400112a4
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001129f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112c2
call fcn.14001c70c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3