Function at 0x140060242
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rbx, r8
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea r10, [0x140089fb7]
mov rdx, r11
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov r11, rax
mov rax, r11
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov r11, rax
lea r14, [0x140089816]
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 rcx, [rbp + 0x80]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x60], r10
mov qword [rbp - 0x58], r11
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
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 + 0x70]
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov r9, r8
mov r8, rdx
mov rdx, rax
call sym.string_replace
mov rax, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x78]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.string_to_wide
mov rbx, rax
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
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 + 0xdc], eax
cmp dword [rbp + 0xdc], 0
je 0x140060544
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xf
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, str.failed_to_rename
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x11
mov dword [rbp - 4], 1
mov dword [rbp], 0xfe10
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rdx
lea rax, str._to
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 4
mov dword [rbp + 0x24], 1
mov dword [rbp + 0x28], 0xfe10
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
lea rax, [0x140088256]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x4c], 1
lea rax, [rbp + 0xb0]
lea rdx, [rbp - 0x10]
mov r8, rdx
mov edx, 3
mov rcx, rax
call sym.str_intp
lea rcx, [rbp + 0xc0]
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov edx, dword [rbp + 0xdc]
lea rax, [rbp - 0x40]
mov r8d, edx
mov rdx, rax
call sym.error_with_code
mov rax, qword [rbp + 0x130]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x130]
mov byte [rax], 1
mov rcx, qword [rbp + 0x130]
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x140060556
mov rax, qword [rbp + 0x130]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x130]
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret