Function at 0x43a3e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x7c]
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0xac
call fcn.00420e30
lea eax, [ebp - 0x2c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4732b6
mov dword [esp], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 2
call sub.ws2_32.dll_send
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x173a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 4
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_4__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x173b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov edx, dword [ebx + 0x34]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x70]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x74], 0xdeadbeef
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x173f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1740
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_2__got__d_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1741
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov ecx, dword [ebx + 0x34]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x70]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x74], 0xdeadbeef
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x1745
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1746
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_2__got__d_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1747
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov esi, dword [ebx + 0x34]
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4732b6
mov dword [esp], eax
mov dword [ebp - 0x60], 4
call sub.ws2_32.dll_send
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x174c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 4
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_4__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x174d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x34]
xor eax, eax
test edi, edi
mov edi, str.dead
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x70]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x74], 0xdeadbeef
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x1751
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1752
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_4__got__d_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], 0x1753
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov edx, dword [ebx + 0x34]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x22]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], str.deadbeefs
mov dword [esp], eax
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x58], 5
call sub.ws2_32.dll_send
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x175b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 9
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_9__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x175c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov ecx, dword [ebx + 0x34]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x70]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 2
mov dword [esp], eax
mov dword [ebp - 0x74], 0xdeadbeef
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x1760
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1761
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_9__got__d_n
cmp eax, 9
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x5c]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x54]
mov byte [eax + 5], 0
mov dword [esp + 4], 0x1764
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x5c]
mov ecx, 5
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], eax
mov edi, str.beefs
mov dword [esp + 4], str.buf_0__doesnt_match:__s___dead_n
seta dl
sbb dl, 0
xor eax, eax
test dl, dl
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1765
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x54]
mov ecx, 6
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], eax
mov dword [esp + 4], str.buf_1__doesnt_match:__s___beefs_n
seta dl
sbb dl, 0
xor eax, eax
test dl, dl
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x1766
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_0__got__d_n
mov dword [esp + 8], eax
mov esi, dword [ebx + 0x34]
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [ebp - 0x60], 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
sub esp, 0x10
mov edi, eax
mov dword [ebp - 0x8c], eax
mov dword [esp + 4], 0x176a
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov dword [ebp - 0x30], eax
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], str.could_not_create_event_object__errno___d_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00465cf0
test edi, edi
je 0x43b45d
lea eax, [ebp - 0x64]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov dword [ebp - 0x64], 1
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0x1771
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Failed_to_set_linger__d_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x40]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x1774
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov edx, dword [ebx + 0x34]
xor eax, eax
cmp esi, 0xffffffff
je 0x43b4e0
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.WSARecv_failed____d_error__d_n
call fcn.00465cf0
lea eax, [ebp - 0x40]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x1777
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
cmp ebx, 0xffffffff
je 0x43b4d0
mov dword [esp + 0xc], ecx
mov edi, 0x470694
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.WSARecv_failed____d_error__d_n
call fcn.00465cf0
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], 0xffffffff
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [esp + 4], 0x3e8
mov dword [ebp - 0x90], eax
call eax
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x177d
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 + 8], ebx
mov dword [esp + 4], str.Waiting_for_disconnect_event_failed_with__d__errno__d_n
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x74]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov esi, dword [str.windows]
mov ecx, 5
sub esp, 0x10
mov ebx, eax
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 0x43ad00
mov dword [esp + 4], 0x1780
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.expected_failure_n
sete al
mov dword [esp], eax
call fcn.00465cf0
call fcn.00465eb0
call fcn.00465e90
test eax, eax
jne 0x43acd0
mov esi, dword [str.windows]
mov ecx, 5
mov edi, 0x470694
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.00465e60
jmp 0x43ad79
mov dword [esp + 4], 0x1781
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x40
sete al
mov dword [esp], eax
call fcn.00465cf0
call fcn.00465eb0
call fcn.00465e90
test eax, eax
jne 0x43ad40
mov dword [esp + 4], 0x1782
mov ebx, eax
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], str.Bytes_received_is__d_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 - 0x78]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov dword [ebp - 0x78], 0xffffffff
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_WSASocketW
sub esp, 0x18
mov dword [ebp - 0x7c], eax
mov dword [esp + 4], 0x1787
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__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x7c], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
cmp dword [ebp - 0x7c], 0xffffffff
je 0x43b490
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_WSASocketW
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], 0x178b
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__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
cmp edi, 0xffffffff
je 0x43b45d
mov dword [esp], str.127.0.0.1
xor ecx, ecx
mov eax, 2
lea esi, [ebp - 0x50]
mov word [ebp - 0x42], cx
mov dword [ebp - 0x4e], 0
mov dword [ebp - 0x4a], 0
mov dword [ebp - 0x46], 0
mov word [ebp - 0x50], ax
call sub.ws2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x4c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.ws2_32.dll_bind
sub esp, 0xc
mov dword [ebp - 0x94], eax
mov dword [esp + 4], 0x1792
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x94]
mov dword [esp + 4], str.failed_to_bind__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [ebp - 0x68], 0x10
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov dword [ebp - 0x94], eax
mov dword [esp + 4], 0x1796
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x94]
mov dword [esp + 4], str.failed_to_get_address__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.ws2_32.dll_listen
sub esp, 8
mov dword [ebp - 0x94], eax
mov dword [esp + 4], 0x1799
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x94]
mov dword [esp + 4], str.failed_to_listen__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x10
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
mov dword [ebp - 0x94], eax
mov dword [esp + 4], 0x179c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x94]
mov dword [esp + 4], str.failed_to_connect__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00465cf0
lea edx, [ebp - 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [ebp - 0x68], 0x10
call sub.ws2_32.dll_accept
sub esp, 0xc
mov dword [ebp - 0x78], eax
mov dword [esp + 4], 0x17a0
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__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x78], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
cmp dword [ebp - 0x78], 0xffffffff
je 0x43b452
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.test_message
mov dword [esp], eax
call sub.ws2_32.dll_send
lea eax, [ebp - 0x6c]
sub esp, 0x10
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x78]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x438080
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov esi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], 0xbb8
call eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 8
mov dword [esp], esi
mov dword [ebp - 0x94], eax
call eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], 0
sub esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
lea eax, [ebp - 0x40]
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], 0x420770
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x17ac
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
cmp esi, 0xffffffff
jne 0x43b1dc
xor eax, eax
cmp ecx, 0x3e5
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.WSARecv_failed____d_error__d_n
call fcn.00465cf0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.test_message
mov dword [esp], eax
call sub.ws2_32.dll_send
mov dword [0x478440], 0
sub esp, 0x10
mov dword [esp + 4], 1
mov dword [esp], 0x3e8
call dword [sym.imp.kernel32.dll_SleepEx]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x17b1
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__u_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x17b2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp dword [0x478440], 1
mov dword [esp + 4], str.completion_not_called_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
call eax
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x17b5
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0x102
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.got__u_n
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x17b8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.failed_to_create_completion_port__u_n
mov dword [ebp - 0x98], ecx
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x40]
mov dword [esp + 0x18], 0x420770
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [0x478440], 0
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov dword [ebp - 0x90], eax
mov dword [esp + 4], 0x17be
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x90]
mov edx, dword [ecx + 0x34]
cmp eax, 0xffffffff
jne 0x43b3fb
xor ebx, ebx
cmp edx, 0x2726
sete bl
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.WSARecv_failed____d_error__d_n
mov dword [esp], ebx
call fcn.00465cf0
mov dword [esp + 4], 0x17bf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov edx, dword [0x478440]
xor eax, eax
mov dword [esp + 4], str.completion_called_n
test edx, edx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
mov eax, dword [ebp - 0x94]
call eax
sub esp, 4
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov eax, dword [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x43b4b1
mov eax, dword [ebp - 0x7c]
cmp eax, 0xffffffff
je 0x43b478
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
sub esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x43b498
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x78]
cmp eax, 0xffffffff
jne 0x43b4b1
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.ws2_32.dll_WSACloseEvent
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x7c]
sub esp, 4
cmp eax, 0xffffffff
jne 0x43b46d
jmp 0x43b478
xor eax, eax
cmp ecx, 0x3e5
sete al
jmp 0x43abf2
xor eax, eax
cmp edx, 0x3e5
sete al
jmp 0x43ab75