Function at 0x401fce
Capabilities:
Check for time delay via gettickcount
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], esp
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x402068
push 6
call fcn.00418bdf
add esp, 4
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0041aa60
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push str.Agent
mov ecx, 2
call fcn.00401b07
add esp, 8
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4020bf
push ebx
call fcn.00418bd9
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4020d3
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.0041ad30
add esp, 0x1c
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40214a
mov dword [ebp - 0x40], esp
push 0
push 0
push 0
push 4
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x402142
push 6
call fcn.00418bdf
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x402183
mov dword [ebp - 0x40], esp
push 0
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x402180
push 6
call fcn.00418bdf
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4021c7
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Internetl
push 3
mov ebx, 0x300
call fcn.004190e0
add esp, 0x28
mov eax, 0xffffffff
jmp 0x402776
mov eax, str.Accept:___r_nAccept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0_compatible__MSIE_6.0__Windows_NT_5.0__MyIE2__.NET_CLR_1.1.4322_
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4021dd
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x402261
push 0x80000301
push 0
push dword [ebp + 0x14]
push 1
mov ebx, 0x168
call fcn.0041aa60
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x4675e2
push dword [ebp - 0x40]
push str._r_nRange:bytes
push dword [ebp - 0x10]
mov ecx, 4
call fcn.00401b07
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x402249
push ebx
call fcn.00418bd9
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40225d
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x2800
push 1
mov ebx, 0x1bc
call fcn.0041ad50
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402296
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4022ad
mov eax, 0x462295
push eax
push 1
mov ebx, 0x130
call fcn.0041ad80
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push 0x84000100
push dword [ebp - 0x40]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4022fa
push 6
call fcn.00418bdf
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402341
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4675f3
push 3
mov ebx, 0x300
call fcn.004190e0
add esp, 0x28
mov eax, 0xffffffff
jmp 0x402776
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x18], 0
jne 0x4023ab
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40238e
mov eax, 0x462295
push eax
push 3
mov ebx, 0x270
call fcn.0041ada0
add esp, 0x28
mov dword [0x47e632], eax
jmp 0x402487
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4023c0
mov eax, 0x462295
push eax
push 1
mov ebx, 0x24c
call fcn.0041ae80
add esp, 0x10
test eax, eax
je 0x40241f
push 0
push 0
push 0
push 0x80000301
push 0
push 5
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x402402
mov eax, 0x462295
push eax
push 3
mov ebx, 0x270
call fcn.0041ada0
add esp, 0x28
mov dword [0x47e632], eax
jmp 0x40245e
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x402446
mov eax, 0x462295
push eax
push 3
mov ebx, 0x270
call fcn.0041ada0
add esp, 0x28
mov dword [0x47e632], eax
push 0x80000301
push 0
push dword [0x47e632]
push 1
mov ebx, 0x290
call fcn.0041ae90
add esp, 0x10
mov eax, dword [ebp + 0x14]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [0x47e632], 0
jne 0x4024ce
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x467602
push 3
mov ebx, 0x300
call fcn.004190e0
add esp, 0x28
mov eax, 0xffffffff
jmp 0x402776
mov dword [ebp - 0x40], esp
mov eax, 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000005
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x402509
push 6
call fcn.00418bdf
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40251d
mov dword [ebp - 0x1c], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xa
mov dword [ebp - 0x40], esp
lea eax, [ebp - 0x3c]
push eax
push 0x2800
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402556
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x402576
push 6
call fcn.00418bdf
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4025dc
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x467616
push 3
mov ebx, 0x300
call fcn.004190e0
add esp, 0x28
push 0x80000301
push 0
push dword [0x47e632]
push 1
mov ebx, 0x278
call fcn.0041a740
add esp, 0x10
mov eax, 0xffffffff
jmp 0x402776
cmp dword [ebp - 0x3c], 0
jne 0x4025e6
cmp dword [ebp - 0x38], 0
jne 0x4025f6
jmp 0x40272b
push 0x80000301
push 0
push dword [ebp - 0x3c]
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x402613
mov eax, 0x4622e9
push eax
push 2
mov ebx, 0x1a0
call fcn.0041aef0
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40263d
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x402654
mov eax, 0x4622e9
push eax
push 0x80000301
push 0
push dword [0x47e632]
push 2
mov ebx, 0x298
call fcn.0041af20
add esp, 0x1c
fild qword [ebp - 0x28]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild qword [ebp - 0x3c]
fstp qword [ebp - 0x4c]
fadd qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.00401fa7
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x4c]
fsub qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.00401fa7
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4026dd
mov dword [ebp - 0x34], 0xa
fild qword [ebp - 0x28]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x4c]
fsub qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
mov dword [ebp - 0x58], esp
fld qword [ebp - 0x54]
call fcn.00401fa7
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 0x58], esp
je 0x402726
push 6
call fcn.00418bdf
add esp, 4
jmp 0x402540
push 0x80000301
push 0
push dword [0x47e632]
push 1
mov ebx, 0x278
call fcn.0041a740
add esp, 0x10
mov dword [ebp - 0x40], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x40276c
push 6
call fcn.00418bdf
add esp, 4
mov eax, 0
jmp 0x402776
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402787
push ebx
call fcn.00418bd9
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402797
push ebx
call fcn.00418bd9
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4027a7
push ebx
call fcn.00418bd9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14