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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x104
xor edi, edi
mov dword [ebp - 0x3ac], ebx
push edi
push eax
call fcn.004c37f0
push 0x190
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.004c37f0
push ebx
call fcn.0048c30a
add esp, 0x1c
test eax, eax
je 0x451dff
xor eax, eax
jmp 0x45219f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x647ffc], edi
jne 0x451ea9
push str.Iphlpapi.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x451ea9
mov dword [ebp - 0x3a4], 1
push str.IcmpCreateFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCloseHandle
push ebx
mov dword [ebp - 0x3a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpSendEcho
push ebx
mov dword [ebp - 0x3a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3a0], edi
je 0x451e7b
cmp dword [ebp - 0x3a8], edi
je 0x451e7b
test eax, eax
jne 0x451fba
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3a4], edi
je 0x451f10
push str.ICMP.DLL
call esi
mov ebx, eax
test ebx, ebx
jne 0x451f5a
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x452196
push str.ICMP.DLL
mov dword [ebp - 0x3a4], edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x451e2d
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.0041c80a
push edi
push edi
call fcn.0046a855
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00403dd1
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x451e2d
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.0041c80a
pop ecx
jmp 0x45219b
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.0041c80a
push edi
push edi
call fcn.0046a855
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00403dd1
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x451f5a
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x451f05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push ebx
call esi
push str.IcmpCloseHandle
push ebx
mov dword [ebp - 0x3a0], eax
call esi
push str.IcmpSendEcho
push ebx
mov dword [ebp - 0x3a8], eax
call esi
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3a0], edi
je 0x452191
cmp dword [ebp - 0x3a8], edi
je 0x452191
test eax, eax
je 0x452191
xor eax, eax
cmp dword [ebp - 0x3a4], eax
setne al
mov dword [0x647ffc], eax
lea eax, [ebp - 0x39c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x451fd9
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x452196
mov esi, dword [ebp - 0x3ac]
push esi
call fcn.0044f0a3
pop ecx
test eax, eax
je 0x451ff6
push esi
call fcn.0044ef18
pop ecx
jmp 0x452098
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048dd2a
push 0x647ef8
call fcn.0048c30a
add esp, 0x1c
test eax, eax
jne 0x45206d
lea eax, [ebp - 0x20c]
push 0x647df0
push eax
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
jne 0x45206d
push 0x104
lea eax, [ebp - 0x20c]
push 0x647ef8
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x20c]
push eax
push esi
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0041cce9
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x45217b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45217b
mov eax, dword [eax]
test eax, eax
je 0x45217b
mov eax, dword [eax]
mov dword [ebp - 0x3a4], eax
call dword [ebp - 0x3a0]
mov dword [ebp - 0x3b4], eax
cmp eax, 0xffffffff
jne 0x4520b9
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x452196
mov eax, 0x80
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.004c37f0
push 0x9c
push 1
call fcn.004ccef4
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3a0], esi
test esi, esi
je 0x452151
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x3ac]
push 0x9c
push esi
push edi
mov dword [esi + 0x10], eax
mov eax, 0x80
push eax
mov word [esi + 0xc], ax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x3a4]
push dword [ebp - 0x3b4]
call dword [ebp - 0x3b0]
test eax, eax
je 0x452149
mov esi, dword [esi + 8]
test esi, esi
push 1
pop eax
cmove esi, eax
mov eax, dword [ebp - 0x3a0]
push dword [eax + 4]
call fcn.0045193e
xor edi, edi
test eax, eax
pop ecx
cmove edi, esi
mov esi, dword [ebp - 0x3a0]
push esi
call fcn.004cceff
jmp 0x45215e
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.0041c80a
pop ecx
pop ecx
push dword [ebp - 0x3b4]
call dword [ebp - 0x3a8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
mov eax, edi
jmp 0x45219e
lea eax, [ebp - 0x20c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0041cce9
jmp 0x451f0a
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.0041c80a
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret