Function at 0x437400
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x30]
push ebx
sub esp, 0x7c
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
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0
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 - 0x4c], eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
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]
sub esp, 0x10
mov dword [ebp - 0x50], eax
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1075
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1076
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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 ecx, [ebp - 0x3c]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x107a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x107b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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 ecx, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 3
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x107e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x107f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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
mov dword [ebp - 0x30], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea ecx, [ebp - 0x3c]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edi
mov dword [esp], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x1084
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 4], str.expected_success_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1085
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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], 0x1086
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x30]
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
lea ecx, [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 5
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x1089
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.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 4
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
lea ecx, [ebp - 0x3c]
sub esp, 0x10
mov esi, eax
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edi
mov dword [esp], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 5
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov edi, eax
mov dword [esp + 4], 0x108d
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.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x2c]
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_VirtualFree]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xdeadbeef
sub esp, 0xc
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [esp + 0x1c], edi
lea edi, [ebp - 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x8004667e
mov dword [ebp - 0x30], 0xdeadbeef
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x1094
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 4], str.expected_success_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1095
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x30]
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 edx, dword [ebp - 0x50]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetQueuedCompletionStatus]
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0x1098
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1099
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x30]
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], 0x109a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x40]
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 + 4], 0x109b
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], 0x109c
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
lea edx, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x109f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x10a0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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 - 0x4c]
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call sub.ws2_32.dll_WSAEventSelect
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x10a3
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.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 8], edi
mov edi, 0x470694
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x10a6
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.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [ebp - 0x30], 0xdeadbeef
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x10aa
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x10ab
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
cmp eax, 0x2726
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov esi, dword [str.windows]
mov ecx, 5
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 0x437d7c
mov dword [esp + 4], 0x10ac
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x30]
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
call fcn.00465eb0
call fcn.00465e90
test eax, eax
jne 0x437d44
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov dword [esp], eax
call esi
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 ebx, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x10b5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x10b6
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], esi
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 - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 0x20], 0x420840
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [0x478444], 0
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov esi, eax
mov dword [esp + 4], 0x10bb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 4], str.expected_success_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x10bc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x30]
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], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SleepEx]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x10bf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xc0
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x10c0
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], 0x10c1
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], 0x10c2
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], 0x10c3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [0x478448]
lea edx, [ebp - 0x2c]
mov dword [esp + 4], str.got_APC_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], ebx
call sub.ws2_32.dll_closesocket
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret