Function at 0x403db0
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 0x408431
push eax
mov eax, 0x1007c
mov dword fs:[0], esp
call fcn.00407760
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x1009c], 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x4c]
push 0
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x38]
push 0
test al, 4
push 0
jne 0x403e1d
lea ecx, [esp + 0x58]
push 4
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x403e30
lea edx, [esp + 0x58]
push 0
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x1c], eax
mov edi, eax
test edi, edi
je 0x404028
mov eax, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x40c734]
mov edx, dword [0x40c738]
mov dword [esp + 0x3c], eax
mov eax, dword [0x40c73c]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x10094], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x10094], 3
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x1009c]
push 0
lea ecx, [esp + 0x40]
push 0x84000100
push ecx
mov byte [esp + 0x100a0], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x44]
push eax
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x403eca
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x403ff5
mov eax, dword [esp + 0x100a0]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x403ff5
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x20000005
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x403f1c
mov dword [esp + 0x18], eax
jmp 0x403f20
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
and eax, 0xffff
shl eax, 0x10
push eax
mov eax, dword [ebx + 0x4d8]
push 0
push 0x401
push eax
call ebp
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x8c]
lea edx, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x20]
push ecx
push 0x4000
push edx
push esi
call edi
test eax, eax
je 0x403fec
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404058
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x10]
push eax
push 0x40c660
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x4d8]
push 0
mov eax, dword [edx - 8]
shl eax, 3
push eax
push 0x402
push ecx
call ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0x8c]
push edx
push 0x4000
push eax
push esi
call edi
test eax, eax
jne 0x403f6e
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x10094], 3
call fcn.0040744e
lea ecx, [esp + 0x14]
mov byte [esp + 0x10094], 2
call fcn.0040744e
lea ecx, [esp + 0x24]
mov byte [esp + 0x10094], 1
call fcn.004076b2
lea ecx, [esp + 0x1009c]
mov byte [esp + 0x10094], 0
call fcn.0040744e
lea ecx, [esp + 0x100a0]
mov dword [esp + 0x10094], 0xffffffff
call fcn.0040744e
or eax, 0xffffffff
jmp 0x4040d1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x10094], 3
call fcn.0040744e
lea ecx, [esp + 0x14]
mov byte [esp + 0x10094], 2
call fcn.0040744e
lea ecx, [esp + 0x24]
mov byte [esp + 0x10094], 1
call fcn.004076b2
lea ecx, [esp + 0x1009c]
mov byte [esp + 0x10094], 0
call fcn.0040744e
lea ecx, [esp + 0x100a0]
mov dword [esp + 0x10094], 0xffffffff
call fcn.0040744e
xor eax, eax
mov ecx, dword [esp + 0x1008c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10088
ret 8