Function at 0x51d560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp 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 ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x51d569
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040436c
mov eax, dword [ebp - 8]
call fcn.0040436c
mov eax, dword [ebp - 0xc]
call fcn.0040436c
mov eax, dword [ebp + 8]
call fcn.0040436c
xor eax, eax
push ebp
push 0x51d83b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, 0x51d854
call fcn.00403fd0
lea eax, [ebp - 0x28]
mov edx, 0x51d888
call fcn.00403fd0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0051d4a8
test al, al
jne 0x51d5dd
or ebx, 0xffffffff
jmp 0x51d818
push 0x51d898
push dword [ebp - 0x24]
push 0x51d8a4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404278
push dword [ebp - 0x1c]
push 0x51d8b0
push dword [ebp - 0x28]
push 0x51d8e0
push dword [ebp + 8]
push 0x51d8f8
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404278
push dword [ebp - 0x1c]
push 0x51d8a4
push 0x51d904
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404278
push dword [ebp - 0x1c]
push 0x51d8a4
push 0x51d8a4
push dword [ebp - 0x14]
push 0x51d8a4
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404278
push dword [ebp - 0x1c]
push 0x51d898
push dword [ebp - 0x24]
push 0x51d898
push 0x51d8a4
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404278
mov eax, dword [ebp - 0x1c]
call fcn.004041b8
lea edx, [ebp - 0x18]
call fcn.00409a68
push 0x51d934
push dword [ebp - 8]
push 0x51d944
push 0x51d8a4
push 0x51d958
push dword [ebp - 4]
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.00404278
push dword [ebp - 0x10]
push 0x51d968
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
push dword [ebp - 0x10]
push 0x51d988
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
push dword [ebp - 0x10]
push 0x51d9d8
push dword [ebp - 0x24]
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404278
push dword [ebp - 0x10]
push 0x51da10
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404278
push dword [ebp - 0x10]
push 0x51da30
push dword [ebp - 0x18]
push 0x51d8a4
push 0x51d8a4
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404278
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.004041c0
push 0x5697a4
push 0x1010
call sub.wsock32.dll_WSAStartup
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x569790], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0051d448
cmp dword [ebp - 0x20], 0
jne 0x51d788
mov ebx, 0xfffffffe
jmp 0x51d818
mov word [0x569794], 2
mov ax, word [0x566728]
push eax
call sub.wsock32.dll_htons
mov word [0x569796], ax
mov eax, dword [ebp - 0x20]
call fcn.0040437c
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x569798], eax
push 0x10
push 0x569794
mov eax, dword [0x569790]
push eax
call sub.wsock32.dll_connect
mov dword [0x569934], eax
cmp dword [0x569934], 0xffffffff
jne 0x51d7dd
mov ebx, 0xfffffffd
jmp 0x51d818
push 0
mov eax, dword [ebp - 0x10]
call fcn.004041b8
push eax
lea eax, [ebp - 0x10]
call fcn.00404388
push eax
mov eax, dword [0x569790]
push eax
call sub.wsock32.dll_send
mov dword [0x569934], eax
push 0xfa0
call sub.kernel32.dll_Sleep
mov eax, dword [0x569790]
push eax
call sub.wsock32.dll_closesocket
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d842
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00403f5c
lea eax, [ebp + 8]
call fcn.00403f38
ret