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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x58c3a0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 2
push eax
push 0
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5850e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x585356
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push eax
call fcn.005d0250
add esp, 4
test eax, eax
je 0x585340
mov ecx, eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], ecx
push ecx
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov dword [ebp - 0x28], eax
mov eax, 1
mov esi, dword [ebp - 0x20]
jmp 0x58512e
mov edi, dword [ebp - 0x24]
xor eax, eax
cmp edi, dword [ebp - 0x2c]
ja 0x5852f0
test eax, eax
je 0x585333
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
test byte [esi + 0xe], 0x10
je 0x5852ae
mov edi, dword [esi + 4]
test edi, edi
je 0x5852ae
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x585197
mov dword [ebp - 0x10], 2
sub esp, 0xc
mov al, byte [ebp - 0x34]
lea ecx, [ebp - 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x5851b3
mov eax, esi
mov dword [ebp - 0x40], esi
add eax, esi
push eax
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x50], 0
mov esi, dword [ebp - 0x40]
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x3c]
lea edi, [ebp - 0x50]
mov ecx, dword [eax + 0x10]
mov ebx, esi
sub ebx, ecx
cmp edx, 7
jbe 0x5851ce
mov edi, dword [ebp - 0x50]
xor eax, eax
cmp word [edi + esi*2 - 2], 0x2f
mov dword [ebp - 0x54], edi
mov edi, 0
sete al
sub ebx, eax
sbb edi, edi
mov edi, 1
js 0x58526b
lea eax, [ebp + 8]
cmp dword [eax + 0x14], 8
mov edi, eax
jb 0x5851f9
mov edi, dword [eax]
sub esi, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], edx
jb 0x5853a0
push edi
call fcn.005d3244
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp esi, ecx
cmovb ecx, esi
cmp eax, ecx
mov dword [ebp - 0x30], ecx
cmovb ecx, eax
test ecx, ecx
je 0x585245
mov edx, dword [ebp - 0x54]
lea edx, [edx + ebx*2]
nop word [eax + eax]
movzx esi, word [edx]
cmp si, word [edi]
jne 0x5852d3
add edx, 2
add edi, 2
dec ecx
jne 0x585230
cmp dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov edi, 1
jne 0x58526e
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 3
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x3c]
mov edi, eax
mov esi, dword [ebp - 0x20]
cmp edx, 8
jb 0x5852a6
mov eax, dword [ebp - 0x50]
lea ecx, [edx + edx + 2]
cmp ecx, 0x1000
jb 0x58529c
mov ecx, eax
mov eax, dword [eax - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x5853ac
add edx, edx
add edx, 0x25
mov ecx, edx
push ecx
push eax
call fcn.005d319e
add esp, 8
test edi, edi
je 0x585120
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 2
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x58512e
jmp 0x585120
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov edi, 1
cmp edx, 8
jae 0x585273
jmp 0x5852a6
push edi
push esi
call fcn.00629b15
add esp, 8
mov ecx, eax
test eax, eax
mov eax, 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], edi
je 0x585114
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 2
push eax
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
jmp 0x585114
test esi, esi
je 0x585340
push esi
call fcn.005d31b1
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x585356
mov dword [ebp - 0x10], 2
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
lea eax, [ebp + 8]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x58538f
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x585385
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x5853b8
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
call fcn.005e9a00
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x58541e
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x585414
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x585437
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], 0
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea eax, [ebp + 8]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x585493
lea eax, [ebp + 8]
lea edx, [ecx + ecx + 2]
mov eax, dword [eax]
cmp edx, 0x1000
jb 0x585489
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x585498
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
int3