Function at 0x412160
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e2682
push eax
mov eax, 0x105c
mov dword fs:[0], esp
call fcn.00415b80
push ebx
push ebp
push esi
push edi
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edi, [esp + 0x38]
mov eax, dword [esp + 0x107c]
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
mov dword [esp + 0x34], 0x535d58
mov dword [esp + 0x38], ebp
movsw word es:[edi], word [esi]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x1074], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
push 7
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x107c], 1
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.http:__
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.00415612
test bl, bl
jne 0x41225a
lea edx, [esp + 0x14]
push 7
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1078], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], 1
call fcn.00415612
push 7
push 0x53521c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x412286
lea ecx, [esp + 0x18]
mov byte [esp + 0x1074], 0
call fcn.00415612
lea ecx, [esp + 0x10]
mov dword [esp + 0x1074], 0xffffffff
call fcn.00415612
xor eax, eax
jmp 0x41251e
lea eax, [esi + 1]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
mov edi, 0x50
call sub.MFC42.DLL_CString::Mid_1
lea edx, [esp + 0x14]
mov ebx, 3
push esi
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x107c], bl
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1078], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], bl
call fcn.00415612
push 0x53520c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x412349
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00415612
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1078], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], bl
call fcn.00415612
push ebp
push ebp
push ebp
push ebp
push str.Mozilla_4.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x28], esi
je 0x4124dc
mov eax, dword [esp + 0x10]
push ebp
push 0x4000000
push ebx
push ebp
push ebp
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
cmp ebx, ebp
je 0x4124d5
mov edx, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x34]
push 0x4000040
push ecx
push 0x556570
push str.HTTP_1.0
push edx
push 0x535d2c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push str.Host:__s_r_n
push ecx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0x20000000
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp esi, ebp
je 0x4124ca
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
lea edx, [esp + 0x40]
push ecx
push edx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4124c3
lea eax, [esp + 0x2c]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x24], 0xc8
jne 0x4124c3
mov ecx, dword [esp + 0x1080]
cmp ecx, ebp
je 0x412441
push 0x556570
call sub.MFC42.DLL_CString::operator
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x70]
push 0xfff
push eax
push esi
call ebp
test eax, eax
je 0x4124c3
mov edi, dword [esp + 0x1084]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4124b1
test edi, edi
mov byte [esp + eax + 0x6c], 0
je 0x412484
mov edx, dword [edi]
push eax
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call dword [edx + 0x40]
jmp 0x412499
mov ecx, dword [esp + 0x1080]
test ecx, ecx
je 0x412499
lea edx, [esp + 0x6c]
push edx
call fcn.004156cc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x6c]
push eax
push 0xfff
push ecx
push esi
call ebp
test eax, eax
jne 0x412464
jmp 0x4124c3
push 0
push 8
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov byte [esp + 0x20], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
and esi, 0xff
mov byte [esp + 0x1074], 1
call fcn.00415612
lea ecx, [esp + 0x18]
mov byte [esp + 0x1074], 0
call fcn.00415612
lea ecx, [esp + 0x10]
mov dword [esp + 0x1074], 0xffffffff
call fcn.00415612
mov eax, esi
mov ecx, dword [esp + 0x106c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1068
ret