Function at 0x42dd80
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495fc8
mov eax, dword fs:[0]
push eax
mov eax, 0x409c
call fcn.0047d2a0
mov eax, dword [0x4d13f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x4094]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0x40
push 0
lea ecx, [ebp - 0x74]
push ecx
call fcn.0047ba50
add esp, 0xc
push str.Agent
lea edx, [ebp - 0x74]
push edx
call fcn.0047e8d2
add esp, 8
mov eax, dword [ebp - 0x4094]
and eax, 4
jne 0x42de04
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4090], eax
jmp 0x42de1c
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4090], eax
cmp dword [ebp - 0x4090], 0
jne 0x42de2d
or eax, 0xffffffff
jmp 0x42e070
mov eax, dword [str.Accept:___r_n_r_n]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x49f928]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x49f92c]
mov dword [ebp - 0x18], edx
mov eax, dword [0x49f930]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x84]
call fcn.00456a14
mov dword [ebp - 4], 0
push 0
push 0x84000100
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411270
push eax
mov eax, dword [ebp - 0x4090]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x4098], eax
cmp dword [ebp - 0x4098], 0
jne 0x42ded0
mov ecx, dword [ebp - 0x4090]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x409c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00456bd1
mov eax, dword [ebp - 0x409c]
jmp 0x42e070
push 0
push 0x1001
mov ecx, dword [ebp + 0xc]
call fcn.00411270
push eax
lea ecx, [ebp - 0x84]
call fcn.00456f89
test eax, eax
jne 0x42df16
mov dword [ebp - 0x40a0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00456bd1
mov eax, dword [ebp - 0x40a0]
jmp 0x42e070
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x88]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x4098]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x42df5b
mov dword [ebp - 0x88], 0
push 0x4000
push 0
lea edx, [ebp - 0x408c]
push edx
call fcn.0047ba50
add esp, 0xc
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
push 0x4000
lea ecx, [ebp - 0x408c]
push ecx
mov edx, dword [ebp - 0x4098]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42dfcb
lea ecx, [ebp - 0x84]
call fcn.004569b2
mov dword [ebp - 0x40a4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00456bd1
mov eax, dword [ebp - 0x40a4]
jmp 0x42e070
cmp dword [ebp - 0x24], 0
jne 0x42dfd5
jmp 0x42e029
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x408c]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00456672
push 0
mov eax, dword [ebp - 0x28]
shl eax, 0xe
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x88]
push eax
push 0x402
mov ecx, dword [ebp + 0x10]
call fcn.0042ef20
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, 1
test eax, eax
jne 0x42df78
lea ecx, [ebp - 0x84]
call fcn.004569b2
mov ecx, dword [ebp - 0x4098]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4090]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x40a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00456bd1
mov eax, dword [ebp - 0x40a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ac28
mov esp, ebp
pop ebp
ret