Function at 0x410460
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efc7e
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
cmp dword [ecx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x194], 0x104
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x1a8], 6
jb 0x4104fc
mov ecx, dword [ecx]
lea eax, [ebp - 0x18c]
push eax
lea edx, [ebp - 0x1b4]
push edx
push 0x517784
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
cmp esi, ebx
je 0x41060d
lea eax, [ebp - 0x2e8]
push eax
call fcn.00409d60
lea ecx, [ebp - 0x2e8]
push str.getaddrinfo_failed_with_error:
push ecx
mov dword [ebp - 4], ebx
call fcn.0040da40
add esp, 8
push esi
lea edx, [ebp - 0x2e8]
push edx
call fcn.00413980
lea esi, [ebp - 0x150]
lea eax, [ebp - 0x2e8]
call fcn.00408e20
push 2
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004182c0
add esp, 4
cmp dword [ebp - 0x13c], 8
jb 0x410589
mov eax, dword [ebp - 0x150]
push eax
call fcn.0049acb7
add esp, 4
mov eax, dword [ebp - 0x2e8]
xor ecx, ecx
mov dword [ebp - 0x13c], 7
mov dword [ebp - 0x140], ebx
mov word [ebp - 0x150], cx
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x298]
mov dword [ebp - 0x190], edx
mov dword [ebp + ecx - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 4], 2
call fcn.00408e40
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2e8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x298]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004998ce
add esp, 4
jmp 0x410862
push 0x10
push str.IPv6_Addresses:
mov ecx, edi
call fcn.00409fc0
mov eax, dword [ebp - 0x18c]
mov edi, eax
cmp eax, ebx
je 0x410843
jmp 0x410630
cmp dword [edi + 4], 0x17
jne 0x410838
mov eax, dword [edi + 0x18]
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x194], 0x104
mov edx, dword [edi + 0x10]
push ebx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp eax, ebx
je 0x410762
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x250]
push eax
call fcn.00409d60
lea ecx, [ebp - 0x250]
push str.WSAAddressToString_failed_with_error:
push ecx
mov dword [ebp - 4], 3
call fcn.0040da40
add esp, 8
push esi
lea edx, [ebp - 0x250]
push edx
call fcn.00413980
lea esi, [ebp - 0x16c]
lea eax, [ebp - 0x250]
call fcn.00408e20
push 2
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004182c0
add esp, 4
cmp dword [ebp - 0x158], 8
jb 0x4106de
mov eax, dword [ebp - 0x16c]
push eax
call fcn.0049acb7
add esp, 4
mov eax, dword [ebp - 0x250]
xor ecx, ecx
mov dword [ebp - 0x158], 7
mov dword [ebp - 0x15c], ebx
mov word [ebp - 0x16c], cx
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x200]
mov dword [ebp - 0x1b8], edx
mov dword [ebp + ecx - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 5
call fcn.00408e40
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x200]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004998ce
add esp, 4
jmp 0x410838
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410781
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x134]
call fcn.00408570
push 0x517830
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x188]
push ecx
mov dword [ebp - 4], 6
call fcn.00413430
add esp, 0xc
push 0xffffffffffffffff
push ebx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x190]
push eax
call fcn.00409ed0
mov esi, 0x10
cmp dword [ebp - 0x174], esi
jb 0x4107ee
mov edx, dword [ebp - 0x188]
push edx
call fcn.0049acb7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x174], 0xf
mov dword [ebp - 0x178], ebx
mov byte [ebp - 0x188], bl
cmp dword [ebp - 0x120], esi
jb 0x410822
mov eax, dword [ebp - 0x134]
push eax
call fcn.0049acb7
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x410630
mov ecx, dword [ebp - 0x190]
push 1
push 0x517834
call fcn.00409fc0
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret