Function at 0x4c0aa0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc293
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 1
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.004f0653
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xa4]
push eax
push 2
push str.c:endpcache_autorun_check.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x98]
push esi
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [0x4fe4e8]
push ecx
push 1
push esi
lea ecx, [ebp - 0x5c]
call fcn.004f0727
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
mov eax, dword [ebp + eax - 0x58]
cmp dword [eax + 0x30], 0xffffffff
je 0x4c0bea
mov esi, dword [ebp - 0x58]
push 0xa
lea ecx, [ebp - 0x2a4]
push 0x100
inc esi
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
call fcn.004f0ae9
lea edi, [ebp - 0x2a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 1
jle 0x4c0bd9
lea edx, [ebp - 0x2a4]
push str.shellexecute
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c0bd9
xor eax, eax
mov cl, 0x3d
cmp eax, esi
jge 0x4c0bcc
cmp ebx, 1
jne 0x4c0bbb
mov edi, dword [ebp - 0x14]
mov dl, byte [ebp + eax - 0x2a4]
mov byte [ebp + edi - 0x1a4], dl
inc edi
mov dword [ebp - 0x14], edi
cmp byte [ebp + eax - 0x2a4], cl
jne 0x4c0bc9
mov ebx, 1
inc eax
jmp 0x4c0b9d
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x1a4], 0
jmp 0x4c0bea
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x54], 1
je 0x4c0b4d
lea ecx, [ebp - 0x5c]
call fcn.004f076e
lea eax, [ebp - 0x1a4]
lea ecx, [ebp - 0x98]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0xa4]
call fcn.004f076e
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 1
rep movsb byte es:[edi], byte [esi]
jne 0x4c0cda
lea edi, [ebp - 0x1a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.004ab130
add esp, 4
lea edx, [ebp + 8]
lea eax, [ebp - 0x8e4]
lea ecx, [ebp - 0x1a4]
push edx
xor edi, edi
push eax
push ecx
mov dword [ebp + 8], edi
call fcn.004c0d40
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
cmp edi, dword [ebp + 8]
jge 0x4c0cda
mov edx, edi
shl edx, 6
lea esi, [ebp + edx - 0x8e4]
push esi
call fcn.004abe70
add esp, 4
cmp eax, 1
jne 0x4c0cd7
push 0x80
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
jmp 0x4c0ca9
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x90]
call fcn.004f05fb
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x48]
call fcn.004f05fb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret