-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_class73.idc
More file actions
40 lines (32 loc) · 934 Bytes
/
debug_class73.idc
File metadata and controls
40 lines (32 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <idc.idc>
#include "lib/lib.idc"
static debug_class74(class74) {
Message("%s\n", class74.to_string());
if (class74.get_field_94_a4_len() > 0) {
auto a4_index = 0;
auto i = 0;
while (i < class74.get_field_a4_entry(a4_index)) {
auto screen_rectangle = class74.get_field_a0_entry(i);
Message("screen_rectangle %d: %s\n",
i,
screen_rectangle.to_string());
i = i + 1;
if (i > 10) {
Message("aborting enumeration\n");
break;
}
}
}
}
static main() {
auto c74;
Message("\n\n\n");
auto class73 = get_class73();
if (class73.address == 0) {
return;
}
Message("Debugging %s\n", class73.to_string());
c74 = class73.get_();
Message("\n???:\n");
debug_class74(c74);
}