y not bit bang it,
looks like IR tv remote to me,
if so,
the first long pulse and delay is like start bit, the shortest pulse is the "shift clock pulse", the length of delay between says it is logic 1 or 0, count these to get size of "words".
from there you can see bit values from words, my remote pulses 16 bits, then the same 16 bits but inverted, but not all are equal,
either way push a button , it will spit out number, use that number to call function, if that number constantly changes you have encryption OR more likely bad read cycles,
If this were a tv remote...