Function at 0x140105954
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xab8]
sub rsp, 0xb80
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0xa70], rax
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov rcx, rdx
call fcn.140011cf0
test al, al
je 0x140105cb0
cmp qword [r15 + 0x10], 0
sete al
test al, al
jne 0x140105cb0
mov dword [rsp + 0x40], 0xa
xor sil, sil
mov byte [rsp + 0x20], sil
mov r9, r15
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14010557c
nop
lea rcx, [r14 + 0x58]
call fcn.1401302dc
xor edx, edx
mov rcx, rax
call fcn.140021418
cmp eax, 0x102
je 0x140105a26
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.RobustFileOps::MoveFileToBackup:_Shutdown_event_set__abandoning_MoveFileEx_of_existing_fileToMoveToBackupPath___s__to_bakPath___s_.
mov edx, 0x9c
lea rcx, [rbp - 0x40]
call fcn.1401020e8
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r13d, r13d
test sil, sil
jne 0x140105ca2
inc r13d
mov dword [rsp + 0x48], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, str.RobustFileOps::MoveFileToBackup:_Moving_existing_fileToMoveToBackupPath___s__to_bakPath___s_:_Attempt__d_of__d.
mov ecx, 3
call fcn.140104410
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
cmp qword [rbx + 0x18], 8
jb 0x140105a80
mov rcx, qword [rbx]
jmp 0x140105a83
mov rcx, rbx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140105b25
mov sil, 1
mov ecx, 0x50
call fcn.140021ddc
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140105abe
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, rax
call fcn.140104880
nop
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x93
test rax, rax
je 0x140105ad4
lock inc dword [rax + 8]
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140106b68
lea rcx, [r14 + 0x18]
mov r9b, byte [rsp + 0x44]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x70]
call fcn.14002fd38
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140105b20
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140105b20
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
jmp 0x140105c02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, str.RobustFileOps::MoveFileToBackup:_MoveFileEx_failed_to_move_existing_fileToMoveToBackupPath___s__to_bakPath___s_:_LastError:__d
mov ecx, 3
call fcn.1401044e4
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140105414
test al, al
jne 0x140105c02
mov rcx, rbx
call fcn.140011cf0
test al, al
jne 0x140105b8a
mov r8, rbx
lea rdx, str.RobustFileOps::MoveFileToBackup:_File_at_fileToMoveToBackupPath___s__no_longer_exists__no_need_to_move_it_to_a_backup_location.
mov ecx, 3
call fcn.140104548
mov sil, 1
jmp 0x140105c02
lea rcx, [rbp - 0x80]
call fcn.140011cf0
test al, al
je 0x140105be5
mov byte [rsp + 0x20], 1
mov r9, r15
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.14010557c
mov rdi, rax
lea rax, [rbp - 0x80]
cmp rax, rdi
je 0x140105bd5
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x80]
call fcn.140007a08
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400077b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.140007a08
jmp 0x140105c02
lea rcx, [r14 + 0x58]
call fcn.1401302dc
mov edx, 0x1f4
mov rcx, rax
call fcn.140021418
cmp eax, 0x102
jne 0x140105c0e
cmp r13d, dword [rsp + 0x40]
jae 0x140105c46
jmp 0x140105a29
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.RobustFileOps::MoveFileToBackup:_Shutdown_event_set__abandoning_MoveFileEx_of_existing_fileToMoveToBackupPath___s__to_bakPath___s___after_failure_
mov edx, 0x9c
lea rcx, [rbp + 0x350]
call fcn.140102254
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x350]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test sil, sil
jne 0x140105ca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, str.RobustFileOps::MoveFileToBackup:_FAILED__MoveFileEx_failed_to_move_existing_fileToMoveToBackupPath___s__to_bakPath___s_._All__d_of__d_attempts_exhausted_
mov edx, 0xa0
lea rcx, [rbp + 0x6e0]
call fcn.140102308
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x6e0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x80]
call fcn.140007a08
mov rcx, qword [rbp + 0xa70]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0xbd8]
add rsp, 0xb80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret