Function at 0x40a717
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, 0x5c
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], 0
mov dword [ebp - 0x44], esp
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x40a7b8
push 6
call fcn.0047e075
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.0047e7f0
add esp, 0x10
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
push str.Agent
mov ecx, 2
call fcn.00404d50
add esp, 8
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40a80f
push ebx
call fcn.0047e06f
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a823
push ebx
call fcn.0047e06f
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.00481a60
add esp, 0x1c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40a89a
mov dword [ebp - 0x44], 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 - 0x44], esp
je 0x40a892
push 6
call fcn.0047e075
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x40a8d3
mov dword [ebp - 0x44], 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 - 0x44], esp
je 0x40a8d0
push 6
call fcn.0047e075
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a917
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push VariantClear
push 0
push 0x4bc006
push 3
mov ebx, 0x300
call fcn.0047f080
add esp, 0x28
mov eax, 0x4bbbde
jmp 0x40acfd
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 0x40a92d
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40a9b1
push 0x80000301
push 0
push dword [ebp + 0x14]
push 1
mov ebx, 0x168
call fcn.0047e7f0
add esp, 0x10
mov dword [ebp - 0x44], eax
push 0x4bc0ad
push dword [ebp - 0x44]
push str._r_nRange:bytes
push dword [ebp - 0x10]
mov ecx, 4
call fcn.00404d50
add esp, 0x10
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40a999
push ebx
call fcn.0047e06f
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a9ad
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x2800
push 1
mov ebx, 0x1bc
call fcn.0047eae0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a9e6
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40a9fd
mov eax, 0x4bbbb7
push eax
push 1
mov ebx, 0x130
call fcn.0047eac0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esp
push 0
push 0x84000100
push dword [ebp - 0x44]
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 - 0x48], esp
je 0x40aa4a
push 6
call fcn.0047e075
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40aa97
push VariantClear
push 0
push 0x4bc0be
push 0x80000301
push 0
push 0x30
push VariantClear
push 0
push 0x4bc0c4
push 3
mov ebx, 0x300
call fcn.0047f080
add esp, 0x28
mov eax, 0x4bbbde
jmp 0x40acfd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], esp
mov eax, 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
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 - 0x44], esp
je 0x40aaee
push 6
call fcn.0047e075
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40ab02
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 - 0x44], esp
lea eax, [ebp - 0x3c]
push eax
push 0x400
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ab3b
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x40ab5b
push 6
call fcn.0047e075
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40ab72
mov eax, 0x4bbbde
jmp 0x40acfd
cmp dword [ebp - 0x3c], 0
jne 0x40ab7c
cmp dword [ebp - 0x38], 0
jne 0x40ab8c
jmp 0x40acbc
push 0x80000301
push 0
push dword [ebp - 0x3c]
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40aba9
mov eax, 0x4bbbde
push eax
push 2
mov ebx, 0x1a0
call fcn.00481b40
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40abd3
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0x40]
mov ecx, 2
call fcn.00402582
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ac01
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x28]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild qword [ebp - 0x3c]
fstp qword [ebp - 0x50]
fadd qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040109b
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 - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x50]
fsub qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040109b
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40ac6e
mov dword [ebp - 0x34], 0xa
fild qword [ebp - 0x28]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x50]
fsub qword [ebp - 0x50]
fstp qword [ebp - 0x58]
mov dword [ebp - 0x5c], esp
fld qword [ebp - 0x58]
call fcn.0040109b
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 0x5c], esp
je 0x40acb7
push 6
call fcn.0047e075
add esp, 4
jmp 0x40ab25
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x40acde
push 6
call fcn.0047e075
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40acf8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0047e069
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40acfd
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ad0e
push ebx
call fcn.0047e06f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40ad1e
push ebx
call fcn.0047e06f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ad2e
push ebx
call fcn.0047e06f
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ad3e
push ebx
call fcn.0047e06f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14