How to make exe file licenced by reading sys info and password

Hi all

I have a flash file which internally invokes other doc. and html files. The total size of all the files is about 400 MB. I want to protect these files from un-authorized usage and make them run only when the license information provided is correct. The copy of same files and same license number should not allow it to run on another PC.

The solution should be platform independent and should work on Apple’s machines too.
Can I write some Action Script which can do the following:

  1. Checks which operating system I am trying to run the Flash File?
  2. If Operating System is Windows and Non-Apple Machine then get Machine ID, BIOS number, hard-disk serial number and if it is Apple Machine then get unique machine ID of apple?
  3. Invoke a webservice by passing these details and based on the response received (correct or wrong details) it stores an entry somewhere in the registry. First time it checks from web-service the details and runs the flash file, but next time onwards it checks from local registry and runs the flash file. (Note: prime focus is to run this on MAC OSX.)
    Or for the required scenario I need not to play with Action Script and just follow some other simpler way ???

Any help in this regards will be highly appreciated.
Thanks in anticipation.

:inc: