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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x496980]
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.00440bf0
push 0x190
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.00440bf0
push ebx
call fcn.0042dd5b
add esp, 0x1c
test eax, eax
je 0x420a83
xor eax, eax
jmp 0x420e23
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x57f674], edi
jne 0x420b2d
push str.Iphlpapi.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x420b2d
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 0x420aff
cmp dword [ebp - 0x3a8], edi
je 0x420aff
test eax, eax
jne 0x420c3e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3a4], edi
je 0x420b94
push str.ICMP.DLL
call esi
mov ebx, eax
test ebx, ebx
jne 0x420bde
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x420e1a
push str.ICMP.DLL
mov dword [ebp - 0x3a4], edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x420ab1
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.0040d324
push edi
push edi
call fcn.0042734e
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404d0d
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x420ab1
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.0040d324
pop ecx
jmp 0x420e1f
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.0040d324
push edi
push edi
call fcn.0042734e
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404d0d
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x420bde
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x420b89
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 0x420e15
cmp dword [ebp - 0x3a8], edi
je 0x420e15
test eax, eax
je 0x420e15
xor eax, eax
cmp dword [ebp - 0x3a4], eax
setne al
mov dword [0x57f674], eax
lea eax, [ebp - 0x39c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x420c5d
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x420e1a
mov esi, dword [ebp - 0x3ac]
push esi
call fcn.0041dcc7
pop ecx
test eax, eax
je 0x420c7a
push esi
call fcn.0041db3c
pop ecx
jmp 0x420d1c
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00440bf0
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042f204
push 0x57f570
call fcn.0042dd5b
add esp, 0x1c
test eax, eax
jne 0x420cf1
lea eax, [ebp - 0x20c]
push 0x57f468
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
jne 0x420cf1
push 0x104
lea eax, [ebp - 0x20c]
push 0x57f570
push eax
call fcn.0042f204
lea eax, [ebp - 0x20c]
push eax
push esi
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0040d7f3
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x420dff
mov eax, dword [eax + 0xc]
test eax, eax
je 0x420dff
mov eax, dword [eax]
test eax, eax
je 0x420dff
mov eax, dword [eax]
mov dword [ebp - 0x3a4], eax
call dword [ebp - 0x3a0]
mov dword [ebp - 0x3b4], eax
cmp eax, 0xffffffff
jne 0x420d3d
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x420e1a
mov eax, 0x80
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.00440bf0
push 0x9c
push 1
call fcn.0044a2f4
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3a0], esi
test esi, esi
je 0x420dd5
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 0x420dcd
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.004205c2
xor edi, edi
test eax, eax
pop ecx
cmove edi, esi
mov esi, dword [ebp - 0x3a0]
push esi
call fcn.0044a2ff
jmp 0x420de2
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.0040d324
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 0x420e22
lea eax, [ebp - 0x20c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0040d7f3
jmp 0x420b8e
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.0040d324
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret