Most software licenses say you can't disassemble their code,
but many companies have NDA's (Non-Disclosure Agreements) that they
will make you sign before they give you technical information about
their products.
It has been proven in U.S. courts that disassembling a driver to learn
how a piece of hardware works is legal.