Function at 0x42510c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x203a
push 0
push 0
dec ecx
jne 0x425114
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x425408
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x101ac]
mov eax, 0xf4240
call fcn.0041dc5c
mov edx, dword [ebp - 0x101ac]
mov eax, 0x429a94
call fcn.004043ec
lea eax, [ebp - 0x198]
push eax
xor edx, edx
mov al, 2
call fcn.0040623c
push eax
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x101b0]
mov eax, dword [ebp - 4]
call fcn.00424fd4
mov edx, dword [ebp - 0x101b0]
lea eax, [ebp - 4]
call fcn.00404430
mov edx, dword [ebp - 4]
mov eax, 0x425420
call fcn.0040491c
test eax, eax
je 0x4251c5
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x425430
call fcn.0040491c
add eax, 2
push eax
mov eax, dword [ebp - 4]
call fcn.00404634
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404894
lea eax, [ebp - 0x101b4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x42543c
call fcn.0040491c
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404894
mov eax, dword [ebp - 0x101b4]
call fcn.00404834
mov edi, eax
lea eax, [ebp - 0x101b8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x42543c
call fcn.0040491c
push eax
mov eax, dword [ebp - 4]
call fcn.00404634
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404894
mov eax, dword [ebp - 0x101b8]
call fcn.00404834
mov dword [ebp - 8], eax
mov word [ebp - 0x1a8], 2
push 0x50
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
lea eax, [ebp - 0x101c0]
mov edx, edi
call fcn.00404590
mov eax, dword [ebp - 0x101c0]
lea edx, [ebp - 0x101bc]
call fcn.00425010
mov eax, dword [ebp - 0x101bc]
call fcn.00404834
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1a4], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push ebx
call sub.wsock32.dll_connect
inc eax
je 0x4253db
push 0x425448
lea eax, [ebp - 0x101c8]
mov edx, dword [ebp - 8]
call fcn.00404590
push dword [ebp - 0x101c8]
push 0x425458
push dword [0x429a6c]
push 0x425464
push 0x425478
push 0x425484
push 0x425490
lea eax, [ebp - 0x101cc]
mov edx, edi
call fcn.00404590
push dword [ebp - 0x101cc]
push 0x425478
push 0x425484
push 0x4254a0
push 0x425478
push 0x425484
push 0x425478
push 0x425484
lea eax, [ebp - 0x101c4]
mov edx, 0x10
call fcn.004046f4
mov eax, dword [ebp - 0x101c4]
call fcn.00404834
mov edi, eax
lea eax, [ebp - 0x101a8]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402ff4
lea ecx, [ebp - 0x101d0]
lea eax, [ebp - 0x101a8]
mov edx, edi
call fcn.004250e8
lea eax, [ebp - 0x101d4]
lea edx, [ebp - 0x101a8]
mov ecx, 0x10000
call fcn.00404608
mov eax, dword [ebp - 0x101d4]
call fcn.00404634
push 0
push eax
lea eax, [ebp - 0x101a7]
push eax
push ebx
call sub.wsock32.dll_send
lea eax, [ebp - 0x101a8]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402ff4
push 0
push 0x10000
lea eax, [ebp - 0x101a8]
push eax
push ebx
call sub.wsock32.dll_recv
push ebx
call sub.wsock32.dll_closesocket
mov eax, esi
lea edx, [ebp - 0x101a8]
mov ecx, 0x10000
call fcn.00404608
push esi
mov edx, dword [esi]
mov eax, 0x4254c0
call fcn.0040491c
add eax, 2
push eax
mov eax, dword [esi]
call fcn.00404634
mov ecx, eax
mov eax, dword [esi]
pop edx
call fcn.00404894
jmp 0x4253e2
mov eax, esi
call fcn.00404398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42540f
lea eax, [ebp - 0x101d4]
mov edx, 0xb
call fcn.004043bc
lea eax, [ebp - 4]
call fcn.00404398
ret