Function at 0x520530
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5edd38]
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
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
mov dword [ebp - 0x14], 0
mov ebx, 1
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x520594
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x52076a
mov edi, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x40], edi
call fcn.00406a8e
mov esi, eax
add esp, 4
test esi, esi
je 0x52075c
lea eax, [ebp - 0x14]
push eax
push esi
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
nop
mov eax, edi
mov dword [ebp - 0x14], eax
test dword [esi + 0xc], 0x100000
je 0x5206fe
mov edx, dword [esi + 4]
test edx, edx
je 0x5206fe
mov ecx, edx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5205f6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408f30
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, dword [ebp + 0x18]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
lea edx, [ecx - 1]
mov byte [ebp - 4], 1
cmp word [eax + edi*2 - 2], 0x2f
mov edi, dword [ebp + 0x18]
cmovne edx, ecx
mov dword [ebp - 0x3c], edx
test edx, edx
js 0x5206d6
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp dword [ebp - 0x30], edx
jb 0x5207a2
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x520662
sub edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x2c]
sar edx, 1
cmp dword [ebp - 0x30], edi
mov dword [ebp - 0x44], edx
cmovb edi, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], edi
cmovae ecx, dword [ebp - 0x2c]
cmp edx, edi
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x3c]
cmovb edi, edx
test edi, edi
je 0x5206c4
add ecx, ecx
sub ecx, eax
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov cx, word [ecx + eax]
cmp cx, word [eax]
jne 0x5206d6
mov ecx, dword [ebp - 0x38]
add eax, 2
sub edi, 1
jne 0x5206b0
cmp dword [ebp - 0x30], edx
jb 0x5206d6
ja 0x5206d6
push dword [esi + 4]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x5206f1
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0040a2e0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x52071e
lea eax, [ebp - 0x14]
push eax
push esi
push ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov ecx, dword [ebp - 0x34]
mov ebx, eax
test ebx, ebx
jne 0x5205c0
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x520747
push eax
mov edi, eax
push esi
mov dword [ebp - 0x40], edi
call fcn.0054c280
mov esi, eax
add esp, 8
test esi, esi
je 0x52075c
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov ebx, eax
test ebx, ebx
je 0x520753
mov ecx, dword [ebp - 0x34]
jmp 0x5205c0
push esi
call fcn.00409f38
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x52076a
push eax
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x520786
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret
call fcn.004790f0
int3