Function at 0x421100
Capabilities:
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x3a8]
push ebx
sub esp, 0x54c
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.ws2_32.dll_WSAStartup
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x3d8
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.WSAStartup___failed_unexpectedly:__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], str.localhost
call sub.ws2_32.dll_gethostbyname
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x3db
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.gethostbyname___failed_unexpectedly:__d_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.00465cf0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x538], eax
mov ebx, eax
lea edx, [ebx + 4]
mov eax, ebx
lea edi, [ebp - 0x51c]
mov ecx, 1
call fcn.00420e30
xor eax, eax
mov ecx, 0x5d
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x3e4
lea edi, [ebp - 0x51c]
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
lea ecx, [ebp - 0x51c]
mov dword [esp + 8], ecx
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.ws2_32.dll_WSADuplicateSocketA
sub esp, 0xc
test eax, eax
sete al
mov dword [esp + 4], str.WSADuplicateSocketA_should_have_worked_n
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea ecx, [ebp - 0x51c]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.ws2_32.dll_WSASocketA
sub esp, 0x18
mov dword [ebx + 8], eax
mov dword [esp + 4], 0x3e7
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov dword [esp + 4], str.expected____1_n
xor eax, eax
cmp dword [ebx + 8], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
xor eax, eax
mov ecx, 0x5d
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x3ea
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
lea eax, [ebp - 0x51c]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.ws2_32.dll_WSADuplicateSocketA
sub esp, 0xc
test eax, eax
sete al
mov dword [esp + 4], str.WSADuplicateSocketA_should_have_worked_n
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x51c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.ws2_32.dll_WSASocketA
sub esp, 0x18
mov dword [ebx + 0xc], eax
mov dword [esp + 4], 0x3ed
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov dword [esp + 4], str.expected____1_n
xor eax, eax
cmp dword [ebx + 0xc], 0xffffffff
setne al
add ebx, 0x10
mov dword [esp], eax
call fcn.00465cf0
lea eax, [ebp - 0x18]
cmp ebx, eax
jne 0x4211b0
mov eax, dword [ebp - 0x218]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.TEST
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x3f1
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_with_error__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 4
sete al
mov dword [esp], eax
call fcn.00465cf0
call sub.ws2_32.dll_WSACleanup
lea eax, [ebp - 0x3a8]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call sub.ws2_32.dll_WSAStartup
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x3f6
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.WSAStartup___failed_unexpectedly:__d_n
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.TEST
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x3fc
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov edi, eax
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.send_should_have_failed_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x3fd
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp edi, 0x2736
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.expected_10038__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], str.TEST
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x402
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov esi, eax
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.send_should_have_failed_n
sete al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0x403
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
cmp esi, 0x2736
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.expected_10038__got__d_n
xor esi, esi
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x530], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x534], eax
lea esi, [esi]
nop
xor edi, edi
mov dword [ebp - 0x520], 0x10
mov eax, dword [ebp - 0x530]
cmp edi, 2
je 0x421760
cmp edi, 3
je 0x421750
cmp edi, 1
je 0x421742
mov eax, dword [eax]
mov edx, dword [ebp - 0x534]
lea ecx, [ebp - 0x520]
mov dword [edx + 0x34], 0xdeadbeef
lea edx, [ebp - 0x51c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
mov ebx, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x417
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov dword [ebp - 0x52c], eax
call fcn.00465a80
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Test__d_:_getsockname_should_have_failed_n
mov dword [esp], eax
call fcn.00465cf0
cmp ebx, 0xffffffff
je 0x421700
add edi, 1
cmp edi, 4
jne 0x421552
add esi, 1
add dword [ebp - 0x530], 0x10
cmp esi, 0x20
jne 0x421550
mov ebx, dword [ebp - 0x538]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebx]
add ebx, 0x10
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebx - 0xc]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebx - 8]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebx - 4]
sub esp, 4
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
lea eax, [ebp - 0x18]
sub esp, 4
cmp ebx, eax
jne 0x421620
call sub.ws2_32.dll_WSACleanup
mov dword [esp + 4], 0x427
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov ebx, eax
call fcn.00465a80
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.expected_0__got__d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], 0xdeadbeef
call sub.ws2_32.dll_WSASetLastError
sub esp, 4
call sub.ws2_32.dll_WSACleanup
mov esi, eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], 0x42b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
mov ebx, eax
call fcn.00465a80
cmp esi, 0xffffffff
mov dword [esp + 0xc], ebx
sete dl
xor eax, eax
cmp ebx, 0x276d
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.WSACleanup_returned__d_WSAGetLastError_is__d_n
and eax, edx
mov dword [esp], eax
call fcn.00465cf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x419
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x52c]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Test__d_:_expected_10038__got__d_n
cmp eax, 0x2736
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
jmp 0x4215f1
mov eax, dword [eax + 8]
jmp 0x42157f
mov eax, dword [eax + 0xc]
jmp 0x42157f
mov eax, dword [eax + 4]
jmp 0x42157f