Function at 0x42fc10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43694c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x45da50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::at_unsigned_int_const]
movsx eax, byte [eax]
push eax
call dword [sym.imp.MSVCR80.dll_isalpha]
add esp, 4
test eax, eax
je 0x42fc76
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
jmp 0x42fc9a
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x20], eax
push 2
push 4
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42fcdb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x28], eax
push 2
push 4
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42fcdb
or eax, 0xffffffff
jmp 0x42fdaf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x1e
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.iphlpapi.dll_GetRTTAndHopCount
test eax, eax
jne 0x42fdac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb8], eax
push 1
push 3
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb4]
test ecx, ecx
je 0x42fd5a
lea edx, [ebp - 0xac]
mov dword [ebp - 0xc4], edx
jmp 0x42fd64
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xb8]
push eax
push str.Failed_to_get_ping_time__error_
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.0040e820
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, dword [ebp - 0xbc]
jmp 0x42fdaf
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4