Windlass:

A mechanical device used to hoist and lower the anchor and chain, typically found on the foredeck.