Function at 0x401330
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
sub esp, 0x5c
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x14], 1
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], 0x29
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x46a0a8
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], 1
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], 0x2c
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x46a0a8
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], esi
mov edx, 2
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 0x10
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
mov dword [ebp - 0x24], 0x100007f
call sub.ws2_32.dll_bind
sub esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0x32
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], 0x46a0cc
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], 0x36
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], 0x46a0f0
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], 0x39
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], 0x46a111
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], 0x3c
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x46a12d
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], 0x40
mov dword [esp], str..._wine_dlls_ws2_32_tests_afd.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x46a14c
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