Function at 0x4517b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x28]
lea edi, [ebp - 0x20]
push ebx
mov ebx, eax
lea eax, [ebp - 0x24]
sub esp, 0x3c
call fcn.00420e30
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov dword [ebp - 0x20], 1
call sub.ws2_32.dll_ioctlsocket
mov edx, dword [ebp - 0x28]
mov ecx, 0x3d
mov eax, ebx
sub esp, 0xc
call fcn.0043f310
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
mov eax, 0x1475
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x24]
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 esi, eax
mov dword [esp + 4], 0x1478
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 5
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 + 0xc], 0
mov edx, ebx
mov ecx, 1
mov dword [esp + 8], 0
mov eax, 0x147a
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
mov eax, 0x147b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov edx, dword [ebp - 0x28]
mov ecx, 0x3d
mov eax, ebx
call fcn.0043f310
mov esi, dword [ebx]
test esi, esi
jne 0x451f60
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0x147f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, ebx
call fcn.0043f310
mov edx, dword [ebp - 0x28]
mov ecx, 0x3d
mov eax, ebx
call fcn.0043f310
mov ecx, dword [ebx]
test ecx, ecx
jne 0x451f25
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0x1484
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x24]
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 esi, eax
mov dword [esp + 4], 0x1487
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebx]
test edx, edx
je 0x451eb5
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0x148b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x148e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 2
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 + 0xc], 0
mov edx, ebx
mov ecx, 1
mov dword [esp + 8], 0
mov eax, 0x1490
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
mov eax, 0x1491
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x1494
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0xffffffff
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], 0x1495
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 edx, 1
cmp eax, 0x271e
je 0x451b47
call sub.ws2_32.dll_WSAGetLastError
xor edx, edx
cmp eax, 0x2747
sete dl
mov dword [esp + 8], esi
mov dword [esp + 4], str.got_error__u_n
mov dword [esp], edx
call fcn.00465cf0
mov eax, dword [ebx]
test eax, eax
jne 0x451ef0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0x149a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, edi
call fcn.00451010
mov dword [esp + 4], 0x149f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov esi, eax
call fcn.00465a80
xor eax, eax
cmp esi, 1
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov esi, 7
mov dword [esp], eax
call fcn.00465cf0
lea esi, [esi]
nop
mov dword [esp + 0xc], 0
mov ecx, 1
mov edx, ebx
mov eax, 0x14a2
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0xc], 0
mov eax, 0x14a3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov ecx, 1
mov edx, edi
call fcn.00451010
mov dword [esp + 4], 0x149f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov dword [ebp - 0x2c], eax
call fcn.00465a80
mov eax, dword [ebp - 0x2c]
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
sub esi, 1
jne 0x451be0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
mov eax, 0x14a3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, ebx
call fcn.0043f310
mov eax, dword [ebp - 0x24]
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 esi, eax
mov dword [esp + 4], 0x14aa
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x28]
mov eax, ebx
mov ecx, 0x3d
call fcn.0043f310
mov dword [esp + 0xc], 0
mov edx, ebx
mov ecx, 1
mov dword [esp + 8], 0
mov eax, 0x14ad
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x14b0
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, ebx
call fcn.0043f310
mov eax, dword [ebp - 0x24]
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 esi, eax
mov dword [esp + 4], 0x14b4
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x28]
mov edx, edi
mov ecx, 5
call fcn.00451010
mov dword [esp + 4], 0x14b6
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov esi, eax
call fcn.00465a80
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov edx, dword [ebp - 0x28]
mov eax, ebx
mov ecx, 0x1d
call fcn.0043f310
mov dword [esp], 0
mov edx, ebx
xor ecx, ecx
mov dword [esp + 0xc], 0
mov eax, 0x14b9
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
call fcn.0043f3a0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x24]
sub esp, 4
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
mov dword [esp + 0xc], 1
mov ecx, 1
mov edx, ebx
mov eax, 0x148a
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x4519da
mov dword [esp + 0xc], 1
mov ecx, 1
mov edx, ebx
mov eax, 0x1499
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x451b65
mov dword [esp + 0xc], 0
mov ecx, 1
mov edx, ebx
mov eax, 0x1483
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x45194b
mov dword [esp + 0xc], 0
mov ecx, 1
mov edx, ebx
mov eax, 0x147e
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x4518f9