Function at 0x406680
Capabilities:
Enumerate internet cache

Disassembly:
push 0xffffffffffffffff
push 0x466ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4835f0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
cmp byte [0x484d10], 1
je 0x406c91
mov dword [esp + 0x18], 0x2000
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4066d6
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], 0
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406708
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x3c], 1
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406737
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x3c], 2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042c153
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebx, eax
add esp, 4
lea eax, [esp + 0x18]
push eax
push ebx
push 0
mov dword [ebx], edx
call esi
mov dword [esp + 0x24], eax
test eax, eax
je 0x406bea
mov edx, dword [ebx + 4]
test edx, edx
jne 0x406788
xor eax, eax
jmp 0x40679f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406790
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov ebp, dword [esp + 0x14]
push 0x2e
push ebp
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x4067c2
or eax, 0xffffffff
jmp 0x4067c6
sub eax, ebp
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.00402ad0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x20]
call fcn.00409de0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4068f8
mov eax, dword [0x488684]
cmp dword [eax - 0xc], 0
jl 0x406844
push edi
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x406844
sub eax, dword [0x488684]
sar eax, 1
cmp eax, 0xffffffff
jne 0x406876
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x4068f8
push edi
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4068f8
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
je 0x4068f8
push 0x2f
push ebp
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x40688a
or eax, 0xffffffff
jmp 0x40688e
sub eax, ebp
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.00402ad0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00402a60
mov ecx, dword [esp + 0x50]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405520
mov esi, dword [esp + 0x24]
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x406950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406b60
push ebx
call fcn.0042c15e
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042c153
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
mov dword [ebx], eax
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
je 0x406bd8
mov edx, dword [ebx + 4]
test edx, edx
jne 0x40695b
xor eax, eax
jmp 0x406973
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406960
sub eax, esi
mov esi, dword [esp + 0x24]
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jl 0x4069a7
push str.ProtectCop
push ebp
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4069a7
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x406900
push 0x2e
push ebp
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x4069bb
or eax, 0xffffffff
jmp 0x4069bf
sub eax, ebp
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 5
call fcn.00402ad0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x406a28
push esi
lea ecx, [esp + 0x24]
call fcn.00401180
mov edi, dword [esp + 0x20]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.0044b0f8
add esp, 8
test esi, esi
jl 0x406bce
cmp esi, dword [edi - 8]
jg 0x406bce
mov dword [edi - 0xc], esi
xor edx, edx
mov word [edi + esi*2], dx
mov eax, dword [0x488684]
cmp dword [eax - 0xc], edx
jl 0x406a74
push edi
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x406a74
sub eax, dword [0x488684]
sar eax, 1
cmp eax, 0xffffffff
jne 0x406aa6
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x406b28
push edi
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x406b28
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
je 0x406b28
push 0x2f
push ebp
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x406aba
or eax, 0xffffffff
jmp 0x406abe
sub eax, ebp
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.00402ad0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00402a60
mov ecx, dword [esp + 0x50]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405520
mov ecx, dword [esp + 0x44]
cmp dword [ecx + 0xa0], 9
jle 0x4068f8
push ebx
call fcn.0042c15e
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406c44
push esi
cmp eax, 0x103
je 0x406b9b
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
test ebx, ebx
je 0x406b7b
push ebx
call fcn.0042c15e
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.00401070
lea ecx, [esp + 0x14]
call fcn.00401070
jmp 0x406c91
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
test ebx, ebx
je 0x406bae
push ebx
call fcn.0042c15e
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.00401070
lea ecx, [esp + 0x14]
call fcn.00401070
jmp 0x406c91
push 0x80070057
call fcn.00401200
push esi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
add esp, 4
jmp 0x406c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406c20
push ebx
call fcn.0042c15e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042c153
mov edx, dword [esp + 0x20]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
mov dword [eax], edx
call esi
mov dword [esp + 0x24], eax
test eax, eax
je 0x406c2b
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x3c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4