Function at 0x10004610
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Make an http request with a cookie
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100160a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
add esi, 0x124
lea ecx, [ebp - 0x14]
push esi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x10004712
push 0x1001d670
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x100046be
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
push str._index.html
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
jmp 0x100047b5
lea ecx, [ebp - 0x24]
push esi
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
jmp 0x100047b0
push str.http:__
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 7
push ecx
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push 7
push 0x1001d670
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov eax, dword [ecx - 8]
lea ecx, [ebp - 0x14]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov bl, 9
push str.GET___HTTP_1.1_r_n
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator
push str.Accept:___r_n
lea ecx, [ebp - 0x18]
call fcn.100155aa
push str.Accept_Language:_zh_cn_r_n
lea ecx, [ebp - 0x18]
call fcn.100155aa
push str.Accept_Encoding:_gzip__deflate
lea ecx, [ebp - 0x18]
call fcn.100155aa
push str._r_nUser_Agent:Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
lea ecx, [ebp - 0x18]
call fcn.100155aa
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
push 0x1001da08
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push str._r_nConnection:_Keep_Alive
lea ecx, [ebp - 0x18]
call fcn.100155aa
push str.Cookie:_geturl_2Findex_2Easp_3F__DvForum8_2E2_5Fbbs_2Edvbbs_2EnetStatUserID5948154296__ASPSESSIONIDCACQAAQRPEICACBALEGENOICDHPGFMAK__cnzz023__rtime0__ltime1207969055046__cnzz_eid78839068__r_n
lea ecx, [ebp - 0x18]
call fcn.100155aa
push str._r_n_r_n
lea ecx, [ebp - 0x18]
call fcn.100155aa
xor ebx, ebx
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x10004996
mov ecx, esi
call fcn.10005930
test eax, eax
jne 0x10004996
test ebx, ebx
jne 0x10004891
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call fcn.10001e10
mov edi, eax
test edi, edi
je 0x10004856
mov dx, word [esi + 0x120]
mov ebx, 1
push edx
mov word [ebp - 0x5c], 2
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x5a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push ebx
push 2
mov dword [ebp - 0x58], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100048fc
mov dword [ebp - 0x34], 0x1001d078
mov dword [ebp - 0x30], 0x624
mov dword [ebp - 0x2c], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x34]
push str.DealDVBBS_:_socket_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
jmp 0x10004856
lea ecx, [ebp - 0x5c]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10004947
mov dword [ebp - 0x40], 0x1001d078
mov dword [ebp - 0x3c], 0x62b
mov dword [ebp - 0x38], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x40]
push str.DealDVBBS:_Connect_Failed._Error___d
push edx
call fcn.10006230
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10004856
mov eax, dword [ebp - 0x18]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000498a
mov dword [ebp - 0x4c], 0x1001d078
mov dword [ebp - 0x48], 0x634
mov dword [ebp - 0x44], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x4c]
push str.DealDVBBS:_Send_Web_Get_Req_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10004856
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10005d80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret