RAPID code to modeling

Hey, I have IRB1200 robot and IRC5 FlexPendant, and I was able to load the RAPID program from it. I would like to use the existing program and collision geometry things from the robot, and simulate and change the current program. How can I do that?