private UInt32 RVAtoPosition(UInt32 r, int sections, byte[] headers)
{
for (int i = 0; i < sections; i++)
{
UInt32 p = BitConverterLE.ToUInt32(headers, i * 40 + 20);
UInt32 s = BitConverterLE.ToUInt32(headers, i * 40 + 12);
var l = (int)BitConverterLE.ToUInt32(headers, i * 40 + 8);
if ((s <= r) && (r < s + l))
{
return(p + r - s);
}
}
return(0);
}