Function at 0x404490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 0
push 1
push 2
mov dword [ebp - 0x18], 0x10
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4044fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_create_socket:_error_code__d_n
push dword [0x421008]
call fcn.00410e00
add esp, 0xc
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x14], xmm0
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40456f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_bind:_error_code__d_n
push dword [0x421008]
call fcn.00410e00
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40458b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_listen:_error_code__d_n
jmp 0x404546
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4045ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_getsockname___failed:_error_code__d_n
jmp 0x404546
push 0
push 1
push 2
call esi
cmp eax, 0xffffffff
jne 0x4045cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_create_second_socket:_error_code__d_n
jmp 0x404546
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dword [ebx + 4], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404624
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_connect_socket:_error_code__d_n
push dword [0x421008]
call fcn.00410e00
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 0xc
push dword [ebx + 4]
call esi
push edi
mov dword [ebx + 4], 0xffffffff
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x404646
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.pgpipe:_could_not_accept_connection:_error_code__d_n
jmp 0x4045ed
push edi
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004175a2
mov esp, ebp
pop ebp
ret