H1B transfer and revocation from India!!!! Please give your 0.02$!!!

Hi All,I am in a unique position or not that you all have to decide. I am stating my case here. I have approved and stamped VISA valid till October-2019, which was filed by my current company A.Now company A is not willing to send me on assignment. I have another company B willing to transfer my VISA. I have never been in USA on H1B status. I am planning to leave company A and join company B in India itself. I am worried about revocation/withdrawal of VISA from company A. My questions are as below:1. What is the difference between revocation and withdrawal from company A perspective?2. If company A revokes/withdraws the VISA and company B files for the transfer, will I be counted in CAP or I will be CAP-EXEMPT? 3. Should I transfer VISA to company B before revocation/withdrawal or after (should I resign before transfer initiation or after)? Is “after” even possible?Please help me with these scenarios if you have been through this situation. I would also like to have suggestions based on this scenarios. Thanks