Function at 0x4671e4
Capabilities:
Check for time delay via gettickcount
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46762a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4675fd
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x467299
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004086a4
test al, al
jne 0x46724c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.0040856c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00408634
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, 0x41
call fcn.00408514
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x467299
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x467284
call sub.kernel32.dll_GetLastError
mov ecx, eax
neg ecx
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.004655a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467607
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4672aa
cmp dword [eax + 0x30], 0
jbe 0x467304
jmp 0x4672ac
jle 0x467304
push 0x467640
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [ebp - 0x20]
call fcn.0040829c
push dword [ebp - 0x20]
push 0x467664
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004044c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x467311
mov eax, ebx
cdq
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x30]
adc edx, dword [ecx + 0x34]
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040829c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.0040440c
jmp 0x467311
lea eax, [ebp - 0x14]
mov edx, 0x467670
call fcn.004041dc
xor edx, edx
push ebp
push 0x4675ec
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
jne 0x4675c0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x46735f
push eax
mov eax, dword [ebp - 4]
push eax
push 0x4676d0
push 0
push 1
mov eax, dword [ebp - 4]
add eax, 0x1c
xor ecx, ecx
xor edx, edx
call fcn.004645c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
jne 0x4675c0
push 0
push 0x84000000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.00404604
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404604
push eax
mov eax, dword [0x470c6c]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4675a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push ebx
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x4675a5
mov eax, dword [ebp - 8]
sub eax, 0xc8
je 0x4673ee
sub eax, 6
jne 0x4675a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x38
push eax
push 0x20000005
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x46741c
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0xffffffff
cmp dword [ebp - 0x18], 0
jge 0x46744d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x46743b
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00404790
jmp 0x467470
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, 0x800
call fcn.00404790
jmp 0x467470
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push dword [eax + 0x30]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004085fc
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, 0x800
call fcn.00404790
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00404404
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x800
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x467532
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x46756b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add dword [eax + 0x3c], edx
cmp dword [ebp - 0x18], 0
jle 0x4674d7
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004085c4
jmp 0x467563
sub esi, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jge 0x467563
add ebx, 0x800
add ebx, 0x800
dec ebx
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x2c]
test ebx, ebx
jns 0x467503
add ebx, 0x7ff
sar ebx, 0xb
mov eax, ebx
shl eax, 0xb
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, dword [ebp - 0x1c]
call fcn.00404790
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040465c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
lea ebx, [eax + edx]
jmp 0x467563
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x467551
call sub.kernel32.dll_GetLastError
mov ecx, eax
neg ecx
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
call fcn.00403ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467607
test esi, esi
jne 0x467483
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00464608
cmp dword [ebp - 0x18], 0
jle 0x46758b
mov eax, dword [ebp - 0x18]
call fcn.00408634
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x4675c0
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
jmp 0x4675c0
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x4675c0
mov ecx, dword [ebp - 8]
neg ecx
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4675f3
cmp dword [ebp - 0x18], 0
jle 0x4675db
mov eax, dword [ebp - 0x18]
call fcn.00408634
mov eax, dword [ebp - 4]
call fcn.00467680
mov eax, dword [ebp - 4]
call fcn.004655a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467631
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404168
lea eax, [ebp - 0x14]
call fcn.00404144
ret