|  Code :
https://pastebin.com/xQuFEdTh
Image :
https://imgur.com/a/ofHaX9t
I don't know why my comments not full save in post  | 
                         ==>  | 
                    
 
                    
                    
                        |  I just Got the Function From Ida Pro
and I change last Line Code
from 
return sprintf(v1, "%d-%d", 3 * (unsigned int)(v2  1) + (unsigned int)v2, v4);
to 
std::cout  1) + (unsigned int)v2   | 
                         ==>  |