Function at 0x1400609eb
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp], rax
mov qword [rbp + 8], rdx
mov rbx, r8
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 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 + 0xc0]
mov rax, qword [rbp]
mov rdx, qword [rbp + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x40], r10
mov qword [rbp - 0x38], r11
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
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 + 0xb0]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
mov r9, r8
mov r8, rdx
mov rdx, rax
call sym.string_replace
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.string_to_wide
mov rbx, rax
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.string_to_wide
mov r8d, 0
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileW]
call rax
test eax, eax
jne 0x140060cfd
lea rdx, [rbp + 0x10]
mov eax, 0
mov ecx, 0xf
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, str.failed_to_copy
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], 0xf
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x20], 0xfe10
mov rax, qword [rbp]
mov rdx, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rdx
lea rax, str._to
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], 4
mov dword [rbp + 0x44], 1
mov dword [rbp + 0x48], 0xfe10
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
lea rax, [0x140088256]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x6c], 1
lea rax, [rbp + 0x90]
lea rdx, [rbp + 0x10]
mov r8, rdx
mov edx, 3
mov rcx, rax
call sym.str_intp
mov dword [rbp + 0xa0], 0x7efefefe
lea rcx, [rbp + 0xf0]
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x98]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0xa0]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.os__error_win32
mov rax, qword [rbp + 0x150]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x150]
mov byte [rax], 1
mov rcx, qword [rbp + 0x150]
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xf8]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x140060d0f
mov rax, qword [rbp + 0x150]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x150]
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret