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

Disassembly:
mov eax, 0x44261a
call fcn.00420734
sub esp, 0x878
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
push 1
lea eax, [ebp - 0x34]
pop esi
push ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
lea ecx, [ebp - 0x10]
call fcn.004040e1
lea ecx, [ebp - 0x14]
call fcn.004040e1
push 0x4561a0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004394c1
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [ebp - 0x84]
push 0x4561a8
push eax
call fcn.00420b49
add esp, 0xc
test byte [ebp - 0x34], 4
push ebx
push ebx
push ebx
jne 0x409f0f
push 4
jmp 0x409f10
push ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x409f38
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004390f9
mov dword [ebp - 0x1c], esi
jmp 0x40a061
mov esi, 0x4561b4
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x44]
push 0x84000100
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040171f
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x409f93
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004390f9
mov dword [ebp - 0x1c], 1
jmp 0x40a061
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 4
call fcn.004040e1
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000005
push dword [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x409fc7
mov dword [ebp - 0x28], ebx
mov esi, 0x200
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x884]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x884]
push esi
push eax
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x40a02d
cmp dword [ebp - 0x2c], ebx
je 0x40a032
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x24]
push 0x4561c4
push eax
call fcn.00433751
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
call fcn.00439635
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x884]
push esi
push eax
push dword [ebp - 0x20]
jmp 0x409fed
lea eax, [ebp - 0x10]
jmp 0x40a045
push dword [ebp - 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004390f9
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
call fcn.00439384
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00439384
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00439384
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00439384
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret