I've worked at both disfunctional & functional large companies, a very disfunctional start up, and a very well run public sector research organization. The deciding factor in each case was the quality of management.