Disassembleforward

OllyDbg Plugin API

Disassembleforward

Calculates address of assembler instruction which is n instructions forward from instruction at specified address. If copy of code is not supplied, Disassembleforward guarantees correct results up to n=127 (typically 300). Returns address of found instruction. In case of error, it may be less than n instructions apart.

If you want to correctly walk through constants and strings, use results of code analysis.

ulong Disassembleforward(char *block,ulong base,ulong size,ulong ip,int n,int usedec);

Parameters:

block - pointer to copy of code. If block is NULL, Disassembleforward assumes memory of debugged process and if necessary reads it;

base - address of first byte of code block;

size - size of code block;

ip - address of current instruction;

n - number of instructions to walk forward;

usedec - flag indicating whether Disassembleforward should try to use decoding data.

See also: Disassembleback, Followcall, Findmemory, Readmemory