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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b593
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.10042c60
mov eax, dword [0x10086e84]
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
xor esi, esi
mov dword [ebp - 4], esi
call fcn.10002d13
mov edi, 0x410
push edi
mov dword [ebp - 0x1068], eax
lea eax, [ebp - 0xc4a]
push esi
push eax
mov word [ebp - 0xc4c], si
call fcn.10042010
push edi
lea eax, [ebp - 0x105e]
push esi
push eax
mov word [ebp - 0x1060], si
call fcn.10042010
push 0xffffffffffffffff
push dword [ebp + 8]
mov esi, 0x209
lea eax, [ebp - 0xc4c]
push esi
push eax
call fcn.100421ff
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x1060]
push esi
push eax
call fcn.100421ff
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x38
push str.redirect.inf
lea eax, [ebp - 0xc4c]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
push str.redirect.sys
lea eax, [ebp - 0x1060]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
and word [ebp - 0x838], 0
push edi
lea eax, [ebp - 0x836]
push 0
push eax
call fcn.10042010
and word [ebp - 0x424], 0
push edi
lea eax, [ebp - 0x422]
push 0
push eax
call fcn.10042010
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.100421ff
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.100421ff
add esp, 0x38
push str.redirect64.inf
lea eax, [ebp - 0x838]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
push str.redirect64.sys
lea eax, [ebp - 0x424]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
cmp dword [ebp - 0x1068], 0
je 0x1000cbf7
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x838]
push eax
call esi
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x1060]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
mov dword [ebp - 0x1064], eax
je 0x1000cc18
push ebx
lea eax, [ebp - 0xc4c]
push eax
call esi
push 0
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0x838]
push eax
call edi
mov dword [ebp - 0x1064], eax
cmp dword [ebp - 0x1064], 0
je 0x1000cc18
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x424]
push eax
call esi
lea eax, [ebp - 0x838]
push eax
call esi
xor esi, esi
cmp dword [ebp - 0x1064], esi
mov dword [ebp - 0x106c], esi
je 0x1000cc66
cmp dword [ebp - 0x1068], esi
je 0x1000cc45
lea eax, [ebp - 0x106c]
push eax
call fcn.10002d53
mov esi, eax
pop ecx
mov dword [ebp - 0x1064], esi
cmp dword [ebp - 0x1064], 0
je 0x1000cc66
push 0
lea eax, [ebp - 0xc4c]
push 0x80
push eax
call fcn.1000c112
add esp, 0xc
jmp 0x1000cc7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000cc7a
and eax, 0xffff
or eax, 0x80070000
test esi, esi
mov edi, eax
je 0x1000cc8c
push dword [ebp - 0x106c]
call fcn.10002d80
pop ecx
test edi, edi
jge 0x1000cce0
cmp byte [ebp + 0xc], 0
jne 0x1000cce0
push 0x100884b0
lea ecx, [ebp - 0x1068]
call fcn.10004658
push edi
lea eax, [ebp - 0x1068]
push str.Error_installing_filter_driver__error_code__0x_08X.
push eax
mov byte [ebp - 4], 1
call fcn.100093b9
mov esi, dword [ebp - 0x1068]
add esp, 0xc
push 0x51000
push str.Installation_Error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.1000285b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000285b
mov eax, edi
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.10041ffa
leave
ret