Mix hash browns, onions, and cheese in a large bowl. Add sour cream, softened butter, and cream of chicken soup. Stir until distributed evenly. Put in a 9x13 baking pan, and sprinkle crushed corn flakes on top. Cover with foil and bake at 350 for one hour.