Function at 0x140060571
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x180], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov rbx, r8
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.os__is_dir
test al, al
je 0x1400606ec
lea rcx, [rbp + 0xd0]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [0x1400c8d80]
mov rdx, qword [0x1400c8d88]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r8, rdx
mov rdx, rax
call sym.string_trim_right
lea rcx, [rbp + 0xe0]
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xd8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rdx, rax
call sym.os__file_name
lea rcx, [rbp + 0xf0]
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [0x1400c8d80]
mov rdx, qword [0x1400c8d88]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r8, rdx
mov rdx, rax
call sym.string_trim_right
lea rcx, [rbp + 0xc0]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xf8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r8, rdx
mov rdx, rax
call sym.os__join_path_single
lea r14, [0x140089fb7]
mov rdx, r15
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov r15, rax
mov rax, r15
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov r15, rax
lea rax, [0x140089816]
mov qword [rbp - 0x60], rax
mov rdx, qword [rbp - 0x58]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x58], rax
lea rcx, [rbp + 0x90]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movdqu xmm1, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r9, r8
mov r8, rdx
mov rdx, rax
call sym.string_replace
lea rsi, [0x140089fb7]
mov rdx, rdi
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov rdi, rax
mov rax, rdi
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov rdi, rax
lea r12, [0x140089816]
mov rdx, r13
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov r13, rax
mov rax, r13
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov r13, rax
lea rcx, [rbp + 0x80]
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r9, r8
mov r8, rdx
mov rdx, rax
call sym.string_replace
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.string_to_wide
mov rbx, rax
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x98]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.string_to_wide
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wrename]
call rax
mov dword [rbp + 0x12c], eax
cmp dword [rbp + 0x12c], 0
je 0x1400609be
mov rdx, rbp
mov eax, 0
mov ecx, 0xf
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, str.failed_to_rename
mov qword [rbp], rax
mov dword [rbp + 8], 0x11
mov dword [rbp + 0xc], 1
mov dword [rbp + 0x10], 0xfe10
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rdx
lea rax, str._to
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x34], 1
mov dword [rbp + 0x38], 0xfe10
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
lea rax, [0x140088256]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x5c], 1
lea rax, [rbp + 0x100]
mov rdx, rbp
mov r8, rdx
mov edx, 3
mov rcx, rax
call sym.str_intp
lea rcx, [rbp + 0x110]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x108]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov edx, dword [rbp + 0x12c]
lea rax, [rbp - 0x30]
mov r8d, edx
mov rdx, rax
call sym.error_with_code
mov rax, qword [rbp + 0x180]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x180]
mov byte [rax], 1
mov rcx, qword [rbp + 0x180]
mov rax, qword [rbp + 0x110]
mov rdx, qword [rbp + 0x118]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x1400609d0
mov rax, qword [rbp + 0x180]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x180]
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret