arduino on atmel studio

is there a way to include all the files of arduino in its bootloader in avr studio. or can i run arduino on avr studio by includeing the bootloader files in it. if so, where can i find the main bootloader files. or can i convert the hex files into the original ones