Function at 0x140077660
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1bf0]
mov eax, 0x1cf0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1be0], rax
lea rdx, str.InstallIccProfile::RestoreLatestICCForPnP
lea rcx, [rsp + 0x70]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea r15, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x1400776f9
test byte [rcx + 0x1c], 1
je 0x1400776f9
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x27
lea r8, [0x140257ad8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x13e0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x3e0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xbe0]
call fcn.1401e7e40
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140077ab1
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x40]
call fcn.1401c8bf0
nop
mov r14, 0xffffffffffffffff
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401c921c
call fcn.1400d4ce0
cmp eax, 2
jne 0x1400777bc
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x13e0]
lea rdx, str.USB_ADDED_DRIVERNAME
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x3e0]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0xbe0]
lea rdx, str.COLOR_FOLDER
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140077996
lea rcx, [rbp + 0xbe0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140077996
lea rcx, [rsp + 0x30]
call fcn.140091e00
nop
mov rax, qword [0x1402bc020]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x13e0]
lea rcx, [0x1402bc020]
mov rax, qword [rax + 0x10]
call qword [case.0x1400136d6.0]
xor esi, esi
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jle 0x14007798c
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
test rbx, rbx
js 0x140077abc
cmp rbx, rdi
jge 0x140077abc
lfence
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + rbx*8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x3e0]
lea r8, [0x1402528f8]
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14002fb20
cmp rbx, qword [rsp + 0x50]
jge 0x140077abc
lfence
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + rbx*8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xbe0]
lea r8, [0x1402528f8]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14002fb20
mov r9d, 1
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x30]
call fcn.1400948e0
cmp eax, 1
jne 0x140077971
lea edx, [rax + 0x1f]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
inc esi
inc rbx
movsxd rax, esi
mov rdi, qword [rsp + 0x50]
cmp rax, rdi
jl 0x140077891
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140091f70
mov byte [rsp + 0x78], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x1400779de
test byte [rcx + 0x1c], 1
je 0x1400779de
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x28
mov dword [rsp + 0x20], 0
lea r8, [0x140257ad8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x40]
call fcn.1401c8c10
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140077a0d
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x78], 0
jne 0x140077a6d
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x140077a6d
test byte [rcx + 0x1c], 1
je 0x140077a6d
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
cmp qword [0x1402bbdc8], 8
cmovae r15, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x60]
call fcn.1400048a0
lea rcx, [rbp - 0x80]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0x1be0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1cf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
nop
call fcn.1401bb848
int3