Function at 0x14001bf60
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400f5608]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov rbx, rdx
mov edx, 0x4e20
lea rcx, [0x1400fa680]
call fcn.14002abe0
lea r14, str.void___cdecl_System::UtilsImpl::renameFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
test al, al
je 0x14001c071
call fcn.14002b900
mov rsi, rax
lea rdx, str.Rename_file:
mov rcx, rax
call fcn.14000e1c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001bfc6
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e6f0
lea rdx, str._to
mov rcx, rax
call fcn.14000e1c0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001bfee
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.14000e6f0
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x30]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0xa6
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x30]
mov edx, 0x4e20
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001c071
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c06c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2ea
call fcn.14008b4c8
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c07e
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14001c163
mov edx, 0x7530
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001c2c0
call fcn.14002b900
mov rdi, rax
lea rdx, [0x1400c3ca0]
mov rcx, rax
call fcn.14000e1c0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001c0ca
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000e6f0
mov rcx, rax
lea rdx, str._doesnt_exist._Cancel_rename.
call fcn.14000e1c0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0xa9
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x30]
mov edx, 0x7530
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001c2c0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c2bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2e4
jmp 0x14001c2bb
mov rdx, rdi
mov rsi, qword [rdi + 0x18]
cmp rsi, 0x10
jb 0x14001c173
mov rdx, qword [rdi]
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c184
mov rcx, qword [rbx]
cmp r8, qword [rdi + 0x10]
jne 0x14001c1dd
call fcn.14008d4b0
test eax, eax
jne 0x14001c1dd
mov edx, 0x7530
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001c2c0
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0xaf
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, str.Old_and_new_path_are_equal._Cancel_rename.
mov edx, 0x7530
lea rcx, [0x1400fa680]
call fcn.14002bae0
jmp 0x14001c2c0
cmp rsi, 0x10
jb 0x14001c1e6
mov rdi, qword [rdi]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c1f3
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14001c2c0
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001c2c0
call fcn.14002b900
mov rdi, rax
lea rdx, str.Failed_to_rename_the_file_on_path
mov rcx, rax
call fcn.14000e1c0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001c242
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000e6f0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0xb5
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x30]
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001c2c0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c2bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2de
call fcn.14008b4c8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008bad0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
call fcn.140091b3c
int3
call fcn.140091b3c
int3
call fcn.140091b3c
int3