Generally speaking visible defects on a boat are way less than the tip of an iceberg.
If the boat you're looking at is indeed 10 years old and these photos are representative of it's overall condition then it is showing signs of neglect/hard use.
Whether this is a good or bad thing may depend on the
price and your intended use.
It could be servicable for limited use but be in need of refurbishment/maintenance/upgrades.
Before going cruising with a newly brought boat it is common to do substantial upgrading/fixing/maintenance. On a 40' mono figures of round $50-60k are sometimes mentioned with time take being from 3 months to 5 years.
If you like the boat why not get a quote from a rigger to replace the lot. Listen carefully to any comments that he/she may make. Do the same with a
mechanic. Get them to have a look at the engine/transmission and
steering.
It would also be a good idea to turn on the master switch and then to turn on each of the electrics/electronics. It'll only take a few minutes to turn on the
depth sounder,
radio (make a test call),
radar, stereo, log,
inverter, fridge and whatever else there is. While you're about it turn on the
interior lights,
compass light and
navigation lights. Don't forget to turn them off and to turn off the master switch before you leave.
Checking the
toilet and seeing if the fresh
water system works should only take a minute or two. Again, don't forget to close all seacocks before leaving the boat.
Best to leave checking the
stove to the
surveyor if you're still interested.