If you have a learnt Hex Code from the original remote you can use IR Tools to identify the IR Protocol and Device Number and then use MakeHex to generate all possible Hex Codes to search for Discretes.
MakeHex
Makes clean IR sequences from IR protocol files. See the readme file for more information.
[Link: hifi-remote.com]MakeHex GUI
[Link: hifi-remote.com]IR Tools
Decodes a learned infrared Hex codes (only codes that start with 0000) that you paste (Ctrl +V) into the Hex Code Window and press the Decode Hex Button and a box appears to give you information on the Protocol, Device Number and Function Number (OBC). Requires the DecodeIR.DLL file.
[Link: hifi-remote.com]DecodeIR.DLL
File required by DecodeCCF and IR Tools.
[Link: hifi-remote.com]Cheers
Jason