The startup I worked at had a quarter-million in legal fees one year. That was about as much as just one of our hired-gun contractors.
Worth checking out which small-business programs your local government provide- a lot of them do, especially for "clean industries" like software.