// Token: 0x06000008 RID: 8 RVA: 0x000020E8 File Offset: 0x000002E8 private PIMAGE_DOS_HEADER GetDosHeader(IntPtr address) { PIMAGE_DOS_HEADER pimage_DOS_HEADER = (PIMAGE_DOS_HEADER)address; if (!pimage_DOS_HEADER.Value.isValid) { return(null); } return(pimage_DOS_HEADER); }
// Token: 0x06000009 RID: 9 RVA: 0x00002110 File Offset: 0x00000310 private PIMAGE_NT_HEADERS32 GetNtHeader(IntPtr address) { PIMAGE_DOS_HEADER dosHeader = this.GetDosHeader(address); if (dosHeader == null) { return(null); } PIMAGE_NT_HEADERS32 pimage_NT_HEADERS = (PIMAGE_NT_HEADERS32)(address + dosHeader.Value.e_lfanew); if (!pimage_NT_HEADERS.Value.isValid) { return(null); } return(pimage_NT_HEADERS); }