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

Disassembly:
mov eax, 0x403fa8
call fcn.0040395c
mov eax, 0x1007c
call fcn.00403990
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov al, byte [0x40745c]
push 0xf
mov byte [ebp - 0x88], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
rep stosd dword es:[edi], eax
test byte [ebp - 0x24], 4
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
push ebx
jne 0x402880
push 4
jmp 0x402881
push ebx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x4028a9
push ebx
push ebx
push str.Internetl
call sub.MFC42.DLL_AfxMessageBox
or esi, 0xffffffff
jmp 0x4029fc
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x48]
push 0x84000100
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x28], esi
jne 0x4028f4
or esi, 0xffffffff
jmp 0x4029f0
push ebx
push 0x1001
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4028ec
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000005
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40292f
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
mov edi, 0x4000
push eax
lea eax, [ebp - 0x10088]
push edi
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
call esi
test eax, eax
je 0x402975
cmp dword [ebp - 0x14], ebx
je 0x40298e
push dword [ebp - 0x14]
lea eax, [ebp - 0x10088]
lea ecx, [ebp - 0x38]
push eax
call sub.MFC42.DLL_CFile::Write
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10088]
push edi
push eax
push dword [ebp - 0x28]
jmp 0x402947
push ebx
push ebx
push 0x4071c0
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Close
jmp 0x4028ec
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x18]
push 0x4071bc
push eax
call sub.MFC42.DLL_CString::Format
push 0x4071b8
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
jne 0x4029d1
push 0xa
lea ecx, [ebp - 0x38]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Close
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
xor esi, esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004038c4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret