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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x5385d0]
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.004b7880
push 0x18e
lea eax, [ebp - 0x3aa]
push esi
push eax
mov word [ebp - 0x3ac], si
call fcn.004b7880
add esp, 0x18
mov edx, edi
call fcn.0047ebaf
test eax, eax
jne 0x442bea
cmp dword [0x630104], esi
jne 0x442853
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3b0], eax
jmp 0x442859
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x3b0], esi
jne 0x4428ce
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 0x4428d8
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.00418e96
push esi
push esi
call fcn.00460e8a
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004b77ce
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x4428d8
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.00418e96
pop ecx
jmp 0x442be9
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 0x442933
cmp dword [ebp - 0x3bc], 0
je 0x442933
test eax, eax
jne 0x442a21
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3b8], 0
je 0x442967
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
jne 0x4429be
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x442be4
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.00418e96
push 0
push 0
call fcn.00460e8a
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004b77ce
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 0x4429be
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x4428c3
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 0x442bdf
cmp dword [ebp - 0x3bc], ecx
je 0x442bdf
cmp eax, ecx
je 0x442bdf
xor eax, eax
cmp dword [ebp - 0x3b8], ecx
setne al
mov dword [0x630104], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x442a40
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x442be4
mov ebx, dword [ebp - 0x3c0]
mov ecx, ebx
call fcn.00443dee
test eax, eax
je 0x442a5d
mov ecx, ebx
call fcn.00444193
jmp 0x442afd
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.004b7880
mov edi, 0x104
push ebx
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.0047ebe1
mov esi, 0x630000
add esp, 0x10
mov edx, esi
call fcn.0047ebaf
test eax, eax
jne 0x442ad1
lea eax, [ebp - 0x21c]
push 0x62fef8
push eax
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
jne 0x442ad1
push esi
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.0047ebe1
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0041936e
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x442bc9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x442bc9
cmp dword [eax], 0
je 0x442bc9
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 0x442b1e
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x442be4
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffaa
push eax
call fcn.004b7880
lea ebx, [edi + 0x1c]
push ebx
push 1
call fcn.004b66ca
mov esi, eax
add esp, 0x14
test esi, esi
je 0x442b98
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 0x442b8e
mov ebx, dword [esi + 8]
test ebx, ebx
ja 0x442b82
xor ebx, ebx
inc ebx
mov edi, dword [esi + 4]
call fcn.00442bfb
test eax, eax
je 0x442b90
xor ebx, ebx
push esi
call fcn.004b651e
jmp 0x442ba7
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.00418e96
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 0x442bec
lea eax, [ebp - 0x21c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0041936e
jmp 0x4428c8
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.00418e96
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret