Function at 0x402ab0
Capabilities:
Send icmp echo request

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push ebx
mov ebx, dword [ebp + 0x1ac]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00477c40
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
je 0x402b30
call sub.iphlpapi.dll_IcmpCreateFile
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x402b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_Ping____IcmpCreatefile_returned_error:__ld_n
lea ecx, [ebp - 0x74]
push 0x104
push ecx
call fcn.00477bdc
lea edx, [ebp - 0x74]
push edx
call fcn.00401030
add esp, 0x14
mov eax, 0x80004005
jmp 0x402ce6
mov eax, dword [str.Data_Buffer]
mov ecx, dword [0x4939d0]
mov edx, dword [0x4939d4]
push 0x30
mov dword [ebp + 0x194], eax
mov dword [ebp + 0x198], ecx
mov dword [ebp + 0x19c], edx
call fcn.00477742
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x80], esi
jne 0x402b99
push str._ERROR_Ping____Out_of_memory_n
lea eax, [ebp - 0x74]
push 0x104
push eax
call fcn.00477bdc
lea ecx, [ebp - 0x74]
push ecx
call fcn.00401030
add esp, 0x10
mov eax, 0x80004005
jmp 0x402ce6
mov eax, dword [ebp - 0x78]
push 0x3e8
push 0x30
push esi
push 0
push 0xc
lea edx, [ebp + 0x194]
push edx
push edi
push 0
push 0
push 0
push eax
call sub.iphlpapi.dll_IcmpSendEcho2
test eax, eax
je 0x402c88
mov eax, dword [esi + 4]
sub eax, 0x2afa
je 0x402c79
sub eax, 1
je 0x402c6a
sub eax, 7
je 0x402c5b
call dword [0x4b0630]
test ebx, ebx
mov dword [ebp - 0x78], eax
je 0x402c33
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x402c33
lea eax, [edi + edi]
call fcn.00478cc0
mov esi, esp
test esi, esi
je 0x402c30
mov ecx, dword [ebp - 0x78]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push ecx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x80]
jmp 0x402c35
mov esi, dword [ebp - 0x80]
xor eax, eax
mov edx, dword [esi + 8]
push edx
push eax
push str._SUCCESS_Ping__s__Roundtrip_time___ld_ms_n
lea eax, [ebp - 0x74]
push 0x104
push eax
call fcn.00477bdc
lea ecx, [ebp - 0x74]
push ecx
call fcn.00401030
add esp, 0x18
jmp 0x402cda
push str._ERROR_Ping____IP_REQ_TIMED_OUT__Request_timed_out_
call fcn.00401030
add esp, 4
jmp 0x402cda
push str._ERROR_Ping____IP_DEST_HOST_UNREACHABLE__Destination_host_was_unreachable_
call fcn.00401030
add esp, 4
jmp 0x402cda
push str._ERROR_Ping____IP_DEST_NET_UNREACHABLE__Destination_Network_was_unreachable_
call fcn.00401030
add esp, 4
jmp 0x402cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x402cc6
sub ecx, 9
je 0x402cbf
push eax
push str._ERROR_Ping____GetLastError___:__ld_n
lea edx, [ebp - 0x74]
push 0x104
push edx
call fcn.00477bdc
lea eax, [ebp - 0x74]
push eax
call fcn.00401030
add esp, 0x14
jmp 0x402cd3
push str._ERROR_Ping____IP_REQ_TIMED_OUT__Request_timed_out
jmp 0x402ccb
push str._ERROR_Ping____IP_BUF_TOO_SMALL__ReplyBufferSize_to_small
call fcn.00401030
add esp, 4
mov dword [ebp - 0x7c], 0x80004005
push esi
call fcn.00477a90
mov eax, dword [ebp - 0x7c]
add esp, 4
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a0]
xor ecx, ebp
call fcn.00477bf8
add ebp, 0x1a4
mov esp, ebp
pop ebp
ret 4