visual c++ - Where/how can I find out exactly what this assembly code does for the purpose of converting it to C++? -


i want convert following code c++.

        .globl _start _start: .set dllloaderhook, 0x823326a8 .set loadlibrarya, 0x82332b10 .set dllloaderstring, 0x82000870  .long dllloaderstring .long (9f-0f)/4 0:     .string "game:\\tesseract.dll"     .align 1 9:  .long dllloaderhook .long (9f-0f)/4 0:     lis %r11, dllloaderstring@h     ori %r3, %r11, dllloaderstring@l     bl (loadlibrarya - (dllloaderhook + 0x8)) 9: .long 0xffffffff 

i know need understand each line of assembly code before can begin think converting c++. have little no understanding of code. i'm not asking convert c++, asking each line of code can gain understanding convert myself. clarification, believe powerpc assembly. did fair amount of googling before came here ask this. hoping google me understand needed, don't feel understand it.

lis %r11, dllloaderstring@h ori %r3, %r11, dllloaderstring@l 

these 2 above loading %r3 pointer dllloaderstring. dllloaderstring set "game:\tesseract.dll"

bl (loadlibrarya - (dllloaderhook + 0x8)) 

this above branching , linking (ie. function call) location. looks location loadlibrarya.

%r3 defined in powerpc isa first parameter function. so..

looks it's calling loadlibrarya function pointer string "game:\tesseract.dll" first argument (first argument %r3). ie

char *dllloaderstring = "game:\\tesseract.dll"; loadlibrarya(dllloaderstring); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -