Function at 0x180005ad0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r15, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x30], 0xffffffffffffffff
xor r12d, r12d
mov qword [rax - 0x78], r12
mov dword [rax - 0x80], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp - 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x180005c7d
mov qword [rbp - 0x38], 0xffffffffffffffff
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp - 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x180005c1d
mov rdx, rsi
mov rcx, rbx
call fcn.180002480
test al, al
je 0x180005c5b
mov qword [rbp - 0x28], rdi
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 8]
lea r8, [rbp - 0x28]
mov edx, dword [rbx + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180005be9
mov r8, r14
mov rdx, qword [rbx]
lea rcx, str._s_updated_with___s___reboot_required
call fcn.180004f60
mov byte [r15], 1
mov bl, 1
jmp 0x180005c5d
lea rcx, [rbp + 0x30]
call fcn.18000b980
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov rdx, rax
mov r8d, dword [rbp + 0x30]
lea rcx, str.Update_operation_failed._n_____s._Error_code___lu.
call fcn.180004f60
nop
jmp 0x180005c52
lea rcx, [rbp + 0x30]
call fcn.18000b980
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r8, rax
mov r9d, dword [rbp + 0x30]
mov rdx, r14
lea rcx, str.Unable_to_open_source_file___s__n_____s._Error_code___lu.
call fcn.180004f60
nop
lea rcx, [rbp - 0x18]
call fcn.18000b9b0
xor bl, bl
cmp rdi, 0xffffffffffffffff
je 0x180005d30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x38], 0xffffffffffffffff
jmp 0x180005d30
lea rcx, [rbp + 0x30]
call fcn.18000b980
lea rcx, [rbp + 0x30]
call fcn.18000bca0
cmp eax, 2
jne 0x180005cf8
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180005ce4
lea rcx, [rbp - 0x40]
call fcn.18000b980
mov edx, dword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r9, rax
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x20], eax
mov r8, rdi
mov rdx, r14
lea rcx, str.Unable_to_copy___s__to_n_____s.__s._Error_code___lu.
call fcn.180004f60
nop
jmp 0x180005d25
lea rcx, str.Reboot_required
call fcn.180004d30
mov byte [r15], 1
mov bl, 1
jmp 0x180005d30
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.18000b930
nop
mov rcx, rax
call fcn.18000c3b0
mov r8, rax
mov r9d, dword [rbp + 0x30]
mov rdx, qword [rbx + 8]
lea rcx, str.Unable_to_open_device___s_._n_____s._Error_code___lu.
call fcn.180004f60
nop
lea rcx, [rbp - 0x18]
call fcn.18000b9b0
xor bl, bl
cmp rsi, 0xffffffffffffffff
je 0x180005d47
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x30], 0xffffffffffffffff
movzx eax, bl
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret