Function at 0x450754
Capabilities:
Check for time delay via gettickcount
Create raw socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x2b0
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x22c], eax
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4507a5
push str.WSAStartup_Error
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor eax, eax
jmp 0x450a98
push ebx
push esi
push 0x10
xor ebx, ebx
push ebx
push 0x485c44
call fcn.00452e00
push 0x10
push ebx
push 0x485df0
call fcn.00452e00
push 0x408
push ebx
mov esi, 0x485828
push esi
call fcn.00452e00
mov eax, dword [ebp + 0x23c]
add esp, 0x24
push ebx
push ebx
push ebx
push 1
push 3
push 2
mov dword [ebp - 0x70], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x485c40], eax
cmp eax, 0xffffffff
jne 0x45081b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASocket__d
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x450a96
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x70]
push ecx
push 0x1006
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
jne 0x45084b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.failed_to_set_recv_Ping_Timeout:__d
jmp 0x450a72
push 4
lea eax, [ebp - 0x70]
push eax
push 0x1005
push 0xffff
push dword [0x485c40]
call edi
cmp eax, 0xffffffff
jne 0x450879
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.failed_to_set_send_Ping_Timeout:__d
jmp 0x450a72
push dword [ebp - 0x6c]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x450a66
mov eax, dword [edi + 0xc]
cmp dword [eax], ebx
je 0x4508af
movzx ecx, word [edi + 0xa]
cmp cx, bx
jle 0x4508af
movsx ecx, cx
push ecx
push dword [eax]
push 0x485c48
call fcn.00452790
add esp, 0xc
mov ax, word [edi + 8]
mov word [0x485c44], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x20
movzx edi, ax
push 0x45
push 0x485830
mov dword [ebp - 0x6c], edi
call fcn.00452e00
xor eax, eax
inc eax
push 0x28
push esi
mov word [0x485828], 8
mov word [0x48582c], di
mov word [0x48582e], ax
call fcn.0044ec00
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x14
mov word [0x48582a], ax
call edi
push 0x10
push 0x485c44
push ebx
push 0x28
push esi
push dword [0x485c40]
mov dword [ebp - 0x74], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x450935
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.echo_request_failed:__d
jmp 0x450a72
mov ecx, dword [0x485c40]
mov dword [ebp + 0x12c], ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
xor eax, eax
inc eax
lea ecx, [ebp + 0x128]
push ecx
push eax
mov dword [ebp + 0x128], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
je 0x450a3a
cmp eax, 0xffffffff
je 0x450a43
lea eax, [ebp - 0x78]
push eax
push 0x485df0
push ebx
push 0x400
push esi
push dword [0x485c40]
mov dword [ebp - 0x78], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
call edi
mov edi, eax
cmp esi, 0xffffffff
jne 0x4509b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recvfrom_failed:__d
jmp 0x450a72
mov eax, dword [0x485828]
and eax, 0xf
lea ecx, [eax*4 + 8]
cmp esi, ecx
jge 0x4509de
push dword [0x485df4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Too_few_bytes_from__s
jmp 0x450a72
mov cl, byte [eax*4 + 0x485828]
cmp cl, bl
je 0x4509f4
movzx eax, cl
push eax
push str.non_echo_type_received:__d
jmp 0x450a72
mov cx, word [ebp - 0x6c]
cmp word [eax*4 + 0x48582c], cx
je 0x450a19
mov eax, dword [0x481960]
cmp eax, ebx
je 0x450a81
push str.someone_elses_packet
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x450a81
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
sub eax, dword [ebp - 0x74]
cmp eax, 1
jge 0x450a95
xor eax, eax
inc eax
jmp 0x450a95
xor eax, eax
mov ecx, str.Timed_Out
jmp 0x450a4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x464a50
push eax
push ecx
push str.ping_request_failed:__s___d_
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x450a81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.failed_to_gethostbyname:__d
push dword [0x481960]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [0x485c40]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00452dee
add ebp, 0x230
leave
ret 8