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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x2b0], 0
push 0x103
push 0
lea eax, [ebp - 0x2af]
push eax
call fcn.005b02a0
add esp, 0xc
mov word [ebp - 0x198], 0
push 0x18e
push 0
lea ecx, [ebp - 0x196]
push ecx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], 0
mov edx, dword [ebp + 8]
push edx
call fcn.00401389
add esp, 4
test eax, eax
je 0x4a5ac1
xor eax, eax
jmp 0x4a5fe0
cmp dword [0x81511c], 0
jne 0x4a5add
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c4], eax
jmp 0x4a5ae7
mov dword [ebp - 0x2c4], 0
cmp dword [ebp - 0x2c4], 0
jne 0x4a5b7f
mov dword [ebp - 0x19c], 0
push 0x694060
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x4a5b7d
push str.ICMP_library_could_not_be_loaded_for_PING_request__1
call fcn.00401014
add esp, 4
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push 0x6940a4
lea eax, [ebp - 0x2b0]
push eax
call fcn.005b6660
add esp, 0xc
lea ecx, [ebp - 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x4a5b7d
lea edx, [ebp - 0x2b0]
push edx
push str.ICMP_library_could_not_be_loaded_for_PING_request__2___s_
call fcn.00401014
add esp, 8
xor eax, eax
jmp 0x4a5fe0
jmp 0x4a5b89
mov dword [ebp - 0x19c], 1
push 0x6940ec
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a8], eax
push 0x6940fc
mov ecx, dword [ebp - 0x2c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
push 0x69410c
mov edx, dword [ebp - 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a8], 0
je 0x4a5bf0
cmp dword [ebp - 0x1a4], 0
je 0x4a5bf0
cmp dword [ebp - 0x1a0], 0
jne 0x4a5d42
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x19c], 0
je 0x4a5c36
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x4a5c34
push str.ICMP_library_could_not_be_loaded_for_PING_request__4a
call fcn.00401014
add esp, 4
xor eax, eax
jmp 0x4a5fe0
jmp 0x4a5ca2
lea ecx, [ebp - 0x2b0]
push ecx
push str.ICMP_library_could_not_be_loaded_for_PING_request__3___s_
call fcn.00401014
add esp, 8
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push str._sICMP.DLL
lea edx, [ebp - 0x2b0]
push edx
call fcn.005b6660
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x4a5ca2
lea ecx, [ebp - 0x2b0]
push ecx
push str.ICMP_library_could_not_be_loaded_for_PING_request__4___s_
call fcn.00401014
add esp, 8
xor eax, eax
jmp 0x4a5fe0
push str.IcmpCreateFile
mov edx, dword [ebp - 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a8], eax
push str.IcmpCloseHandle
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
push str.IcmpSendEcho
mov ecx, dword [ebp - 0x2c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a8], 0
je 0x4a5d05
cmp dword [ebp - 0x1a4], 0
je 0x4a5d05
cmp dword [ebp - 0x1a0], 0
jne 0x4a5d19
push str.PingHost___FAILED:_GetProcAddress___could_not_locate_ICMP_functions_
call fcn.00401014
add esp, 4
xor eax, eax
jmp 0x4a5fe0
cmp dword [ebp - 0x19c], 0
je 0x4a5d38
mov dword [ebp - 0x19c], 0
mov dword [0x81511c], 1
jmp 0x4a5d42
mov dword [0x81511c], 0
lea edx, [ebp - 0x198]
push edx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4a5d6b
push str.WSAStartup___FAILED:_Winsock_could_not_be_initialized_for_PingHost__.
call fcn.00401014
add esp, 4
xor eax, eax
jmp 0x4a5fe0
mov eax, dword [ebp + 8]
push eax
call fcn.00402324
add esp, 4
test eax, eax
je 0x4a5d92
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401424
add esp, 4
mov dword [ebp - 0x2bc], eax
jmp 0x4a5e86
mov byte [ebp - 0x3d0], 0
push 0x103
push 0
lea edx, [ebp - 0x3cf]
push edx
call fcn.005b02a0
add esp, 0xc
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.00402725
add esp, 0xc
push 0x814f10
call fcn.00401389
add esp, 4
test eax, eax
jne 0x4a5e21
push 0x814e08
lea edx, [ebp - 0x3d0]
push edx
call fcn.005b0660
add esp, 8
test eax, eax
jne 0x4a5e21
push 0x104
push 0x814f10
lea eax, [ebp - 0x3d0]
push eax
call fcn.00402725
add esp, 0xc
lea ecx, [ebp - 0x3d0]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:2:PingHost___s___is_using___s__instead_
call fcn.004018ca
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
je 0x4a5e56
mov ecx, dword [ebp - 0x2c8]
cmp dword [ecx + 0xc], 0
je 0x4a5e56
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x4a5e73
lea ecx, [ebp - 0x3d0]
push ecx
push str.PingHost___FAILED:_The_given_host_name___s__could_not_be_resolved.
call fcn.004018ca
add esp, 8
xor eax, eax
jmp 0x4a5fe0
mov edx, dword [ebp - 0x2c8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x2bc], edx
call dword [ebp - 0x1a8]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0xffffffff
jne 0x4a5eaf
push str.PingHost___FAILED:_pIcmpCreateFile___could_not_initialize_ICMP_
call fcn.00401014
add esp, 4
xor eax, eax
jmp 0x4a5fe0
push 0x80
push 0xffffffffffffffaa
lea eax, [ebp - 0x2b0]
push eax
call fcn.005b02a0
add esp, 0xc
push 0x5de
push 0x694360
push 1
push 0x9c
push 1
call fcn.005b0ce0
add esp, 0x14
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x4a5fa8
mov ecx, dword [ebp - 0x2c0]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x2c0]
mov word [eax + 0xc], 0x80
mov ecx, dword [ebp + 0xc]
push ecx
push 0x9c
mov edx, dword [ebp - 0x2c0]
push edx
push 0
push 0x80
lea eax, [ebp - 0x2b0]
push eax
mov ecx, dword [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x2b8]
push edx
call dword [ebp - 0x1a0]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4a5f84
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
ja 0x4a5f65
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2c0]
mov eax, dword [edx + 4]
push eax
call fcn.004a5ff0
add esp, 4
test eax, eax
je 0x4a5f82
mov dword [ebp - 4], 0
jmp 0x4a5f8b
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.005b16b0
add esp, 8
mov dword [ebp - 0x2c0], 0
jmp 0x4a5fbe
push 0x1c
push str.PingHost___FAILED:_Out_of_memory:_Could_not_allocate__ld_bytes_for_IP_ECHO_REPLY_
call fcn.00401014
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2b8]
push edx
call dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret