Cork were just three behind after 60 minutes but Dublin powered home with three late goals.