Function at 0x408103
Capabilities:
Check internet connectivity via wininet
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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 - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esp
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40817a
push 6
call fcn.00450d47
add esp, 4
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00457a80
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x408282
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 4
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x408244
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x408257
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408267
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408277
push ebx
call fcn.00450d41
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
jmp 0x408350
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x408317
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40832a
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40833a
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40834a
push ebx
call fcn.00450d41
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40838e
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x408890
push str._r_nAccept_Language:_zh_cn_r_n
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_nReferer:
mov ecx, 3
call fcn.004011bf
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4083c1
push ebx
call fcn.00450d41
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4083d8
mov eax, 0x46e281
push eax
push 1
mov ebx, 0x130
call fcn.00457b90
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000301
push 0
push SysReAllocString
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x4000000
push 3
mov ebx, 0xc8
call fcn.004572a0
add esp, 0x28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40845c
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4084bf
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40848b
push 6
call fcn.00450d47
add esp, 4
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x408890
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 4
push 0x80000301
push 0
push 0x20000000
push 0x80000301
push 0
push 5
push 2
mov ebx, 0xc8
call fcn.004572a0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40852c
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x408540
mov dword [ebp - 0x14], 0
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 0x408567
mov eax, 0x46e281
push eax
push 3
mov ebx, 0x270
call fcn.00457aa0
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4085ff
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4085a9
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4085cb
push 6
call fcn.00450d47
add esp, 4
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x408890
push 0x80000301
push 0
push 0x2800
push 1
mov ebx, 0x1bc
call fcn.00457bb0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408634
push ebx
call fcn.00450d41
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
call fcn.00405f96
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x28]
push eax
push 0x2800
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408679
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40871a
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4086a8
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4086ca
push 6
call fcn.00450d47
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x278
call fcn.00457b80
add esp, 0x10
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x408890
cmp dword [ebp - 0x28], 0
jne 0x40872e
jmp 0x4087fa
push 0x80000301
push 0
push dword [ebp - 0x28]
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40874b
mov eax, 0x46e35e
push eax
push 2
mov ebx, 0x1a0
call fcn.00457be0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408775
push ebx
call fcn.00450d41
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40878c
mov eax, 0x46e35e
push eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 2
mov ebx, 0x298
call fcn.00458770
add esp, 0x1c
fild dword [ebp - 0x24]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.0040121b
mov dword [ebp - 0x24], eax
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 1
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x40863f
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x278
call fcn.00457b80
add esp, 0x10
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408838
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40885a
push 6
call fcn.00450d47
add esp, 4
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 0
call dword [ebp + 0x10]
push 0x7092ae
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 1
jmp 0x408890
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4088a1
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4088b1
push ebx
call fcn.00450d41
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10