Function at 0x435a30
Capabilities:
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ecx, 1
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x58]
lea edi, [ebp - 0x2c]
push ebx
lea esi, [ebp - 0x50]
sub esp, 0x9c
mov word [ebp - 0x2e], ax
mov eax, 2
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3a], 0
mov dword [ebp - 0x36], 0
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x38], 0x100007f
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00420e30
lea eax, [ebp - 0x44]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 1
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xf95
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xf96
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xf9a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xf9b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xf9f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfa0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfa5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfa6
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfa7
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x50]
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfab
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfac
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfb1
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfb2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfb3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov eax, 0xfb5
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7b
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfba
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfbb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfbe
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfbf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0xdeadbeef
sub esp, 4
mov dword [ebp - 0x50], 0xdeadbeef
mov dword [esp + 0x1c], edi
lea edi, [ebp - 0x50]
mov dword [esp + 0x18], esi
lea esi, [ebp - 0x4c]
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x60]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
mov dword [ebp - 0x2c], 0xdeadbeef
mov dword [ebp - 0x28], 0xdeadbeef
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfc7
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [esp + 4], str.expected_success_n
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfc8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
test eax, eax
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfc9
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.got__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfca
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfcb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.got_status__x_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfcc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], str.got_size__Iu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.00465cf0
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x48]
mov dword [esp + 0xc], edi
mov ecx, dword [sym.imp.kernel32.dll_GetQueuedCompletionStatus]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [ebp - 0x74], ecx
mov dword [esp + 0x10], 0
mov dword [esp], eax
call ecx
sub esp, 0x14
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfcf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfd0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfd1
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.got_key__Iu_n
cmp eax, 0x7b
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfd2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x2c]
mov dword [esp + 4], str.got_overlapped__p_n
cmp eax, edx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x48]
sub esp, 4
mov dword [ebp - 0x48], 0xdeadbeef
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x50]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
mov dword [ebp - 0x50], 0xdeadbeef
mov dword [ebp - 0x2c], 0xdeadbeef
mov dword [ebp - 0x28], 0xdeadbeef
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfda
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [esp + 4], str.expected_success_n
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfdb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x70], eax
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x70]
mov dword [esp + 4], str.got_error__u_n
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfdc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.got__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfdd
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfde
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.got_status__x_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfdf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], str.got_size__Iu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dword [esp + 8], esi
lea esi, [ebp - 0x48]
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp], eax
call ecx
sub esp, 0x14
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfe2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.got_error__u_n
mov ebx, 0x470694
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfe3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfe4
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], str.got_key__Iu_n
cmp eax, 0x7b
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xfe5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], str.got_overlapped__p_n
cmp eax, edi
mov dword [esp + 8], eax
mov edi, ebx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xfe8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 0x100
mov dword [esp], 0x100
mov eax, 0xfeb
call fcn.00420c40
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 5
mov dword [esp + 4], 0
mov eax, 0xfed
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x472fba
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xff0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 0x200
mov dword [esp], 0x200
mov eax, 0xff3
call fcn.00420c40
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 5
mov dword [esp + 4], 0
mov eax, 0xff5
mov dword [esp], 0
call fcn.004276c0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x472fba
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xff8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 5
mov dword [esp + 4], 1
mov eax, 0xffa
mov dword [esp], 0
call fcn.004276c0
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 3
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0xffd
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 2
mov dword [esp + 4], 1
mov eax, 0xfff
mov dword [esp], 0
call fcn.004276c0
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1002
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 0x200
mov dword [esp], 0x200
mov eax, 0x1005
call fcn.00420c40
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 2
mov dword [esp + 4], 1
mov eax, 0x1007
mov dword [esp], 0
call fcn.004276c0
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 5
mov dword [esp], eax
call sub.ws2_32.dll_recv
mov esi, dword [str.windows]
mov ecx, 5
mov dword [ebp - 0x54], eax
sub esp, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465e60
jmp 0x436a6b
mov dword [esp + 4], 0x100a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
call fcn.00465eb0
call fcn.00465e90
test eax, eax
jne 0x436a32
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov edi, ebx
mov dword [esp + 4], 0
mov eax, 0x100c
mov dword [esp], 0
call fcn.004276c0
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_recv
mov esi, dword [str.windows]
mov ecx, 5
mov dword [ebp - 0x54], eax
sub esp, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465e60
jmp 0x436b29
mov dword [esp + 4], 0x100f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
call fcn.00465eb0
call fcn.00465e90
test eax, eax
jne 0x436af0
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
lea esi, [ebp - 0x2c]
mov dword [esp + 4], 0
mov eax, 0x1011
lea edi, [ebp - 0x50]
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x472fba
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1014
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 0x200
mov dword [esp], 0x200
mov eax, 0x1017
call fcn.00420c40
lea eax, [ebp - 0x54]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov dword [ebp - 0x54], 1
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x101b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x54]
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x5c]
mov ecx, 1
mov dword [esp + 4], 0
mov eax, 0x101d
mov dword [esp], 0
call fcn.004276c0
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1020
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov eax, 0x1022
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x472fba
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1025
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 0x100
mov dword [esp], 0x100
mov eax, 0x1028
call fcn.00420c40
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x5c]
mov ecx, 1
mov dword [esp + 4], 0
mov eax, 0x102a
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x58]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
xor ecx, ecx
sub esp, 0xc
mov edx, eax
mov dword [ebp - 0x58], eax
mov eax, 0x1031
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004276c0
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1034
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov eax, 0x1036
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004276c0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1040
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1041
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1044
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [ebp - 0x54], 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1045
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x271e
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x48]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004667f
mov dword [esp], eax
mov dword [ebp - 0x48], 0xdeadbeef
mov dword [0x478444], 0
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x104a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ebx, dword [ebp - 0x54]
xor eax, eax
mov dword [esp + 4], str.expected_success_n
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x104b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
sub esp, 8
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x104e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 0xc0
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x104f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478444]
mov dword [esp + 4], str.APC_was_called__u_times_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1050
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478450]
mov dword [esp + 4], str.got_APC_error__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1051
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x47844c]
mov dword [esp + 4], str.got_APC_size__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1052
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478448]
mov dword [esp + 4], str.got_APC_overlapped__p_n
cmp eax, esi
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x48]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40047307
mov dword [esp], eax
mov dword [ebp - 0x48], 0xdeadbeef
mov dword [0x478444], 0
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x1057
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov edi, dword [ebp - 0x54]
xor eax, eax
mov dword [esp + 4], str.expected_success_n
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1058
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.got_size__u_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
sub esp, 8
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x105b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], str.got__d_n
cmp eax, 0xc0
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x105c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478444]
mov dword [esp + 4], str.APC_was_called__u_times_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x105d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478450]
mov dword [esp + 4], str.got_APC_error__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x105e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x47844c]
mov dword [esp + 4], str.got_APC_size__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x105f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478448]
mov dword [esp + 4], str.got_APC_overlapped__p_n
cmp eax, esi
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret