Function at 0x567830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658e10
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.Trying_to_bind_socket..._n
call fcn.0055b6c0
mov byte [ebp - 4], 1
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x56788f
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi], 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x5678a7
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x567911
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld_n
lea eax, [ebp - 0x34]
push eax
call fcn.0061af5b
add esp, 0xc
push 1
mov ecx, dword [0x755a48]
push ecx
mov ecx, esi
call fcn.0055bf00
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [0x755a48]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], edi
mov eax, edi
jmp 0x567a9a
mov eax, dword [esi + 0x194]
test eax, eax
je 0x56797a
cmp byte [eax + 0x15c], 0
je 0x56797a
mov eax, dword [eax + 0x140]
push 1
lea edx, [ebp - 0x48]
push edx
push eax
mov ecx, esi
call fcn.0055c0e0
test eax, eax
jne 0x567a9a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov ecx, 2
mov word [ebp - 0x24], cx
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x144]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [edi]
push ecx
call sub.WS2_32.dll_connect
xor eax, eax
jmp 0x567a9a
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov edx, 2
mov word [ebp - 0x44], dx
push eax
call sub.WS2_32.dll_htonl
mov dword [ebp - 0x40], eax
push 0
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
push 0x10
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [edi]
push ecx
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x567a10
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld_n
lea edx, [ebp - 0x34]
push edx
call fcn.0061af5b
add esp, 0xc
push 1
mov eax, dword [0x755a50]
push eax
mov ecx, esi
call fcn.0055bf00
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [0x755a50]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov eax, dword [esi + 0x3204]
mov dword [eax + 0x140], edi
mov eax, edi
jmp 0x567a9a
push 1
mov ecx, dword [0x755b00]
push ecx
mov ecx, esi
call fcn.0055bf00
push 1
mov edx, dword [edi]
push edx
call sub.WS2_32.dll_listen
test eax, eax
jge 0x567973
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld_n
lea eax, [ebp - 0x34]
push eax
call fcn.0061af5b
add esp, 0xc
push 1
mov ecx, dword [0x755a54]
push ecx
mov ecx, esi
call fcn.0055bf00
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [0x755a54]
jmp 0x5678f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret 4