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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x5345d0]
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.004b53e0
push 0x18e
lea eax, [ebp - 0x3aa]
push esi
push eax
mov word [ebp - 0x3ac], si
call fcn.004b53e0
add esp, 0x18
mov edx, edi
call fcn.0047c3ca
test eax, eax
jne 0x440cc5
cmp dword [0x62c0fc], esi
jne 0x44092e
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3b0], eax
jmp 0x440934
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x3b0], esi
jne 0x4409a9
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 0x4409b3
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.004178df
push esi
push esi
call fcn.0045e70f
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004b532e
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x4409b3
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.004178df
pop ecx
jmp 0x440cc4
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 0x440a0e
cmp dword [ebp - 0x3bc], 0
je 0x440a0e
test eax, eax
jne 0x440afc
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3b8], 0
je 0x440a42
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
jne 0x440a99
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x440cbf
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.004178df
push 0
push 0
call fcn.0045e70f
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004b532e
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 0x440a99
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x44099e
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 0x440cba
cmp dword [ebp - 0x3bc], ecx
je 0x440cba
cmp eax, ecx
je 0x440cba
xor eax, eax
cmp dword [ebp - 0x3b8], ecx
setne al
mov dword [0x62c0fc], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x440b1b
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x440cbf
mov ebx, dword [ebp - 0x3c0]
mov ecx, ebx
call fcn.00441ec9
test eax, eax
je 0x440b38
mov ecx, ebx
call fcn.0044226e
jmp 0x440bd8
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.004b53e0
mov edi, 0x104
push ebx
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.0047c3fc
mov esi, 0x62bff8
add esp, 0x10
mov edx, esi
call fcn.0047c3ca
test eax, eax
jne 0x440bac
lea eax, [ebp - 0x21c]
push 0x62bef0
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
jne 0x440bac
push esi
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.0047c3fc
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.00417db7
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x440ca4
mov eax, dword [eax + 0xc]
test eax, eax
je 0x440ca4
cmp dword [eax], 0
je 0x440ca4
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 0x440bf9
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x440cbf
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffaa
push eax
call fcn.004b53e0
lea ebx, [edi + 0x1c]
push ebx
push 1
call fcn.004b422c
mov esi, eax
add esp, 0x14
test esi, esi
je 0x440c73
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 0x440c69
mov ebx, dword [esi + 8]
test ebx, ebx
ja 0x440c5d
xor ebx, ebx
inc ebx
mov edi, dword [esi + 4]
call fcn.00440cd6
test eax, eax
je 0x440c6b
xor ebx, ebx
push esi
call fcn.004b4080
jmp 0x440c82
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.004178df
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 0x440cc7
lea eax, [ebp - 0x21c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.00417db7
jmp 0x4409a3
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.004178df
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret