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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x420ff3
push eax
mov eax, 0x10070
mov dword fs:[0], esp
call fcn.0041f5e0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 0
mov ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10088], ebx
call fcn.0041f074
lea ecx, [esp + 0x14]
mov byte [esp + 0x10088], 2
call fcn.0041f074
push str.Error
lea ecx, [esp + 0x14]
mov byte [esp + 0x1008c], 3
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x410e34
mov esi, dword [esp + 0x10090]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], ebx
jmp 0x411008
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea edx, [esp + 0x44]
push str.Agent_ld
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esp + 0x38]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x410e72
lea eax, [esp + 0x4c]
push 4
push eax
jmp 0x410e79
lea ecx, [esp + 0x4c]
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
jne 0x410ea1
mov esi, dword [esp + 0x10090]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], ebx
jmp 0x411008
mov ecx, dword [0x42b674]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x42b678]
mov esi, dword [esp + 0x10094]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [0x42b67c]
push 0
lea ecx, [esp + 0x34]
push 0x84000100
push ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x38]
push eax
push edx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x410f19
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x10090]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], ebx
jmp 0x411008
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 4
call fcn.0041f074
lea ecx, [esp + 0x28]
push edi
lea edx, [esp + 0x28]
push ecx
push edx
push 0x20000005
push esi
mov byte [esp + 0x1009c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x410f55
mov dword [esp + 0x24], edi
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
push 0x4000
push ecx
push esi
call edi
test eax, eax
je 0x410fcd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x410fd4
lea edx, [esp + 0x80]
lea eax, [esp + 0x1c]
push edx
push 0x42b0b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041f086
lea edx, [esp + 0x20]
lea eax, [esp + 0x80]
push edx
push 0x4000
push eax
push esi
call edi
test eax, eax
jne 0x410f84
lea ecx, [esp + 0x10]
push ecx
jmp 0x410fe5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea edx, [esp + 0x14]
push edx
mov esi, dword [esp + 0x10094]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x10088], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x10088], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x10088], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10094]
mov byte [esp + 0x10088], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10080]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1007c
ret 8