Function at 0x420e30
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
push edi
mov edi, eax
push esi
lea esi, [ebp - 0x28]
push ebx
mov ebx, ecx
sub esp, 0x5c
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_WSASocketW
sub esp, 0x18
mov dword [edi], eax
mov dword [esp + 4], 0xac
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_create_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_WSASocketW
sub esp, 0x18
mov ebx, eax
mov dword [esp + 4], 0xaf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_create_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], str.127.0.0.1
xor eax, eax
mov edx, 2
mov word [ebp - 0x28], dx
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x22], 0
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], ax
call sub.ws2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x24], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x10
call sub.ws2_32.dll_bind
sub esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0xb5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], str.failed_to_bind_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [ebp - 0x2c], 0x10
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0xb9
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], str.failed_to_get_address__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 4], 1
call sub.ws2_32.dll_listen
sub esp, 8
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0xbc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], str.failed_to_listen__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], esi
mov dword [esp + 8], 0x10
mov eax, dword [edi]
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xbf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x2c], 0x10
call sub.ws2_32.dll_accept
mov esi, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [esi], eax
mov dword [esp + 4], 0xc3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_accept_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret