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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432f8e
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 0x4151f9
mov dword [ebp - 0xb0], ebx
jmp 0x41520f
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.0040c770
lea edx, [ebp - 0x168]
push 0x20
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], ebx
call fcn.0040ea30
mov byte [ebp - 0xe0], al
cmp dword [ebp - 0xe8], ebx
jne 0x4152e3
mov eax, dword [ebp - 0x114]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0x120]
call fcn.0040c640
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.0040d1a0
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.00410450
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x180]
call fcn.00412b60
cmp dword [eax + 0x14], 0x10
jb 0x415377
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 0x4153a1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b244
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp edi, ebx
je 0x4153e1
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d7b0
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a332
add esp, 4
xor al, al
jmp 0x415440
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 2
push 1
push ecx
push edx
mov ecx, esi
call fcn.004136e0
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.0040d7b0
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a332
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.0041bdb5
mov esp, ebp
pop ebp
ret 4