Function at 0x42e7d0
Capabilities:
Create raw socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce4
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x7d0], esi
call fcn.00458acc
and eax, 0xffff
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x7c8], eax
lea eax, [ebp - 0xce3]
push ebx
push eax
mov dword [ebp - 0x7cc], ebx
mov byte [ebp - 0xce4], bl
call fcn.00405300
add esp, 0xc
cmp esi, ebx
jne 0x42e846
push str.ProbeForSubnet:_invalid_parameter
push 1
call fcn.004343f0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x7c4]
push ecx
push 0x202
call dword [0x46536c]
cmp eax, ebx
je 0x42e87e
push eax
push str.ProbeForSubnet:_WSAStartup_failed__error__d
push 1
call fcn.004343f0
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push edi
push 1
push 3
push 2
call dword [0x465390]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e8bb
call dword [0x4651b0]
push eax
push str.ProbeForSubnet:_Could_not_create_socket__error__d
push 1
call fcn.004343f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.ProbeForSubnet:_socket_created
push 0x10
call fcn.004343f0
mov ax, word [ebp + 8]
xor ecx, ecx
add esp, 8
mov edx, 0xffffc0a8
cmp ax, dx
setne cl
dec ecx
and ecx, 2
mov esi, ecx
cmp esi, 0x100
jge 0x42e90e
movsx ebx, ax
shl ebx, 8
nop
mov edx, ebx
or edx, esi
shl edx, 8
push edx
call dword [0x465370]
mov dword [ebp + esi*4 - 0xce4], eax
inc esi
cmp esi, 0x100
jl 0x42e8f0
push 0xffffff00
call dword [0x465370]
push eax
lea eax, [ebp - 0xce4]
push 0x100
push eax
call fcn.0042e5f0
add esp, 0xc
mov ebx, 0x100
lea esi, [ebp - 0xce4]
call fcn.0042e5a0
xor eax, eax
mov dword [ebp - 0x7d4], eax
jmp 0x42e950
lea ebx, [ebp + eax*4 - 0xce4]
mov eax, dword [ebx]
test eax, eax
je 0x42eb76
push eax
call dword [0x465374]
and eax, 0xffffff01
or eax, 1
push eax
call dword [0x465370]
push 0x40
lea ecx, [ebp - 0x634]
push 0
push ecx
mov esi, eax
mov dword [ebx], 0
call fcn.00405300
mov dx, word [ebp - 0x7c8]
mov ebx, dword [ebp - 0x7cc]
xor eax, eax
mov word [ebp - 0x630], dx
mov word [ebp - 0x632], ax
add esp, 0xc
mov eax, 0x40
lea edx, [ebp - 0x634]
mov byte [ebp - 0x634], 8
mov word [ebp - 0x62e], bx
call fcn.0042e770
push 0x10
mov word [ebp - 0x632], ax
xor eax, eax
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x40
lea eax, [ebp - 0x634]
push eax
mov ecx, 2
push edi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], esi
call dword [0x46538c]
cmp eax, 0x40
jne 0x42ec3e
mov ecx, dword [ebp - 0x7c8]
inc ebx
mov dword [ebp - 0x7cc], ebx
push ecx
dec ebx
push ebx
mov ebx, dword [0x465394]
push esi
call ebx
push eax
push str.ProbeForSubnet:_sent_ping:_sendto__s__seq__d__id__d
push 2
call fcn.004343f0
add esp, 0x14
lea edx, [ebp - 0x7e0]
push edx
push 0
push 0
lea eax, [ebp - 0x8e4]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x8e0], edi
mov dword [ebp - 0x8e4], 1
mov dword [ebp - 0x7e0], 3
mov dword [ebp - 0x7dc], 0
call dword [0x465388]
cmp eax, 0xffffffff
je 0x42eb5c
test eax, eax
je 0x42ec06
push str.ProbeForSubnet:_select_says_something_is_ready
push 0x10
call fcn.004343f0
add esp, 8
lea ecx, [ebp - 0x7d8]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0x60e
lea eax, [ebp - 0x634]
push eax
push edi
mov dword [ebp - 0x7d8], 0x10
call dword [0x465384]
test eax, eax
jle 0x42ebf0
cmp eax, 0x14
jb 0x42ebdf
movzx ecx, byte [ebp - 0x634]
and ecx, 0xf
add ecx, ecx
add ecx, ecx
lea edx, [ecx + 8]
cmp eax, edx
jl 0x42ebce
movzx eax, word [ebp + ecx - 0x62e]
movzx edx, byte [ebp + ecx - 0x634]
lea ebx, [ebp + ecx - 0x634]
movzx ecx, word [ebx + 4]
push eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
push eax
call dword [0x465394]
push eax
push str.ProbeForSubnet:_OnReceive:_from__s_type__d_id__d_seq__d
push 2
call fcn.004343f0
add esp, 0x18
cmp dword [ebp - 0x20], esi
jne 0x42ebb7
cmp byte [ebx], 0
jne 0x42ebb7
movzx ecx, word [ebx + 4]
cmp ecx, dword [ebp - 0x7c8]
jne 0x42ebb7
movzx edx, word [ebx + 6]
cmp edx, dword [ebp - 0x7cc]
jg 0x42ebb7
push str.ProbeForSubnet:_received_ICMP_reply
push 0x10
call fcn.004343f0
add esp, 8
jmp 0x42eb76
call dword [0x465380]
push eax
push esi
call ebx
push eax
push str.ProbeForSubnet:_socket_select___error_using_address__s:__d
push 1
call fcn.004343f0
add esp, 0x10
mov eax, dword [ebp - 0x7d4]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x7d4], eax
jl 0x42e950
push edi
call dword [0x46537c]
push str.ProbeForSubnet:_didnt_find_suitable_address_in_subnet
push 1
call fcn.004343f0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.ProbeForSubnet:_ICMP_reply_is_not_a_response_to_our_ping
push 2
call fcn.004343f0
mov ebx, dword [0x465394]
add esp, 8
jmp 0x42ec06
push str.ProbeForSubnet:_Packet_too_small_to_be_ICMP
push 2
call fcn.004343f0
add esp, 8
jmp 0x42ec06
push str.ProbeForSubnet:_Packet_too_small_to_be_IP
push 2
call fcn.004343f0
add esp, 8
jmp 0x42ec06
call dword [0x465380]
push eax
push str.ProbeForSubnet:_receive_failed:__d
push 2
call fcn.004343f0
add esp, 0xc
push esi
call ebx
push eax
push str.ProbeForSubnet:_Ping_timeout__using_address__s
push 2
call fcn.004343f0
mov eax, dword [ebp - 0x7d0]
add esp, 0xc
push edi
mov dword [eax], esi
call dword [0x46537c]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
call dword [0x4651b0]
push edi
mov ebx, eax
call dword [0x46537c]
cmp ebx, 0x2751
je 0x42ec6d
cmp ebx, 0x2743
je 0x42ec6d
push ebx
push str.ProbeForSubnet:_Cound_not_send_ping:_0x_08x
push 1
call fcn.004343f0
add esp, 0xc
push esi
call dword [0x465394]
push eax
push str.ProbeForSubnet:_OS_says_host_net_unreachable__so_assuming_okay_to_use__s
push 2
call fcn.004343f0
mov ecx, dword [ebp - 0x7d0]
add esp, 0xc
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret