Function at 0x488870
Capabilities:
Check for time delay via gettickcount
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push 0x4f9fe0
mov esi, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.00490210
push 0x4f9fe0
mov dword [ebp - 4], esi
call fcn.00490230
add esp, 8
cmp esi, edi
je 0x488c1a
push ebx
mov ecx, dword [esi + 0x18]
cmp ecx, edi
jne 0x488a82
cmp dword [esi + 0x10], 3
jne 0x488a82
inc dword [ebp - 0xc]
mov dword [ebp - 4], edi
lea edi, [esi + 0x154]
mov eax, dword [edi - 8]
mov ecx, dword [edi]
lea ebx, [edi - 8]
mov dword [ebp - 8], ecx
cmp eax, 2
je 0x4889f4
test eax, eax
je 0x4889f4
cmp eax, 0x194
je 0x488a0f
cmp eax, 0x193
je 0x488a49
mov edx, dword [edi + 4]
cmp edx, dword [esi + 0xa08]
jne 0x48893d
cmp ecx, 0xffffffff
je 0x488917
push ecx
call fcn.00490640
add esp, 4
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 4]
push eax
push 0x388
push str.PutDownloadSocket
push str._s__d___index__d__completed_n
mov dword [ebx], 2
call fcn.00487d90
add esp, 0x10
jmp 0x4889f4
cmp edx, dword [edi + 8]
jb 0x488965
cmp ecx, 0xffffffff
je 0x4889f4
push ecx
call fcn.00490640
add esp, 4
mov dword [edi], 0xffffffff
mov dword [ebx], 0xffffffff
jmp 0x4889f4
cmp eax, 0xffffffff
jne 0x48897a
mov ecx, dword [ebp - 4]
push ebx
push ecx
push esi
call fcn.00490980
add esp, 0xc
jmp 0x4889ec
cmp eax, 1
jne 0x4889f4
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [edi - 4]
cmp eax, 0x1388
jae 0x4889cf
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx], eax
jbe 0x4889b1
lea edx, [ecx + 4]
lea ebx, [ebx]
mov ebx, dword [ebp - 8]
cmp dword [edx], ebx
je 0x4889b4
inc eax
add edx, 4
cmp eax, dword [ecx]
jb 0x4889a0
jmp 0x4889b4
mov ebx, dword [ebp - 8]
mov edx, dword [ecx]
cmp eax, edx
jne 0x4889c5
cmp edx, 0x40
jae 0x4889c5
mov dword [ecx + eax*4 + 4], ebx
inc dword [ecx]
cmp dword [ebp - 0x10], ebx
jae 0x4889f4
mov dword [ebp - 0x10], ebx
jmp 0x4889f4
mov edx, dword [ebp - 8]
push edx
call fcn.00490640
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
mov dword [edi], 0xffffffff
call fcn.00490980
add esp, 0x10
call sub.KERNEL32.dll_GetTickCount
mov dword [edi - 4], eax
mov eax, dword [ebp - 4]
inc eax
add edi, 0x114
mov dword [ebp - 4], eax
cmp eax, 5
jl 0x4888c6
jmp 0x488c0a
push 0x36b
push str.PutDownloadSocket
push str._s__d__n
call fcn.00487d90
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x488c0a
mov ecx, dword [esi + 0x20]
push 0
push 0
push ecx
push 0x10
call eax
mov dword [esi + 0x10], 0x10
jmp 0x488c07
push 0x376
push str.PutDownloadSocket
push str._s__d__status_SOCKETINFO_SINFINVALID__n
call fcn.00487d90
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x488a76
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
push 0x13
call eax
add esp, 0x10
mov dword [esi + 0x10], 0x13
jmp 0x488c0a
mov eax, dword [esi + 0xc]
cmp eax, 1
jl 0x488b05
cmp ecx, edi
je 0x488aa8
cmp eax, 1
jne 0x488aa8
mov eax, 8
cmp dword [esi + 0x10], eax
je 0x488aa8
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], eax
jmp 0x488c0a
mov eax, dword [esi + 0x10]
cmp eax, 0x14
jne 0x488af0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x10], 7
cmp eax, edi
je 0x488ad1
mov ecx, dword [esi + 0xa10]
mov edx, dword [esi + 0x20]
push edi
push ecx
push edx
push 7
call eax
add esp, 0x10
cmp dword [esi + 0xc], 1
jg 0x488c0a
lea eax, [esi + 0x6b0]
push edi
push eax
call fcn.00490180
add esp, 8
jmp 0x488c0a
cmp eax, 6
jne 0x488c0a
mov dword [esi + 0x14], 1
jmp 0x488c0a
lea edi, [esi + 0x14c]
mov ebx, 5
cmp dword [edi], 1
jne 0x488b2e
mov ecx, dword [edi + 8]
push ecx
call fcn.00490640
add esp, 4
mov dword [edi + 8], 0xffffffff
mov dword [edi], 0xffffffff
add edi, 0x114
dec ebx
jne 0x488b10
cmp dword [esi + 0x18], ebx
je 0x488be4
push 0x4f9fe0
call fcn.00490210
mov eax, dword [0x4f7030]
add esp, 4
mov edi, esi
cmp esi, eax
jne 0x488b7a
mov eax, dword [eax]
mov dword [0x4f7030], eax
cmp dword [0x4f7034], esi
jne 0x488b73
xor eax, eax
mov dword [0x4f7030], eax
mov dword [0x4f7034], eax
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x488b94
mov edx, dword [esi]
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov esi, dword [esi]
cmp dword [0x4f7034], edi
jne 0x488b94
xor esi, esi
mov dword [0x4f7034], eax
mov dword [eax], esi
push 0x4f9fe0
mov dword [edi], 0
call fcn.00490230
mov eax, dword [edi + 0x1c]
add esp, 4
test eax, eax
je 0x488bbc
mov ecx, dword [edi + 0x20]
push edi
push 0xffffffffffffffff
push ecx
push 8
call eax
add esp, 0x10
lea edx, [edi + 0x2c]
push edx
call fcn.0048a1a0
mov eax, dword [edi + 0x14]
push eax
lea ecx, [edi + 0x6b0]
push ecx
call fcn.00490180
mov edx, dword [edi + 8]
push edi
push edx
call fcn.0048f3c0
add esp, 0x14
jmp 0x488c0f
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x488c0a
push eax
push 0x356
push str.PutDownloadSocket
push str._s__d___error:__refcount__d____n
call fcn.00487d90
mov dword [esi + 0xc], 1
add esp, 0x10
mov dword [ebp - 4], esi
mov esi, dword [esi]
xor edi, edi
cmp esi, edi
jne 0x4888a5
pop ebx
mov ecx, dword [ebp - 0xc]
call fcn.00488810
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret