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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x113]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x3c0], edi
mov byte [ebp - 0x114], 0
call fcn.005117f0
push 0x18e
lea eax, [ebp - 0x3aa]
push esi
push eax
mov word [ebp - 0x3ac], si
call fcn.005117f0
add esp, 0x18
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x462e94
cmp dword [0x6c283c], esi
jne 0x462afd
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3b0], eax
jmp 0x462b03
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x3b0], esi
jne 0x462b78
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ICMP.DLL
mov dword [ebp - 0x3b8], esi
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x462b82
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.004265da
push esi
push esi
call fcn.00489f49
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.00511173
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x462b82
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.004265da
pop ecx
jmp 0x462e93
mov dword [ebp - 0x3b8], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push dword [ebp - 0x3b0]
call esi
mov ebx, str.IcmpCloseHandle
push ebx
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], eax
call esi
mov edi, str.IcmpSendEcho
push edi
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3bc], eax
call esi
cmp dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3c4], eax
je 0x462bdd
cmp dword [ebp - 0x3bc], 0
je 0x462bdd
test eax, eax
jne 0x462ccb
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3b8], 0
je 0x462c11
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
jne 0x462c68
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x462e8e
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.004265da
push 0
push 0
call fcn.00489f49
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.00511173
add esp, 0x1c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
jne 0x462c68
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x462b6d
push str.IcmpCreateFile
push dword [ebp - 0x3b0]
call esi
push ebx
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], eax
call esi
push edi
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3bc], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x3b4], ecx
mov dword [ebp - 0x3c4], eax
je 0x462e89
cmp dword [ebp - 0x3bc], ecx
je 0x462e89
cmp eax, ecx
je 0x462e89
xor eax, eax
cmp dword [ebp - 0x3b8], ecx
setne al
mov dword [0x6c283c], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x462cea
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x462e8e
mov ebx, dword [ebp - 0x3c0]
mov ecx, ebx
call fcn.004673ed
test eax, eax
je 0x462d07
mov ecx, ebx
call fcn.00467c70
jmp 0x462da7
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.005117f0
mov edi, 0x104
push ebx
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.004c3b66
mov esi, 0x6bfab0
add esp, 0x10
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x462d7b
lea eax, [ebp - 0x21c]
push 0x6bf9a8
push eax
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
jne 0x462d7b
push esi
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.004c3b66
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.00426c01
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x462e73
mov eax, dword [eax + 0xc]
test eax, eax
je 0x462e73
cmp dword [eax], 0
je 0x462e73
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x3b8], eax
call dword [ebp - 0x3b4]
cmp eax, 0xffffffff
mov dword [ebp - 0x3b4], eax
jne 0x462dc8
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x462e8e
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffaa
push eax
call fcn.005117f0
lea ebx, [edi + 0x1c]
push ebx
push 1
call fcn.00511988
mov esi, eax
add esp, 0x14
test esi, esi
je 0x462e42
push dword [ebp + 8]
mov eax, dword [ebp - 0x3c0]
push ebx
push esi
push 0
push edi
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x3b8]
mov word [esi + 0xc], di
push dword [ebp - 0x3b4]
call dword [ebp - 0x3c4]
test eax, eax
je 0x462e38
mov ebx, dword [esi + 8]
test ebx, ebx
ja 0x462e2c
xor ebx, ebx
inc ebx
mov edi, dword [esi + 4]
call fcn.00462ea5
test eax, eax
je 0x462e3a
xor ebx, ebx
push esi
call fcn.00511758
jmp 0x462e51
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.004265da
pop ecx
xor ebx, ebx
pop ecx
push dword [ebp - 0x3b4]
call dword [ebp - 0x3bc]
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
mov eax, ebx
jmp 0x462e96
lea eax, [ebp - 0x21c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.00426c01
jmp 0x462b72
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.004265da
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret