Cook pasta in boiling water until just tender, according to package instructions. When pasta is about 5 minutes from doneness, heat a 12-inch heavy skillet over medium-high heat. Add oil and sauté shrimp, turning over once, until just cooked through, about 2 minutes. Transfer shrimp to a bowl with a slotted spoon. Add garlic, red pepper flakes, wine, salt and pepper to pan and cook, stirring occasionally, 1 minute. Add butter to skillet, stirring until melted, and return shrimp to pan, stirring to coat with butter and garlic mixture. Remove skillet from heat.