Function at 0x478b70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x8748
call fcn.004f2630
push ebx
push esi
push edi
lea eax, [ebp - 0x158]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0xb8]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xb8]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x70]
push eax
push 1
push str.c:endpcachedangerproc_list.txt
mov dword [0xe56c0c], esi
call fcn.004f0727
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + edx - 0x6c]
cmp dword [eax + 0x30], 0xffffffff
je 0x478ea9
inc esi
cmp esi, 0x1f4
mov dword [ebp - 0x28], esi
jg 0x478ea9
mov ebx, dword [ebp - 0x6c]
push 0xa
lea eax, [ebp - 0x358]
inc ebx
push 0x200
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
call fcn.004f0ae9
lea edi, [ebp - 0x358]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x758]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x358]
push ecx
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x478e98
lea edi, [ebp - 0x358]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x758]
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, 5
rep movsb byte es:[edi], byte [esi]
jle 0x478e95
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x18], eax
jne 0x478cdc
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x478d61
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x8758]
push ecx
push edx
mov dword [ebp - 0x20], 1
call fcn.004aa1c0
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 4
jge 0x478d18
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x8758]
push eax
push ecx
call fcn.004aa790
add esp, 8
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x478d61
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x5c]
call fcn.004f05fb
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0xa4]
call fcn.004f05fb
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
cmp edi, eax
jge 0x478e95
mov edx, edi
lea eax, [ebp - 0x358]
shl edx, 7
push eax
lea esi, [ebp + edx - 0x8758]
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x478e8f
mov ebx, dword [ebp - 0x1c]
mov edi, dword [0xe56c0c]
inc ebx
inc edi
push esi
mov dword [ebp - 0x1c], ebx
mov dword [0xe56c0c], edi
call fcn.00478f30
add esp, 4
mov ebx, eax
lea ecx, [ebp - 0x358]
lea edx, [ebp - 0xd8]
push ebx
push ecx
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x558]
push eax
push 0x524110
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x18
test eax, eax
jne 0x478e4d
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b0]
test eax, eax
mov eax, dword [ebp + 0x1b4]
lea edx, [ebp - 0x558]
push edx
push eax
push ecx
jne 0x478e30
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x478e47
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
push 0x5147ac
push ebx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x478e65
inc dword [0xe56d2c]
lea edx, [ebp - 0x558]
lea ecx, [ebp - 0xac]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edi, dword [ebp - 0x24]
inc edi
jmp 0x478d63
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x68], 1
je 0x478c2f
lea ecx, [ebp - 0x70]
call fcn.004f076e
push 0x80
push str.c:endpcachedangerproc_list.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcachedangerproc_list.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xb8]
call fcn.004f076e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x5c]
call fcn.004f05fb
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0xa4]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret