Function at 0x401d90
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403049
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x18], edi
call fcn.00402b44
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov esi, 1
cmp dword [eax - 8], edi
je 0x401eb4
lea ecx, [ebp - 0x54]
call fcn.00402bc8
mov ecx, dword [ebp + 0x10]
push edi
push edi
push ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x401e18
mov esi, dword [ebp + 8]
push 0x4054c8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1c], 1
jmp 0x401e4b
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x18], eax
add eax, 0x26
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x401e5c
mov esi, dword [ebp + 8]
push 0x4054c8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::CFile
jmp 0x402177
mov edi, dword [0x4053f8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp - 0x18]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x26]
push ecx
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFile::Close
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x14]
call fcn.00402b56
lea ecx, [ebp - 0x54]
xor esi, esi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::CFile
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.00402b44
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00402b44
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call fcn.00402b44
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00402b44
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x58]
push ecx
push edx
push eax
mov byte [ebp - 4], 8
call sub.MFC42.DLL_AfxParseURL
push 0x14
mov byte [ebp - 4], 9
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x40], ecx
cmp ecx, edi
mov byte [ebp - 4], 0xa
je 0x401f31
push edi
push edi
push edi
push edi
push 1
push edi
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ecx, eax
jmp 0x401f33
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
push edi
push edi
push edx
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x38], ecx
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x24]
push 0x20000000
push edi
push edi
push 1
push edi
push ecx
push esi
mov ecx, eax
mov dword [ebp - 0x34], eax
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov edx, dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0x30], edi
mov eax, dword [edx - 8]
test eax, eax
jne 0x401f82
push 0
push 0
push 0
push 0
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::SendRequest_1
jmp 0x401f95
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add eax, 0x26
push eax
push ebx
push ecx
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea edx, [ebp - 0x3c]
mov ecx, edi
push edx
mov dword [ebp - 4], 8
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
test eax, eax
je 0x4020f1
mov eax, dword [ebp - 0x3c]
cmp eax, 0xc8
jb 0x401fc4
cmp eax, 0x18f
jbe 0x4020c1
cmp eax, 0x197
jne 0x4020f1
lea ecx, [ebp - 0x18]
call fcn.00402b44
push 0
push 0
push 0
push 0
push 0x405278
mov byte [ebp - 4], 0xc
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x20]
push 0
push 0
push 3
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x24]
push 0
push 0x400000
push 0
push 0
push 0
push edx
push 0x405274
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov esi, eax
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test esi, esi
jne 0x402043
call dword [sym.imp.KERNEL32.dll_GetLastError]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x402055
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x402057
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 7
push 0x2eee
push esi
push eax
call ebx
cmp eax, 0x2f00
je 0x40202a
test eax, eax
jne 0x4020b5
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x158]
push ecx
push 0x1f4
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4020b5
mov esi, dword [ebp + 8]
push 0x4054c8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
or al, 1
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CString::CString
jmp 0x402147
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x60]
test eax, eax
je 0x4020f1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00402b62
jmp 0x4020c5
test edi, edi
mov dword [ebp - 4], 8
je 0x40210c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x402123
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x402131
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00402b4a
mov eax, dword [ebp - 0x1c]
or al, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret