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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x59a240]
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.004e4da0
push 0x190
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.004e4da0
push ebx
call fcn.0049f486
add esp, 0x1c
test eax, eax
je 0x46392d
xor eax, eax
jmp 0x463ccd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x68365c], edi
jne 0x4639d7
push str.Iphlpapi.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x4639d7
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 0x4639a9
cmp dword [ebp - 0x3a8], edi
je 0x4639a9
test eax, eax
jne 0x463ae8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3a4], edi
je 0x463a3e
push str.ICMP.DLL
call esi
mov ebx, eax
test ebx, ebx
jne 0x463a88
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x463cc4
push str.ICMP.DLL
mov dword [ebp - 0x3a4], edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x46395b
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.004255b9
push edi
push edi
call fcn.0047cdb0
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404f28
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x46395b
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.004255b9
pop ecx
jmp 0x463cc9
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.004255b9
push edi
push edi
call fcn.0047cdb0
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00404f28
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x463a88
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x463a33
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 0x463cbf
cmp dword [ebp - 0x3a8], edi
je 0x463cbf
test eax, eax
je 0x463cbf
xor eax, eax
cmp dword [ebp - 0x3a4], eax
setne al
mov dword [0x68365c], eax
lea eax, [ebp - 0x39c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x463b07
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x463cc4
mov esi, dword [ebp - 0x3ac]
push esi
call fcn.0046096b
pop ecx
test eax, eax
je 0x463b24
push esi
call fcn.004607e0
pop ecx
jmp 0x463bc6
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a11a5
push 0x683450
call fcn.0049f486
add esp, 0x1c
test eax, eax
jne 0x463b9b
lea eax, [ebp - 0x20c]
push 0x683348
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
jne 0x463b9b
push 0x104
lea eax, [ebp - 0x20c]
push 0x683450
push eax
call fcn.004a11a5
lea eax, [ebp - 0x20c]
push eax
push esi
push str.:2:PingHost___s___is_using___s__instead_
call fcn.00425c08
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x463ca9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x463ca9
mov eax, dword [eax]
test eax, eax
je 0x463ca9
mov eax, dword [eax]
mov dword [ebp - 0x3a4], eax
call dword [ebp - 0x3a0]
mov dword [ebp - 0x3b4], eax
cmp eax, 0xffffffff
jne 0x463be7
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x463cc4
mov eax, 0x80
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.004e4da0
push 0x9c
push 1
call fcn.004ee464
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3a0], esi
test esi, esi
je 0x463c7f
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 0x463c77
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.0046346c
xor edi, edi
test eax, eax
pop ecx
cmove edi, esi
mov esi, dword [ebp - 0x3a0]
push esi
call fcn.004ee46f
jmp 0x463c8c
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.004255b9
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 0x463ccc
lea eax, [ebp - 0x20c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.00425c08
jmp 0x463a38
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.004255b9
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret