How can read the assembly code of analogWrite() and PinMode()?

Just compile a sketch containing the code you need and then use avr-objdump on the output.