Ben smiled as the sun's rays shimmered through the window and lit up the room drawing open the curtains.

What is the misplaced modifier in this sentence?
A. lit up the room
B. as the sun's rays shimmered
C. drawing open the curtains
D. through the window