Function at 0x4151a0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432fee
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x43e460]
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
mov esi, ecx
lea ecx, [ebp - 0xb0]
push ecx
xor ebx, ebx
mov dword [ebp - 0xb8], ebx
mov eax, dword [esi + 0xb0]
lea edx, [ebp - 0xac]
push edx
push eax
mov dword [ebp - 0xb0], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x415209
mov dword [ebp - 0xb0], ebx
jmp 0x41521f
mov eax, dword [ebp - 0xaa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebp - 0xb0], ecx
xor eax, eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov eax, 1
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 6
mov dword [ebp - 0x180], 0x435bbc
mov dword [ebp - 0x170], 0x435bb4
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x120], 0x43580c
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
call fcn.0040c7b0
lea edx, [ebp - 0x168]
push 0x20
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], ebx
call fcn.0040ea40
mov byte [ebp - 0xe0], al
cmp dword [ebp - 0xe8], ebx
jne 0x4152f3
mov eax, dword [ebp - 0x114]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0x120]
call fcn.0040c680
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp - 0x180]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0x180], 0x435810
mov ecx, dword [ebp - 0x180]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 5
mov dword [ebp + edx - 0x180], 0x4358e4
call fcn.0040d170
mov dword [ebp - 0x168], 0x435864
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], 7
call fcn.004103f0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x180]
call fcn.00412b70
cmp dword [eax + 0x14], 0x10
jb 0x415387
mov eax, dword [eax]
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp - 0xd8]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 0x18], 0x10
mov edi, eax
jb 0x4153b1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b28a
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp edi, ebx
je 0x4153f1
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d840
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a378
add esp, 4
xor al, al
jmp 0x415450
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 2
push 1
push ecx
push edx
mov ecx, esi
call fcn.004136f0
cmp eax, 0xffffffff
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0xb4]
push eax
setne bl
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d840
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a378
add esp, 4
mov al, bl
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.0041be05
mov esp, ebp
pop ebp
ret 4