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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x5f2e68]
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.005306b0
push 0x18e
lea eax, [ebp - 0x3aa]
push esi
push eax
mov word [ebp - 0x3ac], si
call fcn.005306b0
add esp, 0x18
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x46b812
cmp dword [0x6f0884], esi
jne 0x46b47b
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3b0], eax
jmp 0x46b481
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x3b0], esi
jne 0x46b4f6
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 0x46b500
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.0042b70b
push esi
push esi
call fcn.00493030
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.00531b2f
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x46b500
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.0042b70b
pop ecx
jmp 0x46b811
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 0x46b55b
cmp dword [ebp - 0x3bc], 0
je 0x46b55b
test eax, eax
jne 0x46b649
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3b8], 0
je 0x46b58f
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
jne 0x46b5e6
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x46b80c
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.0042b70b
push 0
push 0
call fcn.00493030
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.00531b2f
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 0x46b5e6
lea eax, [ebp - 0x114]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
jmp 0x46b4eb
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 0x46b807
cmp dword [ebp - 0x3bc], ecx
je 0x46b807
cmp eax, ecx
je 0x46b807
xor eax, eax
cmp dword [ebp - 0x3b8], ecx
setne al
mov dword [0x6f0884], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x46b668
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x46b80c
mov ebx, dword [ebp - 0x3c0]
mov ecx, ebx
call fcn.0046ff50
test eax, eax
je 0x46b685
mov ecx, ebx
call fcn.004707d3
jmp 0x46b725
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.005306b0
mov edi, 0x104
push ebx
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.004ccc3f
mov esi, 0x6edaf8
add esp, 0x10
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x46b6f9
lea eax, [ebp - 0x21c]
push 0x6ed9f0
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x46b6f9
push esi
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.004ccc3f
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.0042bd38
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x46b7f1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46b7f1
cmp dword [eax], 0
je 0x46b7f1
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 0x46b746
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x46b80c
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffaa
push eax
call fcn.005306b0
lea ebx, [edi + 0x1c]
push ebx
push 1
call fcn.00530848
mov esi, eax
add esp, 0x14
test esi, esi
je 0x46b7c0
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 0x46b7b6
mov ebx, dword [esi + 8]
test ebx, ebx
ja 0x46b7aa
xor ebx, ebx
inc ebx
mov edi, dword [esi + 4]
call fcn.0046b823
test eax, eax
je 0x46b7b8
xor ebx, ebx
push esi
call fcn.0053061e
jmp 0x46b7cf
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.0042b70b
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 0x46b814
lea eax, [ebp - 0x21c]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.0042bd38
jmp 0x46b4f0
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.0042b70b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret