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

Disassembly:
jmp 0x46d6bf
push ebp
lea ebp, [esp - 0x334]
sub esp, 0x3b4
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x330], eax
push esi
push edi
mov edi, dword [ebp + 0x33c]
push 0x103
xor esi, esi
lea eax, [ebp + 0x22d]
push esi
push eax
mov dword [ebp - 0x7c], edi
mov byte [ebp + 0x22c], 0
call fcn.00508d00
push 0x18e
lea eax, [ebp - 0x66]
push esi
push eax
mov word [ebp - 0x68], si
call fcn.00508d00
push edi
call fcn.004010dc
add esp, 0x1c
test eax, eax
je 0x46d727
xor eax, eax
jmp 0x46da82
cmp dword [0x74313c], esi
jne 0x46d73f
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6c], eax
jmp 0x46d742
mov dword [ebp - 0x6c], esi
cmp dword [ebp - 0x6c], esi
jne 0x46d7ac
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ICMP.DLL
mov dword [ebp - 0x74], esi
call edi
cmp eax, esi
mov dword [ebp - 0x6c], eax
jne 0x46d7b3
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.004020c2
push esi
push esi
call fcn.004031fc
push eax
lea eax, [ebp + 0x22c]
push str._sICMP.DLL
push eax
call fcn.0050dd60
add esp, 0x18
lea eax, [ebp + 0x22c]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x6c], eax
jne 0x46d7b3
lea eax, [ebp + 0x22c]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.004020c2
pop ecx
pop ecx
jmp 0x46d720
mov dword [ebp - 0x74], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.IcmpCreateFile
push dword [ebp - 0x6c]
call esi
mov ebx, str.IcmpCloseHandle
push ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
call esi
mov edi, str.IcmpSendEcho
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
call esi
cmp dword [ebp - 0x70], 0
mov dword [ebp - 0x80], eax
je 0x46d7f7
cmp dword [ebp - 0x78], 0
je 0x46d7f7
test eax, eax
jne 0x46d8c4
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x74], 0
je 0x46d822
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x46d87c
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
jmp 0x46da79
lea eax, [ebp + 0x22c]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.004020c2
push 0
push 0
call fcn.004031fc
push eax
lea eax, [ebp + 0x22c]
push str._sICMP.DLL
push eax
call fcn.0050dd60
add esp, 0x1c
lea eax, [ebp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x46d87c
lea eax, [ebp + 0x22c]
push eax
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
call fcn.004020c2
pop ecx
jmp 0x46da7e
push str.IcmpCreateFile
push dword [ebp - 0x6c]
call esi
push ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
call esi
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], eax
je 0x46da74
cmp dword [ebp - 0x78], ecx
je 0x46da74
cmp eax, ecx
je 0x46da74
xor eax, eax
cmp dword [ebp - 0x74], ecx
setne al
mov dword [0x74313c], eax
lea eax, [ebp - 0x68]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x46d8e0
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
jmp 0x46da79
mov ebx, dword [ebp - 0x7c]
push ebx
call fcn.0040321a
test eax, eax
pop ecx
je 0x46d8fa
push ebx
call fcn.004017d5
pop ecx
jmp 0x46d99f
push 0x103
lea eax, [ebp + 0x129]
push 0
push eax
mov byte [ebp + 0x128], 0
call fcn.00508d00
mov edi, 0x104
push edi
lea eax, [ebp + 0x128]
push ebx
push eax
call fcn.00402abd
mov esi, 0x742f30
push esi
call fcn.004010dc
add esp, 0x1c
test eax, eax
jne 0x46d973
lea eax, [ebp + 0x128]
push 0x742e28
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
jne 0x46d973
push edi
lea eax, [ebp + 0x128]
push esi
push eax
call fcn.00402abd
lea eax, [ebp + 0x128]
push eax
push ebx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.00401375
add esp, 0x18
lea eax, [ebp + 0x128]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x46da5e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46da5e
cmp dword [eax], 0
je 0x46da5e
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
call dword [ebp - 0x70]
cmp eax, 0xffffffff
mov dword [ebp - 0x70], eax
jne 0x46d9b7
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
jmp 0x46da79
mov edi, 0x80
push edi
lea eax, [ebp + 0x22c]
push 0xffffffffffffffaa
push eax
call fcn.00508d00
push 0x5de
push str..Network.c
push 1
lea ebx, [edi + 0x1c]
push ebx
push 1
call fcn.00509d00
mov esi, eax
add esp, 0x20
test esi, esi
je 0x46da36
push dword [ebp + 0x340]
mov eax, dword [ebp - 0x7c]
push ebx
push esi
push 0
push edi
mov dword [esi + 0x10], eax
lea eax, [ebp + 0x22c]
push eax
push dword [ebp - 0x74]
mov word [esi + 0xc], di
push dword [ebp - 0x70]
call dword [ebp - 0x80]
test eax, eax
je 0x46da2a
mov ebx, dword [esi + 8]
test ebx, ebx
ja 0x46da1e
xor ebx, ebx
inc ebx
mov edi, dword [esi + 4]
call fcn.0046816b
test eax, eax
je 0x46da2c
xor ebx, ebx
push 1
push esi
call fcn.0050a6d0
jmp 0x46da44
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.004020c2
xor ebx, ebx
pop ecx
pop ecx
push dword [ebp - 0x70]
call dword [ebp - 0x78]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
mov eax, ebx
jmp 0x46da81
lea eax, [ebp + 0x128]
push eax
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.00401375
jmp 0x46d876
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.004020c2
xor eax, eax
pop ecx
pop ebx
mov ecx, dword [ebp + 0x330]
pop edi
xor ecx, ebp
pop esi
call fcn.00508cf0
add ebp, 0x334
leave
ret