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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x492840]
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.0043dc10
push 0x190
lea eax, [ebp - 0x39c]
push edi
push eax
call fcn.0043dc10
push ebx
call fcn.0042da83
add esp, 0x1c
test eax, eax
je 0x41ebdf
xor eax, eax
jmp 0x41ef7f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x57b38c], edi
jne 0x41ec89
push str.Iphlpapi.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x41ec89
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 0x41ec5b
cmp dword [ebp - 0x3a8], edi
je 0x41ec5b
test eax, eax
jne 0x41ed9a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3a4], edi
je 0x41ecf0
push str.ICMP.DLL
call esi
mov ebx, eax
test ebx, ebx
jne 0x41ed3a
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x41ef76
push str.ICMP.DLL
mov dword [ebp - 0x3a4], edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x41ec0d
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.0040906e
push edi
push edi
call fcn.00425158
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00403b2c
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x41ec0d
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.0040906e
pop ecx
jmp 0x41ef7b
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.0040906e
push edi
push edi
call fcn.00425158
push eax
lea eax, [ebp - 0x108]
push str._sICMP.DLL
push eax
call fcn.00403b2c
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x41ed3a
lea eax, [ebp - 0x108]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x41ece5
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 0x41ef71
cmp dword [ebp - 0x3a8], edi
je 0x41ef71
test eax, eax
je 0x41ef71
xor eax, eax
cmp dword [ebp - 0x3a4], eax
setne al
mov dword [0x57b38c], eax
lea eax, [ebp - 0x39c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41edb9
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x41ef76
mov esi, dword [ebp - 0x3ac]
push esi
call fcn.0041bfbe
pop ecx
test eax, eax
je 0x41edd6
push esi
call fcn.0041be33
pop ecx
jmp 0x41ee78
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ee2a
push 0x57b288
call fcn.0042da83
add esp, 0x1c
test eax, eax
jne 0x41ee4d
lea eax, [ebp - 0x20c]
push 0x57b180
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
jne 0x41ee4d
push 0x104
lea eax, [ebp - 0x20c]
push 0x57b288
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x20c]
push eax
push esi
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0040953d
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x41ef5b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41ef5b
mov eax, dword [eax]
test eax, eax
je 0x41ef5b
mov eax, dword [eax]
mov dword [ebp - 0x3a4], eax
call dword [ebp - 0x3a0]
mov dword [ebp - 0x3b4], eax
cmp eax, 0xffffffff
jne 0x41ee99
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x41ef76
mov eax, 0x80
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffaa
push eax
call fcn.0043dc10
push 0x9c
push 1
call fcn.00447314
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x3a0], esi
test esi, esi
je 0x41ef31
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 0x41ef29
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.0041e71e
xor edi, edi
test eax, eax
pop ecx
cmove edi, esi
mov esi, dword [ebp - 0x3a0]
push esi
call fcn.0044731f
jmp 0x41ef3e
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.0040906e
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 0x41ef7e
lea eax, [ebp - 0x20c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0040953d
jmp 0x41ecea
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.0040906e
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret