I am sure that no one would have cared if you took the stuff, but I am sure it could be illegal as well. To make sure, you would need to try and contact the bank or city if it is abandoned and see if you can get the stuff. The only problem with this is as you wait someone will take the stuff. Better to be safe than sorry...