-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_shipyard_window.idc
More file actions
33 lines (29 loc) · 1 KB
/
debug_shipyard_window.idc
File metadata and controls
33 lines (29 loc) · 1 KB
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
#include <idc.idc>
#include "lib/lib.idc"
static log_shipyard_window_bp() {
auto eip = GetRegValue("eip");
if (eip == 0x5f4326) {
return 0; // ui_render_shipyard_window
} else if (eip == 0x005F4229) {
return 0; // ui_shipyard_window_prepare_page
} else if (eip == 0x005f47c5) {
return 0; // ui_shipyard_window_set_new_page
} else if (eip == 0x005F4172) {
return 0; // ui_shipyard_window_close
} else if (eip == 0x5fb16e) {
return 0; // ui_shipyard_window_read_selected_page_do_stuff 1
} else if (eip == 0x5fb425) {
return 0; // ui_shipyard_window_read_selected_page_do_stuff 2
} else if (eip == 0x5f4093) {
return 0; // ui_shipyard_window_open
}
Message("BP fired at 0x%x\n", eip);
return 1;
}
static debug_ui_shipyard_window() {
auto ui_shipyard_window = get_ui_shipyard_window();
Message("%s\n", ui_shipyard_window.to_string());
}
static main() {
debug_ui_shipyard_window();
}