Function at 0x4067f0
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 0x420203
push eax
mov eax, 0x10070
mov dword fs:[0], esp
call fcn.0041f5e0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x10090], 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
lea ecx, [esp + 0x10]
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
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 ecx, [esp + 0x44]
push str.Agent_ld
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esp + 0x38]
add esp, 0xc
test al, 4
push ebx
push ebx
push ebx
push 1
jne 0x4068b3
mov edi, dword [sym.imp.WININET.dll_InternetOpenA]
lea edx, [esp + 0x50]
push edx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4068d3
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
push 4
push eax
jmp 0x4068cf
mov edi, dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [esp + 0x50]
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4068d3
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push ebx
push edx
call edi
mov esi, eax
mov ecx, dword [0x42b674]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x42b678]
mov edi, dword [esp + 0x10094]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [0x42b67c]
push ebx
lea ecx, [esp + 0x34]
push 0x84000102
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 edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
cmp ebp, ebx
jne 0x40694c
push esi
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 + 0x1c], 1
jmp 0x406a3d
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call fcn.0041f074
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x28]
push ecx
push edx
push 0x20000005
push ebp
mov byte [esp + 0x1009c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x406988
mov dword [esp + 0x24], ebx
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 ebp
call edi
test eax, eax
je 0x4069fe
cmp dword [esp + 0x20], ebx
je 0x406a05
lea edx, [esp + 0x80]
lea eax, [esp + 0x18]
push edx
push 0x42b0b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041f086
lea edx, [esp + 0x20]
lea eax, [esp + 0x80]
push edx
push 0x4000
push eax
push ebp
call edi
test eax, eax
jne 0x4069b7
lea ecx, [esp + 0x10]
push ecx
jmp 0x406a16
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
lea edx, [esp + 0x14]
push edx
mov esi, dword [esp + 0x10094]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 1
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], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10094]
mov byte [esp + 0x10088], bl
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