// // EditorUI::updateCreateMenu from 0x1004745c4 to 0x100474774 (432 bytes) // // 8 xrefs: // > EditorUI::handleEditorAction @ 0x100162cd4 // > EditorUI::setupCreateMenu @ 0x100184358 // > sub_100187FE0 @ 0x100188040 // > sub_100188044 @ 0x1001880a4 // > EditorUI::resetUI @ 0x1004717c0 // > sub_1004734B8 @ 0x1004734e8 // > EditorUI::clickOnPosition @ 0x100474090 // > EditorUI::onCreateButton @ 0x100476cc0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:05:40 +0000 // __int64 __fastcall EditorUI::updateCreateMenu(__int64 a1, int a2) { char v4; // w21 char v5; // w25 __int64 v6; // x8 __int64 v7; // x21 unsigned int v8; // w22 __int64 v9; // x0 char i; // w8 char v11; // w26 __int64 v12; // x8 __int64 v13; // x21 __int64 result; // x0 unsigned int v15; // w22 __int64 v16; // x0 __int64 v17; // x23 if ( (*(_BYTE *)(a1 + 1589) & 1) != 0 || *(_DWORD *)(a1 + 1436) != 2 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 824) + 344LL))(*(_QWORD *)(a1 + 824), 0); return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1200) + 344LL))(*(_QWORD *)(a1 + 1200), 0); } else { v4 = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 824) + 344LL))(*(_QWORD *)(a1 + 824), 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1200) + 344LL))(*(_QWORD *)(a1 + 1200), 1); do { v5 = v4; if ( (v4 & 1) != 0 ) v6 = 1352; else v6 = 1360; v7 = *(_QWORD *)(a1 + v6); if ( (unsigned int)sub_1002E757C(v7) ) { v8 = 0; do { v9 = sub_1002E75A0(v7, v8); EditorUI::enableButton(v9, v9); ++v8; } while ( v8 < (unsigned int)sub_1002E757C(v7) ); } v4 = 0; } while ( (v5 & 1) != 0 ); for ( i = 1; ; i = 0 ) { v11 = i; v12 = (i & 1) != 0 ? 1352LL : 1360LL; v13 = *(_QWORD *)(a1 + v12); result = sub_1002E757C(v13); if ( (_DWORD)result ) break; LABEL_19: if ( (v11 & 1) == 0 ) return result; } v15 = 0; while ( 1 ) { v16 = sub_1002E75A0(v13, v15); if ( *(_DWORD *)(v16 + 528) == *(_DWORD *)(a1 + 1344) ) break; ++v15; result = sub_1002E757C(v13); if ( v15 >= (unsigned int)result ) goto LABEL_19; } v17 = v16; result = EditorUI::disableButton(v16, v16); if ( a2 ) { EditorUI::selectBuildTab(a1, *(unsigned int *)(v17 + 536)); return EditButtonBar::goToPage(*(_QWORD *)(a1 + 824), *(unsigned int *)(v17 + 532)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source