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

Disassembly:
push 0xffffffffffffffff
push 0x40bc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov dword [esp + 0x440], 1
test eax, eax
je 0x404c30
mov eax, dword [esp + 0x448]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404c30
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x44c]
push 0
push 0x8040
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x44c], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x404c1f
lea ecx, [esp + 0x14]
call fcn.0040aaae
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 3
call fcn.0040aaae
lea edx, [esp + 0x10]
push 7
push edx
lea ecx, [esp + 0x450]
mov byte [esp + 0x448], 4
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 + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40499a
lea eax, [esp + 0x10]
push 7
push eax
lea ecx, [esp + 0x450]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x44c]
mov byte [esp + 0x444], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 4
call sub.MFC42.DLL_CString::CString
push 0x411410
lea ecx, [esp + 0x44c]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x404a42
push 0x411410
lea ecx, [esp + 0x44c]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x450]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x444], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 4
call sub.MFC42.DLL_CString::CString
push 0x411410
lea ecx, [esp + 0x44c]
call sub.MFC42.DLL_CString::Find
inc eax
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x450]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x444], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 4
call sub.MFC42.DLL_CString::CString
jmp 0x404a53
lea eax, [esp + 0x448]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
je 0x404bfd
mov ecx, dword [esp + 0x18]
push 0
push 0x84000100
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x404bfd
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
push edi
push esi
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
push esi
jne 0x404ae7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x404bfd
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
call fcn.0040aaae
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push edx
push eax
push 0x20000005
push ebp
mov byte [esp + 0x454], 8
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404c78
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x38]
stosw word es:[edi], ax
push ecx
push 0x400
push edx
push ebp
stosb byte es:[edi], al
xor esi, esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404bec
mov edi, dword [esp + 0x450]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404c78
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x444], 9
call fcn.0040ab1a
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 8
call sub.MFC42.DLL_CString::CString
add esi, dword [esp + 0x1c]
test edi, edi
je 0x404bd2
lea eax, [esi + esi*4]
xor edx, edx
mov ecx, dword [edi + 0x20]
push 0
lea eax, [eax + eax*4]
shl eax, 2
div dword [esp + 0x28]
push eax
push 0x402
push ecx
call ebx
lea edx, [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push 0x400
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404b70
lea ecx, [esp + 0x20]
mov byte [esp + 0x440], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x440], 1
call fcn.0040ac10
lea ecx, [esp + 0x448]
mov byte [esp + 0x440], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44c]
mov dword [esp + 0x440], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret 0x10
mov ecx, dword [esp + 0x20]
push 0x41140c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
mov byte [esp + 0x440], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x440], 1
call fcn.0040ac10
lea ecx, [esp + 0x448]
mov byte [esp + 0x440], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44c]
mov dword [esp + 0x440], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, bl
jmp 0x404c5d