Start by preheating your oven to 350 degrees Fahrenheit. Lightly grease a 9×13 inch baking dish with butter or a non-stick cooking spray to ensure nothing sticks during the baking process.
In a large mixing bowl, whisk together the sour cream, cream of chicken soup, half cup of melted butter, diced onion, salt, and black pepper. Stir until the mixture is completely smooth and well combined.
Add the thawed hash browns and the shredded cheddar cheese to the bowl. Use a large spoon or spatula to gently fold the potatoes into the creamy mixture until every shred is evenly coated with the sauce and cheese.
Spread the potato mixture evenly into the prepared baking dish, smoothing out the top with your spatula. In a small separate bowl, toss the crushed cornflakes with the remaining two tablespoons of melted butter and sprinkle them generously over the top of the casserole.
Place the dish in the center of the oven and bake for 45 to 50 minutes. You will know it is done when the edges are bubbling and the cornflake topping has turned a beautiful golden brown. Let it rest for five minutes before serving to allow the sauce to set.