Function at 0x4305f7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x18]
call fcn.004013e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x2c4]
push eax
call fcn.0054bfb0
add esp, 0xc
mov word [ebp - 0x1c0], 0x101
lea ecx, [ebp - 0x1b8]
push ecx
mov dx, word [ebp - 0x1c0]
push edx
call sub.WSOCK32.dll_WSAStartup
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4306c8
push str.Cant_Create_Socket
mov eax, dword [ebp + 0x10]
push eax
call fcn.0054c45b
add esp, 8
mov dword [ebp - 0x308], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00560ea1
mov eax, dword [ebp - 0x308]
jmp 0x43086c
push 0x40
push 0
lea ecx, [ebp - 0x304]
push ecx
call fcn.0054bfb0
add esp, 0xc
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0xc]
and eax, 0xff
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 0xc]
shr edx, 8
and edx, 0xff
push edx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0xc]
shr eax, 0x18
and eax, 0xff
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x304]
push ecx
call fcn.0054c45b
add esp, 0x18
mov word [ebp - 0x28], 2
lea edx, [ebp - 0x304]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x314]
mov cx, word [eax + 0x10]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x26], ax
push 0x10
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.WSOCK32.dll_connect
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0xffffffff
jne 0x4307b7
push str.Cant_Connect_to_Host
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054c45b
add esp, 8
mov dword [ebp - 0x30c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00560ea1
mov eax, dword [ebp - 0x30c]
jmp 0x43086c
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x2c4]
push edx
call fcn.0054bfb0
add esp, 0xc
cmp dword [ebp + 0xc], 0x100
jbe 0x4307dd
mov dword [ebp + 0xc], 0xff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.0054c980
add esp, 0xc
lea eax, [ebp - 0x2c4]
push eax
call fcn.0054c3e0
add esp, 4
add eax, 1
mov dword [ebp + 0xc], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
cmp ecx, dword [ebp + 0xc]
jne 0x430839
mov dword [ebp - 0x10], 1
jmp 0x430840
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x14]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x310], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00560ea1
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc