Function at 0x4044f0
Capabilities:
Connect to http server
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x40bc1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x42c], esi
je 0x404813
mov eax, dword [esp + 0x434]
cmp dword [eax - 8], esi
je 0x404813
lea ecx, [esp + 0x10]
call fcn.0040aaae
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 1
call fcn.0040aaae
lea ecx, [esp + 0x14]
push 7
push ecx
lea ecx, [esp + 0x43c]
mov byte [esp + 0x434], 2
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.http:__
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4045c5
lea edx, [esp + 0x14]
push 7
push edx
lea ecx, [esp + 0x43c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x438]
mov byte [esp + 0x430], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
push 0x411410
lea ecx, [esp + 0x438]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x40466d
push 0x411410
lea ecx, [esp + 0x438]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
push 0x411410
lea ecx, [esp + 0x438]
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x43c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40467e
lea edx, [esp + 0x434]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x440]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
push esi
push esi
push 3
push esi
push esi
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
je 0x4047f1
mov ecx, dword [esp + 0x18]
push esi
push 0x84000100
push esi
push esi
push esi
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
cmp ebx, esi
je 0x4047f1
mov ebp, dword [esp + 0x438]
mov edx, dword [ebp]
mov eax, dword [edx - 8]
cmp eax, esi
je 0x4046ef
push eax
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404702
jmp 0x4047f1
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4047f1
push 0x4116fc
mov ecx, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 4
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x20000005
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404847
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4047f1
mov edi, dword [esp + 0x43c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404847
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push eax
mov ecx, ebp
mov byte [esp + 0x430], 6
call fcn.0040ab1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
add esi, dword [esp + 0x1c]
test edi, edi
je 0x4047d7
lea eax, [esi + esi*4]
xor edx, edx
push 0
lea eax, [eax + eax*4]
shl eax, 2
div dword [esp + 0x24]
mov edx, dword [edi + 0x20]
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push 0x400
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404773
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x434]
mov dword [esp + 0x42c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x434]
mov dword [esp + 0x42c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x40482c