Function at 0x140100c60
Capabilities:
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa20]
sub rsp, 0xb20
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0xa10], rax
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov r9, r8
mov r8, rdx
lea rdx, str.RobustFileOps::MoveFile:__F____s_______s_
mov ecx, 3
call fcn.1400fe924
mov dword [rsp + 0x30], 0xa
lea rcx, [r15 + 0x58]
call fcn.14004f104
xor edx, edx
mov rcx, rax
call fcn.14001f71c
cmp eax, 0x102
je 0x140100d08
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.RobustFileOps::MoveFile:_Shutdown_event_set__abandoning_MoveFileEx_of_new_sourceFilePath___s__to_destinationFilePath___s_.
mov edx, 0x9c
lea rcx, [rsp + 0x60]
call fcn.1400fd284
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor sil, sil
cmp qword [rdi + 0x10], 0
sete al
test al, al
je 0x140100d24
mov rcx, rbx
call fcn.1400228c8
jmp 0x140100eaa
mov r8, r14
mov rdx, rbx
mov rcx, r15
call fcn.1401008d4
xor r14d, r14d
test sil, sil
jne 0x140100eaa
inc r14d
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
lea rdx, str.RobustFileOps::MoveFile:_Moving_new_sourceFilePath___s__to_destinationFilePath___s_:_Attempt__d_of__d.
mov ecx, 3
call fcn.1400ff378
cmp qword [rbx + 0x18], 8
jb 0x140100d7d
mov rdx, qword [rbx]
jmp 0x140100d80
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140100d8c
mov rcx, qword [rdi]
jmp 0x140100d8f
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140100da4
mov sil, 1
jmp 0x140100dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
lea rdx, str.RobustFileOps::MoveFile:_MoveFileEx_failed_to_move_new_sourceFilePath___s__to_destinationFilePath___s_:_LastError:__d
mov ecx, 3
call fcn.1400ff4b0
mov rdx, rbx
mov rcx, r15
call fcn.140100394
test al, al
jne 0x140100dfb
lea rcx, [r15 + 0x58]
call fcn.14004f104
mov edx, 0x1f4
mov rcx, rax
call fcn.14001f71c
cmp eax, 0x102
jne 0x140100e07
cmp r14d, dword [rsp + 0x30]
jae 0x140100e3b
jmp 0x140100d35
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.RobustFileOps::MoveFile:_Shutdown_event_set__abandoning_MoveFileEx_of_new_sourceFilePath___s__to_destinationFilePath___s___after_failure_
mov edx, 0x9c
lea rcx, [rbp + 0x2f0]
call fcn.1400fd3ec
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x2f0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test sil, sil
jne 0x140100eaa
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
lea rdx, str.RobustFileOps::MoveFile:_FAILED__MoveFileEx_failed_to_move_new_sourceFilePath___s__to_destinationFilePath___s_._All__d_of__d_attempts_exhausted_
mov ecx, 3
call fcn.1400ff5d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea r9, str.RobustFileOps::MoveFile:_Failed_to_replace_existing_file:___s__with___s_:
mov edx, 0xf
lea rcx, [rbp + 0x680]
call fcn.1400fd1c4
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x680]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov ecx, 0x50
call fcn.1400206a0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140100ecd
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.1400ff870
nop
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x93
test rax, rax
je 0x140100ee3
lock inc dword [rax + 8]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401019c8
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140100f18
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140100f18
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rdx, str.RobustFileOps::MoveFile:_MoveFileEx_succeeded
mov ecx, 3
call fcn.1400fea30
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.140121d80
add rsp, 0xb20
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret