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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x4cc8c0]
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.00466ad0
push 0x190
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.00466ad0
push ebx
call fcn.00451684
add esp, 0x1c
test eax, eax
je 0x42f7aa
xor eax, eax
jmp 0x42fb4a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x5b4fbc], edi
jne 0x42f854
push str.Iphlpapi.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x42f854
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 0x42f826
cmp dword [ebp - 0x3a8], edi
je 0x42f826
test eax, eax
jne 0x42f965
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3a4], edi
je 0x42f8bb
push str.ICMP.DLL
call esi
mov ebx, eax
test ebx, ebx
jne 0x42f905
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x42fb41
push str.ICMP.DLL
mov dword [ebp - 0x3a4], edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x42f7d8
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.0040d511
push edi
push edi
call fcn.0043e0cb
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.0040401c
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x42f7d8
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.0040d511
pop ecx
jmp 0x42fb46
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.0040d511
push edi
push edi
call fcn.0043e0cb
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.0040401c
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x42f905
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x42f8b0
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 0x42fb3c
cmp dword [ebp - 0x3a8], edi
je 0x42fb3c
test eax, eax
je 0x42fb3c
xor eax, eax
cmp dword [ebp - 0x3a4], eax
setne al
mov dword [0x5b4fbc], eax
lea eax, [ebp - 0x39c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42f984
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x42fb41
mov esi, dword [ebp - 0x3ac]
push esi
call fcn.0042cb8b
pop ecx
test eax, eax
je 0x42f9a1
push esi
call fcn.0042ca00
pop ecx
jmp 0x42fa43
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00452b01
push 0x5b4eb8
call fcn.00451684
add esp, 0x1c
test eax, eax
jne 0x42fa18
lea eax, [ebp - 0x20c]
push 0x5b4db0
push eax
call fcn.00470487
pop ecx
pop ecx
test eax, eax
jne 0x42fa18
push 0x104
lea eax, [ebp - 0x20c]
push 0x5b4eb8
push eax
call fcn.00452b01
lea eax, [ebp - 0x20c]
push eax
push esi
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0040d9e1
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x42fb26
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42fb26
mov eax, dword [eax]
test eax, eax
je 0x42fb26
mov eax, dword [eax]
mov dword [ebp - 0x3a4], eax
call dword [ebp - 0x3a0]
mov dword [ebp - 0x3b4], eax
cmp eax, 0xffffffff
jne 0x42fa64
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x42fb41
mov eax, 0x80
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.00466ad0
push 0x9c
push 1
call fcn.004701d4
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3a0], esi
test esi, esi
je 0x42fafc
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 0x42faf4
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.0042f2e9
xor edi, edi
test eax, eax
pop ecx
cmove edi, esi
mov esi, dword [ebp - 0x3a0]
push esi
call fcn.004701df
jmp 0x42fb09
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.0040d511
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 0x42fb49
lea eax, [ebp - 0x20c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0040d9e1
jmp 0x42f8b5
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.0040d511
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret