I can't see how you can do this with mIRC sockets, but if you still want to automate this operation, get MOVEit's FTPS.exe client (which is a SSL-enabled version of Windows' traditional FTP.exe) and run it in batch mode.