Function at 0x4619a0
Capabilities:
Initialize winsock library
Link many functions at runtime
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.004e69c0
push 0x190
lea eax, [ebp - 0x3ec]
push 0
push eax
call fcn.004e69c0
push ebx
call fcn.004a73a0
add esp, 0x1c
test eax, eax
je 0x4619fb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
cmp dword [0x669ef4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
jne 0x461aaa
push str.Iphlpapi.dll
call esi
mov edi, eax
test edi, edi
je 0x461aaa
mov dword [ebp - 0x3f4], 1
push str.IcmpCreateFile
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCloseHandle
push edi
mov dword [ebp - 0x3f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpSendEcho
push edi
mov dword [ebp - 0x3f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3fc], eax
je 0x461a7b
cmp dword [ebp - 0x3f8], 0
je 0x461a7b
test eax, eax
jne 0x461bec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3f4], 0
je 0x461b25
push str.ICMP.DLL
call esi
mov edi, eax
test edi, edi
jne 0x461b8a
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x461f82
push str.ICMP.DLL
mov dword [ebp - 0x3f4], 0
call esi
mov edi, eax
test edi, edi
jne 0x461a2b
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.00424a90
push edi
push edi
call fcn.0047d960
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404200
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x461a2b
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.00424a90
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.00424a90
push 0
push 0
call fcn.0047d960
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404200
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x461b8a
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
call fcn.00424a90
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push edi
call esi
push str.IcmpCloseHandle
push edi
mov dword [ebp - 0x3f0], eax
call esi
push str.IcmpSendEcho
push edi
mov dword [ebp - 0x3f8], eax
call esi
cmp dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3fc], eax
je 0x461f7d
cmp dword [ebp - 0x3f8], 0
je 0x461f7d
test eax, eax
je 0x461f7d
xor eax, eax
cmp dword [ebp - 0x3f4], eax
setne al
mov dword [0x669ef4], eax
lea eax, [ebp - 0x3ec]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x461c0b
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x461f82
push ebx
call fcn.0045e530
add esp, 4
test eax, eax
je 0x461c28
push ebx
call fcn.0045e3a0
add esp, 4
mov esi, eax
jmp 0x461ccc
push 0x104
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.004a9a20
push 0x669ef8
call fcn.004a73a0
add esp, 0x1c
test eax, eax
jne 0x461ca1
lea eax, [ebp - 0x25c]
push 0x669df0
push eax
call fcn.004eeba8
add esp, 8
test eax, eax
jne 0x461ca1
push 0x104
lea eax, [ebp - 0x25c]
push 0x669ef8
push eax
call fcn.004a9a20
lea eax, [ebp - 0x25c]
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.00424fd0
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x461f56
mov eax, dword [eax + 0xc]
test eax, eax
je 0x461f56
mov eax, dword [eax]
test eax, eax
je 0x461f56
mov esi, dword [eax]
call dword [ebp - 0x3f0]
mov dword [ebp - 0x3f0], eax
cmp eax, 0xffffffff
jne 0x461ce7
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x461f82
push 0x80
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.004e69c0
push 0x9c
push 1
call fcn.004eea94
add esp, 0x14
mov dword [ebp - 0x3f4], eax
test eax, eax
je 0x461f1a
push dword [ebp + 0xc]
mov ecx, 0x80
mov dword [eax + 0x10], ebx
push 0x9c
push eax
push 0
push ecx
mov word [eax + 0xc], cx
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x3f0]
call dword [ebp - 0x3fc]
test eax, eax
je 0x461f08
mov eax, dword [ebp - 0x3f4]
mov edx, 1
push 0x50
push 0
mov ecx, dword [eax + 8]
test ecx, ecx
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x158]
cmove ecx, edx
push eax
mov dword [ebp - 0x3fc], ecx
call fcn.004e69c0
add esp, 0xc
cmp ebx, 0x2af9
ja 0x461db6
je 0x461dac
test ebx, ebx
jne case.0x461dcc.11023
push dword [ebp - 0x3f4]
xor eax, eax
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0x3fc]
call fcn.004eea9f
add esp, 4
jmp 0x461f2b
mov esi, str.Buffer_too_Small
jmp 0x461ec6
lea eax, [ebx - 0x2afa]
cmp eax, 0x30
ja case.0x461dcc.11023
movzx eax, byte [eax + 0x461ffc]
jmp dword [eax*4 + 0x461fa0]
mov esi, str.Dest_Network_Not_Reachable
jmp 0x461ed5
mov esi, str.Dest_Host_Not_Reachable
jmp 0x461ed5
mov esi, str.Dest_Protocol_Not_Reachable
jmp 0x461ec6
mov esi, str.Dest_Port_Not_Reachable
jmp 0x461ec6
mov esi, str.No_Resources_Available
jmp 0x461ec6
mov esi, str.Bad_Option
jmp 0x461ec6
mov esi, str.Hardware_Error
jmp 0x461ec6
mov esi, str.Packet_too_Big
jmp 0x461ec6
mov esi, str.Rqst_Timed_Out
jmp 0x461ec6
mov esi, str.Bad_Request
jmp 0x461ec6
mov esi, str.Bad_Route
jmp 0x461ec6
mov esi, str.TTL_Exprd_in_Transit
jmp 0x461ed5
mov esi, str.TTL_Exprd_Reassemb
jmp 0x461ec6
mov esi, str.Parameter_Problem
jmp 0x461ec6
mov esi, str.Source_Quench
jmp 0x461ec6
mov esi, str.Option_too_Big
jmp 0x461ec6
mov esi, str.Bad_Destination
jmp 0x461ec6
mov esi, str.Address_Deleted
jmp 0x461ec6
mov esi, str.Spec_MTU_Change
jmp 0x461ec6
mov esi, str.MTU_Change
jmp 0x461ec6
mov esi, str.Unload
jmp 0x461ec6
mov esi, str.General_Failure
jmp 0x461ec6
push ebx
lea eax, [ebp - 0x158]
push str.Undefined_error__ld
push eax
call fcn.00404200
add esp, 0xc
lea esi, [ebp - 0x158]
cmp ebx, 0x2b05
je 0x461ed5
mov eax, esi
cmp ebx, 0x2afb
je 0x461ed5
cmp ebx, 0x2afa
je 0x461ed5
push esi
push ebx
push str.:0:FYI:_A_strange_ping_failure_occurred:__ld___s.
call fcn.00424fd0
add esp, 0xc
push 0x100
push esi
push 0x66a710
call fcn.004a9a20
add esp, 0xc
mov eax, 0x66a710
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0x3fc]
push dword [ebp - 0x3f4]
call fcn.004eea9f
add esp, 4
jmp 0x461f2b
push dword [ebp - 0x3f4]
xor esi, esi
call fcn.004eea9f
add esp, 4
jmp 0x461f2b
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.00424a90
add esp, 8
xor esi, esi
push dword [ebp - 0x3f0]
call dword [ebp - 0x3f8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x25c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.00424fd0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.00424a90
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret