Function at 0x45bb80
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x178], 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]
mov ecx, 1
lea edx, [ebp - 0x17c]
mov dword [ebp - 0x160], 5
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x16d]
sub esp, 0x10
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x180]
call fcn.00420e30
lea eax, [ebp - 0x144]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x144], 1
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 1
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x17c]
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x16d]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2b75
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2b76
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x2733
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 eax, [ebp - 0x178]
mov dword [ebp - 0x158], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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], 0x2b7b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2b7c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x2733
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], 0x2b7d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], str.got_status__x_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x16d], 0
mov byte [ebp - 0x169], 0
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x158]
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
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], 0x2b86
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2b87
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x3e5
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x180]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x18c], edi
call edi
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2b89
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0x102
mov dword [esp + 4], str.expected_timeout_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2b8c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 4
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x180]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call edi
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2b8f
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.wait_timed_out_n
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov dword [ebp - 0x198], eax
call eax
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2b91
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 + 4], str.got_error__u_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2b92
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x174]
mov dword [esp + 4], str.got_size__u_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], 0x2b93
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
lea eax, [ebp - 0x16d]
shr eax, 0x10
mov dword [ebp - 0x194], eax
je 0x45d360
mov ebx, dword [ebp - 0x174]
lea eax, [ebp - 0x16d]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x45c1a4
mov edx, ebx
cmp ebx, 0xffffffff
je 0x45d444
lea ecx, [ebp - 0x16d]
mov byte [ebp - 0x144], 0x22
lea eax, [ebp - 0x143]
lea esi, [ebp - 0x21]
mov dword [ebp - 0x19c], ecx
lea ebx, [edx - 1]
test edx, edx
jle 0x45c177
cmp eax, esi
ja 0x45c177
add dword [ebp - 0x19c], 1
mov ecx, dword [ebp - 0x19c]
movzx edx, byte [ecx - 1]
cmp dl, 0xd
je 0x45d2b3
jg 0x45d015
cmp dl, 9
je 0x45d2a0
cmp dl, 0xa
jne 0x45d260
mov ecx, 0x6e5c
add eax, 2
mov edx, ebx
mov word [eax - 2], cx
lea esi, [esi]
nop
lea ebx, [edx - 1]
test edx, edx
jg 0x45c123
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x45c191
mov esi, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], si
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00466a20
mov edx, eax
mov ecx, 5
lea esi, [ebp - 0x16d]
mov edi, str.data
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], edx
mov dword [esp + 4], str.got__s_n
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
mov esi, dword [ebp - 0x190]
mov dword [ebp - 0x16d], 0
mov dword [ebp - 0x148], esi
mov byte [ebp - 0x169], 0
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x158]
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
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], 0x2b9c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2b9d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x3e5
mov dword [esp + 4], str.got_error__u_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov edi, dword [ebp - 0x18c]
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2b9f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0x102
mov dword [esp + 4], str.expected_timeout_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2ba2
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 4
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x3e8
mov dword [esp], esi
call edi
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2ba5
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.wait_timed_out_n
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
mov eax, dword [ebp - 0x198]
call eax
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2ba7
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], ebx
mov dword [esp + 4], str.got_error__u_n
mov dword [esp + 8], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2ba8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x174]
mov dword [esp + 4], str.got_size__u_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], 0x2ba9
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ebx, dword [ebp - 0x194]
test ebx, ebx
je 0x45d330
mov ebx, dword [ebp - 0x174]
lea eax, [ebp - 0x16d]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x45c528
mov edx, ebx
cmp ebx, 0xffffffff
je 0x45d423
lea ecx, [ebp - 0x16d]
mov byte [ebp - 0x144], 0x22
lea eax, [ebp - 0x143]
lea esi, [ebp - 0x21]
mov dword [ebp - 0x19c], ecx
lea ebx, [edx - 1]
test edx, edx
jle 0x45c4fb
lea esi, [esi]
cmp eax, esi
ja 0x45c4fb
add dword [ebp - 0x19c], 1
mov ecx, dword [ebp - 0x19c]
movzx edx, byte [ecx - 1]
cmp dl, 0xd
je 0x45d213
jg 0x45d040
cmp dl, 9
je 0x45d230
cmp dl, 0xa
jne 0x45d1d3
mov ecx, 0x6e5c
add eax, 2
mov edx, ebx
mov word [eax - 2], cx
lea ebx, [edx - 1]
test edx, edx
jg 0x45c4b0
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x45c515
mov ebx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], bx
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00466a20
mov edx, eax
mov ecx, 5
lea esi, [ebp - 0x16d]
mov edi, str.data
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], edx
mov dword [esp + 4], str.got__s_n
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2baf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 4
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x158]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x16d], 0
mov byte [ebp - 0x169], 0
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x2bb3
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, 1
test esi, esi
jne 0x45d390
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.got_error__u_n
call fcn.00465cf0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
mov eax, dword [ebp - 0x18c]
call eax
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x2bb5
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.wait_timed_out_n
sete al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
mov eax, dword [ebp - 0x198]
call eax
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2bb7
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 + 4], str.got_error__u_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2bb8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x174]
mov dword [esp + 4], str.got_size__u_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], 0x2bb9
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je 0x45d300
mov ebx, dword [ebp - 0x174]
lea eax, [ebp - 0x16d]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x45c828
mov edx, ebx
cmp ebx, 0xffffffff
je 0x45d402
lea ecx, [ebp - 0x16d]
mov byte [ebp - 0x144], 0x22
lea eax, [ebp - 0x143]
lea esi, [ebp - 0x21]
mov dword [ebp - 0x19c], ecx
lea ebx, [edx - 1]
test edx, edx
jle 0x45c7fb
lea esi, [esi]
nop
cmp eax, esi
ja 0x45c7fb
add dword [ebp - 0x19c], 1
mov ecx, dword [ebp - 0x19c]
movzx edx, byte [ecx - 1]
cmp dl, 0xd
je 0x45d190
jg 0x45d065
cmp dl, 9
je 0x45d1a3
cmp dl, 0xa
jne 0x45d133
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
lea ebx, [edx - 1]
test edx, edx
jg 0x45c7b0
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x45c815
mov edi, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], di
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00466a20
mov edx, eax
mov ecx, 5
lea esi, [ebp - 0x16d]
mov edi, str.data
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], edx
lea edi, [ebp - 0x168]
mov dword [esp + 4], str.got__s_n
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x17c]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
xor ecx, ecx
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x180]
sub esp, 4
call fcn.00420e30
lea eax, [ebp - 0x144]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x144], 1
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 1
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x17c]
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
lea eax, [ebp - 0x16d]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x2bc7
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2bc8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x2733
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 eax, [ebp - 0x178]
mov dword [ebp - 0x158], 0xdeadbeef
sub esp, 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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], 0x2bcd
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x2bce
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
cmp eax, 0x2733
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], 0x2bcf
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], str.got_status__x_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x180]
mov esi, dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x168], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x45af70
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov ebx, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xc8
call eax
sub esp, 8
mov dword [ebp - 0x19c], eax
mov dword [esp + 4], 0x2bd8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x19c]
mov dword [esp + 4], str.expected_timeout_n
cmp eax, 0x102
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov dword [ebp - 0x19c], eax
mov dword [esp + 4], 0x2bdb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x19c]
mov dword [esp + 4], str.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], ebx
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xc8
call eax
sub esp, 8
mov dword [ebp - 0x19c], eax
mov dword [esp + 4], 0x2bde
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x19c]
mov dword [esp + 4], str.wait_timed_out_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x180]
sub esp, 4
mov dword [ebp - 0x164], ecx
mov dword [esp + 0xc], edi
mov dword [ebp - 0x168], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x45af70
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov esi, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xc8
call eax
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x2be8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp edi, 0x102
mov dword [esp + 4], str.expected_timeout_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.data
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x2beb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp edi, 4
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xc8
call eax
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x2bee
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test edi, edi
mov dword [esp + 4], str.wait_timed_out_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call ebx
mov eax, dword [ebp - 0x17c]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
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], 0x2bf4
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.got__d_n
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x158]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x16d], 0
mov byte [ebp - 0x169], 0
call sub.ws2_32.dll_WSARecv
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x2bf8
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.got__d_n
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x174]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
mov eax, dword [ebp - 0x198]
call eax
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x2bfa
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], 0x2bfb
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x174]
mov dword [esp + 4], str.got_size__u_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], 0x2bfc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov esi, dword [ebp - 0x194]
test esi, esi
je 0x45d2d0
mov esi, dword [ebp - 0x174]
lea eax, [ebp - 0x16d]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x45cfaa
mov edx, esi
cmp esi, 0xffffffff
je 0x45d3e0
mov byte [ebp - 0x144], 0x22
lea eax, [ebp - 0x143]
lea ecx, [ebp - 0x16d]
mov dword [ebp - 0x18c], ebx
lea esi, [edx - 1]
test edx, edx
jle 0x45cf77
lea edi, [ebp - 0x21]
cmp eax, edi
ja 0x45cf77
add ecx, 1
movzx ebx, byte [ecx - 1]
cmp bl, 0xd
je 0x45d0f0
jg 0x45d090
cmp bl, 9
je 0x45d120
cmp bl, 0xa
jne 0x45d0b0
mov ebx, 0x6e5c
add eax, 2
mov edx, esi
mov word [eax - 2], bx
nop
lea esi, [edx - 1]
test edx, edx
jg 0x45cf31
mov ebx, dword [ebp - 0x18c]
mov byte [eax], 0x22
lea edx, [eax + 1]
test esi, esi
jle 0x45cf97
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00466a20
mov edx, eax
mov ecx, 5
lea esi, [ebp - 0x16d]
mov edi, str.data
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 8], edx
mov dword [esp + 4], str.got__s_n
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x17c]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp - 0x148]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dl, 0x22
je 0x45d243
cmp dl, 0x5c
jne 0x45d260
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
jmp 0x45c170
cmp dl, 0x22
je 0x45d1c0
cmp dl, 0x5c
jne 0x45d1d3
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
jmp 0x45c4f4
cmp dl, 0x22
je 0x45d173
cmp dl, 0x5c
jne 0x45d133
mov edi, 0x5c5c
add eax, 2
mov edx, ebx
mov word [eax - 2], di
jmp 0x45c7f4
cmp bl, 0x22
je 0x45d103
cmp bl, 0x5c
jne 0x45d0b0
mov edx, 0x5c5c
add eax, 2
mov word [eax - 2], dx
mov edx, esi
jmp 0x45cf70
lea edx, [ebx - 0x20]
cmp dl, 0x5e
jbe 0x45d3a5
mov edx, ebx
mov edi, 0x785c
add eax, 4
shr dl, 4
mov word [eax - 4], di
mov edi, ebx
movzx edx, dl
and edi, 0xf
movzx edx, byte [edx + str.0123456789abcdef]
mov byte [eax - 2], dl
movzx edx, byte [edi + str.0123456789abcdef]
mov byte [eax - 1], dl
mov edx, esi
jmp 0x45cf70
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
mov edx, esi
jmp 0x45cf70
mov ebx, 0x225c
add eax, 2
mov edx, esi
mov word [eax - 2], bx
jmp 0x45cf70
mov edi, 0x745c
add eax, 2
mov edx, esi
mov word [eax - 2], di
jmp 0x45cf70
lea edi, [edx - 0x20]
mov ecx, edi
cmp cl, 0x5e
jbe 0x45d3b1
mov ecx, 0x785c
add eax, 4
mov word [eax - 4], cx
mov ecx, edx
and edx, 0xf
shr cl, 4
movzx edx, byte [edx + str.0123456789abcdef]
movzx edi, cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [eax - 1], dl
mov edx, ebx
mov byte [eax - 2], cl
jmp 0x45c7f4
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
jmp 0x45c7f4
mov edi, 0x725c
add eax, 2
mov edx, ebx
mov word [eax - 2], di
jmp 0x45c7f4
mov ecx, 0x745c
add eax, 2
mov edx, ebx
mov word [eax - 2], cx
jmp 0x45c7f4
mov ecx, 0x225c
add eax, 2
mov edx, ebx
mov word [eax - 2], cx
jmp 0x45c4f4
lea edi, [edx - 0x20]
mov ecx, edi
cmp cl, 0x5e
jbe 0x45d3c0
mov ecx, edx
mov edi, 0x785c
and edx, 0xf
add eax, 4
shr cl, 4
mov word [eax - 4], di
movzx edx, byte [edx + str.0123456789abcdef]
movzx edi, cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [eax - 1], dl
mov edx, ebx
mov byte [eax - 2], cl
jmp 0x45c4f4
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
jmp 0x45c4f4
mov edi, 0x745c
add eax, 2
mov edx, ebx
mov word [eax - 2], di
jmp 0x45c4f4
mov ecx, 0x225c
add eax, 2
mov edx, ebx
mov word [eax - 2], cx
jmp 0x45c170
lea edi, [edx - 0x20]
mov ecx, edi
cmp cl, 0x5e
jbe 0x45d3d0
mov ecx, edx
mov edi, 0x785c
and edx, 0xf
add eax, 4
shr cl, 4
mov word [eax - 4], di
movzx edx, byte [edx + str.0123456789abcdef]
movzx edi, cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [eax - 1], dl
mov edx, ebx
mov byte [eax - 2], cl
jmp 0x45c170
mov edi, 0x745c
add eax, 2
mov edx, ebx
mov word [eax - 2], di
jmp 0x45c170
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
mov edx, ebx
jmp 0x45c170
lea eax, [ebp - 0x16d]
mov dword [esp], str._04x
mov dword [ebp - 0x18c], eax
movzx eax, word [ebp - 0x18c]
mov dword [esp + 4], eax
call fcn.00459840
mov edx, eax
jmp 0x45cfaa
lea eax, [ebp - 0x16d]
mov dword [esp], str._04x
mov dword [ebp - 0x19c], eax
movzx eax, word [ebp - 0x19c]
mov dword [esp + 4], eax
call fcn.00459840
mov edx, eax
jmp 0x45c828
lea eax, [ebp - 0x16d]
mov dword [esp], str._04x
mov dword [ebp - 0x19c], eax
movzx eax, word [ebp - 0x19c]
mov dword [esp + 4], eax
call fcn.00459840
mov edx, eax
jmp 0x45c528
lea eax, [ebp - 0x16d]
mov dword [esp], str._04x
mov dword [ebp - 0x19c], eax
movzx eax, word [ebp - 0x19c]
mov dword [esp + 4], eax
call fcn.00459840
mov edx, eax
jmp 0x45c1a4
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
sete al
movzx eax, al
jmp 0x45c638
mov byte [eax], bl
mov edx, esi
add eax, 1
jmp 0x45cf70
mov byte [eax], dl
add eax, 1
mov edx, ebx
jmp 0x45c7f4
mov byte [eax], dl
add eax, 1
mov edx, ebx
jmp 0x45c4f4
mov byte [eax], dl
add eax, 1
mov edx, ebx
jmp 0x45c170
xor edx, edx
cmp byte [ebp - 0x16d], 0
je 0x45cf11
nop
add edx, 1
cmp byte [ebp + edx - 0x16d], 0
jne 0x45d3f0
jmp 0x45cf11
xor edx, edx
cmp byte [ebp - 0x16d], 0
je 0x45c785
add edx, 1
cmp byte [ebp + edx - 0x16d], 0
jne 0x45d411
jmp 0x45c785
xor edx, edx
cmp byte [ebp - 0x16d], 0
je 0x45c48a
add edx, 1
cmp byte [ebp + edx - 0x16d], 0
jne 0x45d432
jmp 0x45c48a
xor edx, edx
cmp byte [ebp - 0x16d], 0
je 0x45c100
add edx, 1
cmp byte [ebp + edx - 0x16d], 0
jne 0x45d453
jmp 0x45c100