// // EditorUI::editButton2Usable from 0x1401bab70 to 0x1401baf49 (985 bytes) // // 4 xrefs: // > EditorUI::toggleEditObjectButton @ 0x1401bafd5 // > @ 0x1408a21d0 // > @ 0x1408a21e0 // > @ 0x14091a438 // // 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:59 +0000 // char __fastcall EditorUI::editButton2Usable(__int64 a1) { _DWORD *v1; // rax cocos2d::CCArray **v2; // r12 int v3; // ebx unsigned int v4; // ebp int v6; // edi int v7; // esi cocos2d::CCArray *v8; // r13 unsigned int v9; // r15d struct cocos2d::CCObject *v10; // rax struct cocos2d::CCObject *v11; // rdx int v12; // eax cocos2d::CCArray *v13; // r15 unsigned int v14; // edi int v15; // ebx int v16; // ebx bool v17; // zf __int64 v18; // rcx _DWORD *v19; // rcx int v20; // eax __int64 v21; // rcx cocos2d::CCArray *v22; // rdi char v23; // bl int v24; // ebx unsigned int v26; // ebx struct cocos2d::CCObject *v27; // rax unsigned int v28; // edi struct cocos2d::CCObject *v29; // rax struct cocos2d::CCObject *v30; // rax v1 = *(_DWORD **)(a1 + 1568); v2 = (cocos2d::CCArray **)(a1 + 944); v3 = -1; v4 = 0; v6 = -1; v7 = -1; if ( v1 ) { v3 = v1[259]; v6 = v1[314]; v7 = v1[233]; } else { v8 = *v2; if ( *v2 ) { v9 = 0; if ( cocos2d::CCArray::count(*v2) ) { do { v10 = cocos2d::CCArray::objectAtIndex(v8, v9); v11 = v10; if ( v3 ) { if ( v3 == -1 ) { v3 = *((_DWORD *)v10 + 259); } else if ( *((_DWORD *)v10 + 259) != v3 ) { v3 = 0; } } if ( v6 ) { v12 = *((_DWORD *)v10 + 314); if ( v6 == -1 ) { v6 = v12; } else if ( v12 != v6 ) { v6 = 0; } } if ( v7 ) { if ( v7 == -1 ) { v7 = *((_DWORD *)v11 + 233); } else if ( *((_DWORD *)v11 + 233) != v7 ) { v7 = 0; } } ++v9; } while ( v9 < cocos2d::CCArray::count(v8) ); } } } if ( v3 == -1 && v6 == -1 ) return 0; if ( v6 == 5 ) return 1; v13 = *v2; if ( *v2 ) { v14 = 0; if ( cocos2d::CCArray::count(*v2) ) { while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v13, v14) + 314) != 5 ) { if ( ++v14 >= cocos2d::CCArray::count(v13) ) goto LABEL_28; } return 1; } } LABEL_28: if ( v7 == 30 ) return 1; if ( v3 > 2903 ) { if ( v3 > 3643 ) goto LABEL_37; if ( v3 != 3643 ) { switch ( v3 ) { case 2904: case 2905: case 2907: case 2909: case 2910: case 2911: case 2912: case 2913: case 2914: case 2915: case 2916: case 2917: case 2919: case 2920: case 2921: case 2922: case 2923: case 2924: return 1; default: goto LABEL_37; } } return 0; } if ( v3 == 2903 ) return 1; if ( v3 > 1751 ) { v24 = v3 - 2063; if ( !v24 ) return 1; v17 = v24 == 2; } else { if ( v3 == 1751 ) return 1; v15 = v3 - 1594; if ( !v15 ) return 1; v16 = v15 - 21; if ( !v16 ) return 1; v17 = v16 == 89; } if ( v17 ) return 1; LABEL_37: v18 = *(_QWORD *)(a1 + 1568); if ( v18 ) { if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v18 + 1648LL))(v18) == 30 ) return 1; v19 = *(_DWORD **)(a1 + 1568); v20 = v19[259]; if ( v20 == 2065 || v20 == 1615 || (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v19 + 1584LL))(v19) || (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1568) + 1576LL))(*(_QWORD *)(a1 + 1568)) || (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1568) + 1480LL))(*(_QWORD *)(a1 + 1568)) ) { return 1; } } v21 = *(_QWORD *)(a1 + 1568); v22 = *v2; if ( !v21 ) { v26 = 0; if ( cocos2d::CCArray::count(*v2) ) { while ( 1 ) { v27 = cocos2d::CCArray::objectAtIndex(v22, v26); if ( !(*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v27 + 1480LL))(v27) ) break; if ( ++v26 >= cocos2d::CCArray::count(v22) ) return 1; } v23 = 0; goto LABEL_59; } return 1; } v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 1480LL))(v21); if ( v23 ) return v23; LABEL_59: if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) goto LABEL_65; v23 = 1; v28 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return v23; while ( 1 ) { v29 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v28); if ( (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v29 + 1576LL))(v29) ) break; if ( ++v28 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return 1; } v23 = 0; LABEL_65: if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return v23; v23 = 1; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return v23; while ( 1 ) { v30 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v4); if ( (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v30 + 1584LL))(v30) ) break; if ( ++v4 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return 1; } return 0; }