A speaker or writer uses myself to refer to himself or herself. Myself is used as the object of a verb or preposition when the subject refers to the same person.
You use myself to emphasize a first person singular subject. In more formal English, myself is sometimes used instead of 'me' as the object of a verb or preposition, for emphasis.