// // EditorUI::shouldDeleteObject from 0x1401b0530 to 0x1401b07ee (702 bytes) // // 5 xrefs: // > EditorUI::onDelete @ 0x1401b0031 // > EditorUI::onDelete @ 0x1401b0112 // > EditorUI::onDeleteSelected @ 0x1401b0a55 // > EditorUI::onDeleteSelected @ 0x1401b0c55 // > @ 0x140919e98 // // This function is hookable on this platform (idp: pc, 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:27:55 +0000 // // Hidden C++ exception states: #wind=4 char __fastcall EditorUI::shouldDeleteObject(__int64 a1, _DWORD *a2) { __int64 v3; // rdi cocos2d::CCString *v4; // rax int v5; // edi void *v6; // rcx int v7; // edi int v8; // edi __int64 v9; // rdi cocos2d::CCString *v10; // rax int v11; // edi void *v12; // r8 void *v14; // [rsp+30h] [rbp-50h] void *v15; // [rsp+30h] [rbp-50h] void *Block[2]; // [rsp+38h] [rbp-48h] BYREF __int64 v17; // [rsp+48h] [rbp-38h] unsigned __int64 v18; // [rsp+50h] [rbp-30h] void *Src[2]; // [rsp+58h] [rbp-28h] BYREF __int64 v20; // [rsp+68h] [rbp-18h] unsigned __int64 v21; // [rsp+70h] [rbp-10h] if ( !a2 || a2[259] == 749 ) return 0; v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v14 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } *(_OWORD *)Block = 0; v17 = 3; v18 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0005", 4u); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 432), Block); v5 = cocos2d::CCString::intValue(v4); if ( v18 > 0xF ) { v6 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v6); } v17 = 0; v18 = 15; LOBYTE(Block[0]) = 0; if ( !v5 ) return 1; v7 = v5 - 1; if ( !v7 ) return (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2) == 7; v8 = v7 - 1; if ( !v8 ) return !(*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2) || (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2) == 25; if ( v8 != 1 ) return 0; v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v15 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } *(_OWORD *)Src = 0; v20 = 3; v21 = 15; LODWORD(Src[0]) = 6256231; sub_140044D80(Src, "0006", 4u); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v9 + 432), Src); v11 = cocos2d::CCString::intValue(v10); if ( v21 > 0xF ) { v12 = Src[0]; if ( v21 + 1 >= 0x1000 ) { v12 = *((void **)Src[0] - 1); if ( (unsigned __int64)((char *)Src[0] - (char *)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } return a2[259] == v11; }