Although the two (masm/fasm) have a lot in common, so you might write Fasm asm thinking you were writing Masm asm.
PureBasic "converts" PureBasic code to asm for Fasm, and the inline stuff is given to Fasm as-is (more or less). Fasm then creates the executable. Masm is nowhere in sight during this process.