Function at 0x401738
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x6c], al
mov dword [ebp - 0x10], 0x186a0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4017b2
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.socket___error:_d_n
call sym._printf
jmp 0x401a6e
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4017e3
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Host_not_found:_s_n
call sym._printf
jmp 0x401a6e
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov word [srcIP.sin_zero], 2
mov word [ebp - 0x46], 0
mov ebx, dword [0x403008]
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_ntoa]
call eax
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._nPinging__s___s__with__d_bytes_of_data:_n
call sym._printf
mov dword [ebp - 0xc], 0
jmp 0x401977
cmp byte [ebp - 0x6c], 0
je 0x40184c
mov eax, dword [0x403004]
add eax, 1
mov dword [0x403004], eax
lea eax, [srcIP.sin_zero]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dbg.SendRequest(unsigned int, sockaddr_in*)
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dbg.WaitReply(unsigned int)
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40188e
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.select___error:_d_n
call sym._printf
jmp 0x401985
cmp dword [ebp - 0x2c], 0
jne 0x4018a9
add dword [ebp - 0x20], 1
mov dword [esp], str._nRequest_time_out.
call sym._printf
jmp 0x401973
lea eax, [ebp - 0x59]
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dbg.ReceiveReply(unsigned int, sockaddr_in*, unsigned char*)
mov dword [ebp - 0x30], eax
add dword [ebp - 0x1c], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jae 0x4018e4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
jbe 0x4018f2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x59]
movzx esi, al
mov ebx, dword [0x403008]
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_ntoa]
call eax
sub esp, 4
mov edx, eax
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], str._nReply_from__s:_bytes___d_time___ldms_TTL___d
call sym._printf
mov eax, dword [sym.imp.msvcrt.dll__kbhit]
call eax
test eax, eax
setne al
test al, al
je 0x401962
mov eax, dword [sym.imp.msvcrt.dll__getch]
call eax
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 2
sete al
test al, al
je 0x401973
jmp 0x401985
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0xc], 1
mov eax, dword [0x403004]
cmp dword [ebp - 0xc], eax
jl 0x401839
mov dword [esp], 0x4040d1
call sym._puts
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_ntoa]
call eax
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], str.Ping_statistics_for__s:_n
call sym._printf
fild dword [ebp - 0x20]
mov eax, dword [0x403004]
mov dword [ebp - 0x74], eax
fild dword [ebp - 0x74]
fdivp st(1)
fstp dword [ebp - 0x70]
fld dword [ebp - 0x70]
fld dword [0x40431c]
fmulp st(1)
mov eax, dword [0x403004]
fstp qword [esp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._Packets:_Sent___d__Received___d__Lost___d___.f___loss___n
call sym._printf
cmp dword [ebp - 0x20], 0
jne 0x401a32
mov dword [esp], str.Approximate_round_trip_times_in_milli_seconds:
call sym._puts
mov ecx, dword [0x403004]
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str._Mintime___dms__Maxtime___dms__Averagetime___dms_n
call sym._printf
mov dword [esp], 0x4040d1
call sym._puts
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x401a6e
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.closesocket___error:_d_n
call sym._printf
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret