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

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x23b0]
mov eax, 0x24b0
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x24d8], rbx
mov qword [rsp + 0x24e0], rsi
mov qword [rsp + 0x24e8], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x23a0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_RestoreLatestICCForPnP
lea rcx, [rsp + 0x60]
call fcn.1400075a0
nop
xor r13d, r13d
mov word [rbp + 0x13a0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x13a2]
call fcn.14024b970
mov word [rbp + 0xba0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0xba2]
call fcn.14024b970
mov word [rbp + 0x3a0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x3a2]
call fcn.14024b970
call fcn.140102a14
mov r11, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140098c0c
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x1402dc4e0]
test rdx, 0xffffffffffff0000
jne 0x140098c4f
movzx ebx, dx
mov ecx, ebx
call fcn.1401027e8
test rax, rax
je 0x140098c5d
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005b00
jmp 0x140098c5d
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
lea rcx, [rsp + 0x38]
call fcn.140105848
nop
or r12, 0xffffffffffffffff
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140105958
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x1ba0]
lea rdx, str.INSTALLATION_SELECT
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x1ba0]
call fcn.14024740c
cmp eax, 2
jne 0x140098cd6
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x13a0]
lea rdx, str.USB_ADDED_DRIVERNAME
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xba0]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x3a0]
lea rdx, str.COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0xba0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140098eae
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140098eae
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rbx, qword [rdi]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xa0]
mov r9d, eax
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x13a0]
mov rcx, rdi
call qword [rbx + 0x340]
mov esi, r13d
mov rbx, r13
mov rdi, qword [rsp + 0x48]
test rdi, rdi
jle 0x140098eae
nop word [rax + rax]
mov word [rbp + 0x190], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.14024b970
mov word [rbp - 0x80], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x7e]
call fcn.14024b970
test rbx, rbx
js 0x140098ea8
cmp rbx, rdi
jge 0x140098ea8
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + rbx*8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xba0]
lea r8, [0x1402e3978]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.140246778
cmp rbx, qword [rsp + 0x48]
jge 0x140098ea2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + rbx*8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3a0]
lea r8, [0x1402e3978]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.140246778
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, 1
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x190]
call qword [rax + 0x58]
cmp eax, 1
jne 0x140098e8a
lea edx, [rax + 0x1f]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
inc esi
inc rbx
movsxd rax, esi
mov rdi, qword [rsp + 0x48]
cmp rax, rdi
jl 0x140098da0
jmp 0x140098eae
call fcn.140102ffc
int3
call fcn.140102ffc
int3
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x60]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140105ce4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140098ef3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x23a0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x24b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret