Function at 0x42b220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
mov dword [ebp + eax - 0xb0], edx
add eax, 4
cmp eax, 0x18
jb 0x42b230
mov eax, 0x4f
lea esi, [ebp - 0xb4]
mov dword [esp + 4], 0x472089
mov word [ebp - 0xbe], ax
lea eax, [ebp - 0xc2]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xac]
mov dword [esp + 8], eax
mov dword [esp], 0x17
mov dword [ebp - 0xc2], 0x4c4c4548
mov dword [ebp - 0xbc], 6
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], 0x64
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xb4], 0x9e240017
call sub.ws2_32.dll_inet_pton
sub esp, 0xc
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 0x17
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x7d9
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
cmp ebx, 0xffffffff
mov dword [esp + 4], str.failed_to_create_socket__error__u_n
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [ebp - 0xdc], ebx
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 0x17
call sub.ws2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x7db
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 + 4], esi
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
call sub.ws2_32.dll_bind
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x7de
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.bind_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0xdc]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x1c
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x7e0
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.connect_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
lea esi, [ebp - 0xcc]
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0xd0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x4695cc
mov dword [esp + 4], 0xc8000006
mov dword [esp], ebx
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
mov edi, eax
mov dword [esp + 4], 0x7e4
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_get_WSARecvMsg__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x7c]
sete al
mov dword [esp], eax
call fcn.00465cf0
xor edx, edx
mov ecx, 0x19
mov dword [ebp - 0x88], 0x64
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b64
mov dword [esp + 8], 0x15
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x7e9
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_set_IPV6_HOPLIMIT__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea ecx, [ebp - 0xc8]
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x15
mov dword [esp + 4], 0x29
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 4
call sub.ws2_32.dll_getsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x7ed
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_get_IPV6_HOPLIMIT__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x7ee
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xc8]
mov dword [esp + 4], str.expected_1__got__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xc2]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edx
mov dword [esp + 8], 6
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x7f0
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.send_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 6
sete al
mov dword [esp], eax
call fcn.00465cf0
lea ecx, [ebp - 0x98]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], ebx
call dword [ebp - 0xd0]
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x7f2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
test edi, edi
mov dword [esp + 4], str.WSARecvMsg_failed__error__u_n
sete cl
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp], edi
call fcn.00465cf0
mov dword [esp + 4], 0x7f3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xcc]
mov dword [esp + 8], 6
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 6
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x7f4
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], str.expected_IPPROTO_IPV6__got__i_n
cmp eax, 0x29
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x7f5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], str.expected_IPV6_HOPLIMIT__got__i_n
cmp eax, 0x15
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x7f6
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 0x10
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x7f8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], str.expected_at_least_32__got__i_n
cmp eax, 0x1f
mov dword [esp + 8], eax
setg al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b60
mov dword [esp + 8], 0x15
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov dword [esp + 4], 0x7fa
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp], edi
lea edi, [ebp - 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_clear_IPV6_HOPLIMIT__error__u_n
call fcn.00465cf0
xor edx, edx
mov ecx, 0x19
mov dword [ebp - 0x88], 0x64
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b64
mov dword [esp + 8], 0x13
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x7ff
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_set_IPV6_PKTINFO__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0xc8]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x13
mov dword [esp + 4], 0x29
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 4
call sub.ws2_32.dll_getsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x803
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_get_IPV6_PKTINFO__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x804
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xc8]
mov dword [esp + 4], str.expected_1__got__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xc2]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 6
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x806
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.send_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 6
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x98]
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebp - 0xd0]
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x808
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.WSARecvMsg_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x809
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xcc]
mov dword [esp + 8], 6
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 6
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x80a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], str.expected_IPPROTO_IPV6__got__i_n
cmp eax, 0x29
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x80b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], str.expected_IPV6_PKTINFO__got__i_n
cmp eax, 0x13
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x80c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], 0x20
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 0x20
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x80e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x70], eax
je 0x42bef2
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.expected_::1_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b60
mov dword [esp + 8], 0x13
mov dword [esp + 4], 0x29
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x810
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_clear_IPV6_PKTINFO__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x7c]
sete al
mov dword [esp], eax
call fcn.00465cf0
xor eax, eax
mov ecx, 0x19
mov dword [ebp - 0x88], 0x64
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b64
mov dword [esp + 8], 0x28
mov dword [esp + 4], 0x29
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x815
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_set_IPV6_RECVTCLASS__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 - 0xc8]
mov dword [esp], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x28
mov dword [esp + 4], 0x29
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 4
call sub.ws2_32.dll_getsockopt
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0x819
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_get_IPV6_RECVTCLASS__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x81a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xc8]
mov dword [esp + 4], str.expected_1__got__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0xc2]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 8], 6
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x81c
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.send_failed__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 6
sete al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0x98]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [ebp - 0xd0]
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0x81e
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.WSARecvMsg_failed__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 + 4], 0x81f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0xcc]
mov dword [esp + 8], 6
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 6
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x820
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], str.expected_IPPROTO_IPV6__got__i_n
cmp eax, 0x29
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x821
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], str.expected_IPV6_TCLASS__got__i_n
cmp eax, 0x27
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x822
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.expected_length__i__got__i_n
cmp eax, 0x10
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x824
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], str.expected_0__got__i_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x476b60
mov dword [esp + 8], 0x28
mov dword [esp + 4], 0x29
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0x826
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_clear_IPV6_RECVTCLASS__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], ebx
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0xdc]
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 eax, dword [ebp - 0xa8]
cmp dword [ebp - 0x6c], eax
jne 0x42bafb
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x68], eax
jne 0x42bafb
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x64], eax
jne 0x42bafb
xor eax, eax
jmp 0x42bb00