17 ut64 largest_offset = 0;
18 ut64 largest_size = 0;
26 if (
bin->optional_header) {
28 bin->nt_header_offset + 4 +
sizeof(
bin->nt_headers->file_header),
29 bin->nt_headers->file_header.SizeOfOptionalHeader,
36 for (
i = 0; !sects[
i].
last;
i++) {
45 if (
bin->optional_header) {
53 bin->data_directory[
i].Size,
60 if ((
ut64)
bin->size > largest_offset + largest_size) {
61 *
size =
bin->size - largest_offset - largest_size;
62 return largest_offset + largest_size;
70 if (pe_overlay_offset) {
RZ_API int sdb_num_set(Sdb *s, const char *key, ut64 v, ut32 cas)
PE_DWord PE_() bin_pe_rva_to_paddr(RzBinPEObj *bin, PE_DWord rva)
static void computeOverlayOffset(ut64 offset, ut64 size, ut64 file_size, ut64 *largest_offset, ut64 *largest_size)
int PE_() bin_pe_init_overlay(RzBinPEObj *bin)
int PE_() bin_pe_get_overlay(RzBinPEObj *bin, ut64 *size)
#define PE_IMAGE_DIRECTORY_ENTRY_SECURITY
#define PE_IMAGE_DIRECTORY_ENTRIES
ut64(WINAPI *w32_GetEnabledXStateFeatures)()