Function at 0x4534b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51874a
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x580b30]
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
mov dword [ebp - 0x178], ebx
cmp dword [ecx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], 1
mov dword [ebp - 0x194], 6
jb 0x453548
mov ecx, dword [ecx]
lea eax, [ebp - 0x174]
push eax
lea edx, [ebp - 0x1a0]
push edx
push 0x53d348
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
cmp esi, ebx
je 0x4535e6
lea eax, [ebp - 0x248]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x238]
push str.getaddrinfo_failed_with_error:
push ecx
mov dword [ebp - 4], ebx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x150]
lea eax, [ebp - 0x248]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x13c], 8
jb 0x4535cf
mov edx, dword [ebp - 0x150]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
jmp 0x453872
push 0x10
push str.IPv6_Addresses:
mov ecx, edi
call fcn.00407c00
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x170], eax
cmp eax, ebx
je 0x453857
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 0x170]
cmp dword [eax + 4], 0x17
jne 0x45383a
mov esi, dword [eax + 0x18]
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x180], 0x104
mov byte [ebp - 0x118], bl
call fcn.004d87e0
mov eax, dword [ebp - 0x170]
add esp, 0xc
lea ecx, [ebp - 0x180]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x118]
push edx
push ebx
push ecx
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp eax, ebx
je 0x453764
call edi
mov esi, eax
mov dword [ebp - 0x248], 0x534e40
mov dword [ebp - 0x238], 0x537b70
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 2
or dword [ebp - 0x178], 1
push eax
call fcn.004034a0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x230]
push eax
mov dword [ebp + edx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00403fb0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1f0], ebx
push esi
push ecx
lea ecx, [ebp - 0x238]
push str.WSAAddressToString_failed_with_error:
push ecx
mov dword [ebp - 4], 5
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x248]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x158], 8
jb 0x45374d
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
jmp 0x45383a
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 0x453783
sub eax, edx
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
call fcn.0040a3b0
push 0x537ad0
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x150]
push edx
mov dword [ebp - 4], 7
call fcn.00429250
add esp, 0xc
mov ecx, dword [ebp - 0x17c]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 8
call fcn.00407b10
mov esi, 0x10
cmp dword [ebp - 0x13c], esi
jb 0x4537f0
mov eax, dword [ebp - 0x150]
push eax
call fcn.00469e1a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
cmp dword [ebp - 0x120], esi
jb 0x453824
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00469e1a
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x170], eax
cmp eax, ebx
jne 0x45360e
mov edi, dword [ebp - 0x17c]
push 1
push 0x53d314
mov ecx, edi
call fcn.00407c00
mov eax, dword [ebp - 0x174]
push eax
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.004d31b7
mov esp, ebp
pop ebp
ret