Function at 0x43fae0
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, 2
push esi
mov esi, eax
push ebx
xor ebx, ebx
sub esp, 0x5c
mov dword [ebp - 0x36], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov dword [ebp - 0x32], 0
mov word [ebp - 0x2a], bx
mov word [ebp - 0x38], di
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2e], 0
mov dword [ebp - 0x34], 0x100007f
call sub.ws2_32.dll_socket
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x131e
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 edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov ecx, 0x1d
mov edx, edi
mov eax, esi
call fcn.0043f310
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.ws2_32.dll_bind
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1323
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_bind__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x3c]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [ebp - 0x3c], 0x10
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1326
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_address__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 2
mov dword [esp], edi
call sub.ws2_32.dll_listen
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1328
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_listen__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0
xor ecx, ecx
mov edx, esi
mov dword [esp + 0xc], 0
mov eax, 0x132a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
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 [ebp - 0x50], eax
mov dword [esp + 4], 0x132d
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
lea eax, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x132f
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_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 0xc], 0
mov edx, esi
mov ecx, 8
mov dword [esp + 8], 0
mov eax, 0x1331
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], 0
xor ecx, ecx
mov edx, esi
mov dword [esp + 0xc], 0
mov eax, 0x1332
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0043f3a0
mov eax, esi
mov ecx, 0x1d
mov edx, edi
call fcn.0043f310
mov eax, dword [esi]
test eax, eax
jne 0x440770
mov ebx, dword [ebp - 0x4c]
mov dword [esp + 0xc], 0
xor ecx, ecx
mov eax, 0x1336
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, ebx
mov dword [esp], 0
call fcn.0043f3a0
xor ecx, ecx
mov edx, edi
mov eax, ebx
call fcn.0043f310
mov ecx, 0x1d
mov edx, edi
mov eax, ebx
call fcn.0043f310
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4407e5
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x133b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x133e
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 esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0x28]
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.ws2_32.dll_connect
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1340
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_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
test edx, edx
je 0x4407b0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x1344
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1347
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_accept__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], ebx
call sub.ws2_32.dll_closesocket
mov ebx, dword [ebp - 0x4c]
mov ecx, 8
mov eax, 0x134a
sub esp, 4
mov dword [esp + 0xc], 0
mov edx, ebx
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, 0x134b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x4c], ebx
call fcn.0043f3a0
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x134e
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_accept__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], ebx
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x1351
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x50]
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
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1357
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
lea eax, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1359
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_connect__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], 0
mov edx, dword [ebp - 0x4c]
mov ecx, 8
mov dword [esp + 8], 0
mov eax, 0x135b
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x135e
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_accept__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x1362
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], edi
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
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x1369
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
lea eax, [ebp - 0x38]
mov dword [esp], ebx
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x136b
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_bind__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 - 0x3c]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [ebp - 0x3c], 0x10
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x136e
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_address__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
mov dword [esp + 4], 2
call sub.ws2_32.dll_listen
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x1370
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_listen__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 + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1373
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 esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x1375
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_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov edi, dword [ebp - 0x4c]
mov edx, ebx
mov ecx, 0x1d
mov eax, edi
call fcn.0043f310
mov dword [esp + 0xc], 0
mov edx, edi
mov ecx, 8
mov dword [esp + 8], 0
mov eax, 0x1379
mov dword [esp + 4], 0xc8
mov dword [esp], 0
mov dword [ebp - 0x4c], edi
call fcn.0043f3a0
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x137c
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_accept__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x4c]
mov edx, ebx
mov ecx, 0x15
sub esp, 4
call fcn.0043f310
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1385
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 esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x1387
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_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov edi, dword [ebp - 0x4c]
mov edx, ebx
mov ecx, 0x1d
mov eax, edi
call fcn.0043f310
mov dword [esp + 0xc], 0
mov edx, edi
mov ecx, 8
mov dword [esp + 8], 0
mov eax, 0x138a
mov dword [esp + 4], 0xc8
mov dword [esp], 0
mov dword [ebp - 0x4c], edi
call fcn.0043f3a0
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x138d
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_accept__error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x4c]
mov edx, ebx
mov ecx, 0x15
sub esp, 4
call fcn.0043f310
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x1396
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 esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x1398
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_connect__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], 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x139b
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_accept__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 - 0x4c]
mov edx, ebx
mov ecx, 0x1d
call fcn.0043f310
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esp + 8], 0
mov eax, 0x139e
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
sub esp, 4
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
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x4c]
mov ecx, 8
mov eax, 0x1335
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x43fdb7
mov dword [esp + 0xc], 1
mov edx, eax
mov ecx, 8
mov eax, 0x1343
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x43feeb
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x4c]
mov ecx, 8
mov eax, 0x133a
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc8
mov dword [esp], 0
call fcn.0043f3a0
jmp 0x43fe0a