If it freezes before you can get to the Options dialog, you might have to stop the UPnP service.
Start > run > services.msc
Stop the service called "UPnP Device Host" or "Ultimate Plug & Play". Then if it doesn't freeze anymore, try to disable UPnP in mIRC itself.