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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4254cd
mov eax, dword [ebp - 4]
add esp, 0xfffffe38
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x101cc], edx
mov dword [ebp - 0x101c8], edx
mov dword [ebp - 0x101c4], edx
mov dword [ebp - 0x101c0], edx
mov dword [ebp - 0x101bc], edx
mov dword [ebp - 0x101b8], edx
mov dword [ebp - 0x101b4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
xor eax, eax
push ebp
push 0x42582e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a0]
push eax
xor edx, edx
mov al, 2
call fcn.0040623c
push eax
call sub.wsock32.dll_WSAStartup
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
lea eax, [ebp - 0x101b4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x425844
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
mov eax, dword [ebp - 0x101b4]
call fcn.00404834
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404590
mov edx, dword [ebp - 0xc]
mov eax, 0x425850
call fcn.0040491c
mov ebx, eax
dec ebx
cmp ebx, 0xffffffff
jne 0x4255c6
mov edx, dword [ebp - 0xc]
mov eax, 0x42585c
call fcn.0040491c
mov ebx, eax
dec ebx
cmp ebx, 0xffffffff
jne 0x4255c6
mov eax, dword [ebp - 0xc]
call fcn.00404634
mov ebx, eax
lea eax, [ebp - 0x101b8]
push eax
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00404894
mov eax, dword [ebp - 0x101b8]
call fcn.00404834
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404590
mov edx, dword [ebp - 0xc]
mov eax, 0x425850
call fcn.0040491c
test eax, eax
je 0x4256d8
lea eax, [ebp - 0x101bc]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x425850
call fcn.0040491c
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404634
mov ecx, eax
mov eax, dword [ebp - 0xc]
pop edx
call fcn.00404894
mov eax, dword [ebp - 0x101bc]
call fcn.00404834
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404590
mov edx, dword [ebp - 0xc]
mov eax, 0x42585c
call fcn.0040491c
test eax, eax
je 0x425687
lea eax, [ebp - 0x101c0]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x42585c
call fcn.0040491c
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00404894
mov eax, dword [ebp - 0x101c0]
call fcn.00404834
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404590
xor eax, eax
push ebp
push 0x4256a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0041e520
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4256b8
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x425850
call fcn.0040491c
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00404894
jmp 0x4256dd
mov ebx, 0x50
mov word [ebp - 0x1b0], 2
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x1ae], ax
lea edx, [ebp - 0x101c4]
mov eax, dword [ebp - 0xc]
call fcn.00425010
mov eax, dword [ebp - 0x101c4]
call fcn.00404834
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x4257f2
mov dword [0x428ab8], 1
lea eax, [ebp - 0x101b0]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402ff4
push 0x425868
push dword [ebp - 0xc]
push 0x425878
push 0x42588c
push 0x425898
push 0x4258a4
push dword [ebp - 0xc]
push 0x42588c
push 0x425898
push 0x4258b4
push 0x42588c
push 0x425898
lea eax, [ebp - 0x101c8]
mov edx, 0xc
call fcn.004046f4
mov eax, dword [ebp - 0x101c8]
call fcn.00404834
lea ecx, [ebp - 0x101cc]
lea edx, [ebp - 0x101b0]
xchg edx, eax
call fcn.004250e8
cmp dword [0x428ab8], 0
jle 0x4257f2
push 0
push 0x10000
lea eax, [ebp - 0x101af]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
mov dword [0x428ab8], eax
lea eax, [ebp - 0x101b0]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402ff4
cmp dword [0x428ab8], 0
jg 0x4257bb
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425835
lea eax, [ebp - 0x101cc]
mov edx, 7
call fcn.004043bc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 4]
call fcn.00404398
ret