Function at 0x40804c
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 0x4080c3
push 6
call fcn.00450cac
add esp, 4
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00457b10
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4081cb
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
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 0x40818d
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4081a0
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4081b0
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4081c0
push ebx
call fcn.00450ca6
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
jmp 0x408299
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457390
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 0x408260
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x408273
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408283
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408293
push ebx
call fcn.00450ca6
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4082d7
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x4087d9
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.004010e6
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40830a
push ebx
call fcn.00450ca6
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 0x408321
mov eax, 0x484331
push eax
push 1
mov ebx, 0x130
call fcn.00457c20
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.00457330
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 0x4083a5
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408408
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 0x4083d4
push 6
call fcn.00450cac
add esp, 4
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x4087d9
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.00457330
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 0x408475
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x408489
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 0x4084b0
mov eax, 0x484331
push eax
push 3
mov ebx, 0x270
call fcn.00457b30
add esp, 0x28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x408548
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 0x4084f2
push 6
call fcn.00450cac
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 0x408514
push 6
call fcn.00450cac
add esp, 4
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x4087d9
push 0x80000301
push 0
push 0x2800
push 1
mov ebx, 0x1bc
call fcn.00457c40
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40857d
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
call fcn.00405edf
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 0x4085c2
push 6
call fcn.00450cac
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x408663
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 0x4085f1
push 6
call fcn.00450cac
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 0x408613
push 6
call fcn.00450cac
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x278
call fcn.00457c10
add esp, 0x10
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x4087d9
cmp dword [ebp - 0x28], 0
jne 0x408677
jmp 0x408743
push 0x80000301
push 0
push dword [ebp - 0x28]
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x408694
mov eax, 0x48440e
push eax
push 2
mov ebx, 0x1a0
call fcn.00457c70
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4086be
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4086d5
mov eax, 0x48440e
push eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 2
mov ebx, 0x298
call fcn.00458810
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.00401142
mov dword [ebp - 0x24], eax
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x408588
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x278
call fcn.00457c10
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 0x408781
push 6
call fcn.00450cac
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 0x4087a3
push 6
call fcn.00450cac
add esp, 4
push 0x71f356
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 0x71f356
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 1
jmp 0x4087d9
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4087ea
push ebx
call fcn.00450ca6
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4087fa
push ebx
call fcn.00450ca6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10