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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f6cc
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.InstallIccProfile::RestoreLatestICCForPnP
lea ecx, [ebp - 0x2250]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x456a4a
test byte [ecx + 0x1c], 1
je 0x456a4a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cd1c0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x27
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x2218]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1a18]
push 0
push eax
call fcn.00571c00
add esp, 0x24
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x456d63
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
mov dword [ebp - 0x2258], ebx
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x2270], ecx
lea ecx, [ebp - 0x226c]
mov byte [ebp - 4], 1
call fcn.0055b16f
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x226c]
mov byte [ebp - 4], 2
call fcn.0055b63e
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.INSTALLATION_SELECT
call fcn.004f65f0
lea eax, [ebp - 0xa18]
push eax
call fcn.00577bb7
add esp, 4
cmp eax, 2
jne 0x456b2b
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x2218]
push eax
push str.USB_ADDED_DRIVERNAME
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1218]
push eax
push str.RESTORE_COLOR_FOLDER
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1a18]
push eax
push str.COLOR_FOLDER
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x1218]
push eax
call esi
test eax, eax
je 0x456cc8
lea eax, [ebp - 0x1a18]
push eax
call esi
test eax, eax
je 0x456cc8
lea ecx, [ebp - 0x2254]
call fcn.0046a2f0
lea eax, [ebp - 0x226c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2218]
mov ecx, 0x618568
push eax
call fcn.00449d80
mov edi, dword [ebp - 0x2264]
xor esi, esi
test edi, edi
jle 0x456cbd
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0x18
test esi, esi
js 0x456d5e
cmp esi, edi
jge 0x456d5e
mov eax, dword [ebp - 0x2268]
push dword [eax + esi*4]
lea eax, [ebp - 0x1218]
push eax
push 0x5c70f4
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
cmp esi, dword [ebp - 0x2264]
jge 0x456d5e
mov eax, dword [ebp - 0x2268]
push dword [eax + esi*4]
lea eax, [ebp - 0x1a18]
push eax
push 0x5c70f4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x2254]
push 1
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0046c620
cmp eax, 1
jne 0x456ca8
push 0x20
lea eax, [ebp - 0x218]
push eax
call ebx
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [ebp - 0x2264]
inc esi
cmp esi, edi
jl 0x456bd0
mov ebx, dword [ebp - 0x2258]
lea ecx, [ebp - 0x2254]
call fcn.0046a3c0
mov byte [ebp - 0x224c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x456d11
test byte [ecx + 0x1c], 1
je 0x456d11
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cd1c0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x28
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x226c]
call fcn.0055b186
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x456d35
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2250]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.005511b9
push 0x80004005
call fcn.004013a0
int3