Function at 0x7cf88f6f
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
call fcn.7cfaea4c
test eax, eax
je 0x7cf88fad
cmp dword [0x7d04cbb8], edi
je 0x7cf88fad
cmp dword [0x7d04cbbc], edi
je 0x7cf88fad
call fcn.7cf5105f
mov eax, dword [0x7d04cbb8]
mov eax, dword [eax]
cmp eax, dword [0x7d04b048]
jbe 0x7cf88fb5
push 1
pop eax
jmp 0x7cf89224
lea eax, [ebp - 0x250]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x250]
push 0x7cf35098
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x250]
push edi
push eax
call fcn.7cf65038
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x7cf8900d
and al, 0xfc
push eax
lea eax, [ebp - 0x250]
push eax
call ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x250]
push 0x1021
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
cmp esi, 0xffffffff
je 0x7cf89032
lea eax, [ebp - 0x250]
push esi
push eax
call ebx
cmp dword [ebp - 4], edi
jne 0x7cf8903e
xor eax, eax
jmp 0x7cf89224
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d04cbb8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x346e6957
mov dword [ebp - 0x40], 0x403
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_193]
mov dword [ebp - 0x34], eax
mov eax, dword [0x7d04cb90]
mov dword [ebp - 0x30], eax
call fcn.7cf6a45a
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
shr eax, 0xa
add eax, dword [0x7d04cba8]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x7d04cbac]
mov dword [ebp - 0x18], eax
mov eax, dword [0x7d04cbb0]
mov dword [ebp - 0x14], eax
mov eax, dword [0x7d04cbb4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x7d04cb88]
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [0x7d04cb8c]
call esi
push 0x43
call fcn.7cf5b11e
test eax, eax
je 0x7cf890db
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 4]
push edi
lea edx, [ebp - 0x48]
push 0x3c
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x7cf891df
mov eax, dword [ebp - 4]
mov ecx, dword [0x7d04cbb8]
mov dword [ebp - 0xc], eax
mov esi, dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x38]
push edi
lea eax, [eax + eax*4]
shl eax, 2
push eax
push edi
push ecx
call esi
push eax
push dword [ebp - 0xc]
call dword [ebx + 0x10]
cmp eax, edi
jl 0x7cf891df
xor ebx, ebx
cmp dword [ebp - 0x38], edi
jle 0x7cf89172
push ebx
push dword [0x7d04cbb8]
call esi
mov eax, dword [eax]
cmp eax, edi
je 0x7cf89150
push 0x104
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x7cf89157
mov word [ebp - 0x458], di
lea eax, [ebp - 0x458]
push 1
push eax
push dword [ebp - 4]
call fcn.7cfb148b
test eax, eax
jl 0x7cf891df
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x7cf8912c
push dword [ebp - 4]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_Write]
push dword [0x7d04cb88]
call esi
test eax, eax
je 0x7cf891df
push dword [ebp - 4]
push dword [0x7d04cb8c]
call esi
test eax, eax
je 0x7cf891df
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jl 0x7cf891df
mov eax, dword [ebp - 4]
push edi
push edi
push dword [0x7cf36014]
mov ecx, dword [eax]
push dword [0x7cf36010]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x7cf891df
mov eax, dword [ebp - 4]
push 0x3c
pop ecx
push edi
mov dword [ebp - 0x48], ecx
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [edx + 0x10]
test eax, eax
jl 0x7cf891df
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 8], edi
je 0x7cf89209
cmp dword [ebp - 0x38], edi
jbe 0x7cf89209
lea eax, [ebp - 0x250]
push 2
push eax
mov dword [0x7d04cbbc], edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x7cf89216
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret