/usr/bin/i586-mingw32msvc-ranlib is in mingw32-binutils 2.25-5+5.2+deb8u1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/i686-w64-mingw32-ranlib
/usr/bin/i686-w64-mingw32-ranlib