Procedure of release or cancelation of work

Dear sir . I want to change my job   

I was working in Emax through third party , this time Emax give Me the company visa .but my third company did not release me ..Emax give me the better offer ,, kindly help me what is the procedure of release or cancelation,( work duration 9months 20 days)