// // EditorUI::editObjectSpecial from 0x1401bd1a0 to 0x1401bdd0a (2922 bytes) // // 3 xrefs: // > EditorUI::editObject2 @ 0x1401bd190 // > EditorUI::handleEditorAction @ 0x1401c375c // > @ 0x14091a480 // // 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:28:01 +0000 // // Hidden C++ exception states: #wind=5 int __fastcall EditorUI::editObjectSpecial(__int64 a1) { _QWORD *v2; // r13 cocos2d::CCArray **v3; // r15 __int64 v4; // rax _DWORD *v5; // rdx int v6; // ecx unsigned int v7; // ebp int v8; // eax int v9; // ecx cocos2d::CCArray *v10; // rcx _DWORD *v11; // rax unsigned int v12; // ebx int v13; // edi int v14; // r14d unsigned int v15; // r12d struct cocos2d::CCObject *v16; // rax __int64 v17; // rcx char v18; // r12 unsigned int v19; // r12d struct cocos2d::CCObject *v20; // rax cocos2d::CCArray *v21; // r15 unsigned int v22; // edi __int64 v23; // r9 __int64 v24; // rbx __int64 v25; // rdi cocos2d::CCObject *v26; // rsi char v27; // al _QWORD *v28; // rbx bool hasSoundsForAction; // al __int64 v30; // rax cocos2d::CCObject *v31; // rcx __int64 v32; // rbx __int64 v33; // rdi __int64 v34; // rbx __int64 v35; // rdi __int64 v36; // rbx __int64 v37; // rdi __int64 v38; // rax __int64 v39; // rcx cocos2d::CCArray *v40; // rdi unsigned __int8 v41; // bl __int64 v42; // rdi __int64 v43; // rsi cocos2d::CCObject *v44; // r14 unsigned int v45; // ebx struct cocos2d::CCObject *v46; // rax __int64 v47; // rcx unsigned int v48; // ebx struct cocos2d::CCObject *v49; // rax __int64 v50; // rcx cocos2d::CCArray *v51; // rdx unsigned int v52; // ebx struct cocos2d::CCObject *v53; // rax cocos2d::CCArray *v54; // rcx unsigned int v55; // ebx struct cocos2d::CCObject *v56; // rax char v57; // al cocos2d::CCArray *v58; // rcx struct cocos2d::CCObject *v59; // rax _QWORD *v60; // rbx bool v61; // al cocos2d::CCArray *v62; // rbx struct cocos2d::CCObject *v63; // rax cocos2d::CCObject *v64; // rdi _QWORD *v65; // rbx bool v66; // al __int128 v68; // [rsp+20h] [rbp-48h] BYREF __int64 v69; // [rsp+30h] [rbp-38h] __int64 v70; // [rsp+38h] [rbp-30h] cocos2d::CCArray *v71; // [rsp+70h] [rbp+8h] v2 = (_QWORD *)(a1 + 1568); v3 = (cocos2d::CCArray **)(a1 + 944); if ( !*(_QWORD *)(a1 + 1568) ) { LODWORD(v4) = cocos2d::CCArray::count(*v3); if ( !(_DWORD)v4 ) return v4; } v5 = (_DWORD *)(*(_QWORD *)(a1 + 1512) + 15408LL); ++v5[4]; v6 = v5[24]; v7 = 0; if ( v6 >= 0 ) { v8 = v5[8] - v6; v9 = 0; if ( v8 > 1 ) { do { if ( v9 >= 7 ) break; v8 = (unsigned int)v8 >> 1; ++v9; } while ( (unsigned int)v8 > 1 ); } ++v5[v9 + 16]; v3 = (cocos2d::CCArray **)(a1 + 944); v2 = (_QWORD *)(a1 + 1568); } v5[24] = v5[8]; v10 = *v3; v71 = *v3; v11 = (_DWORD *)*v2; v12 = -1; v13 = -1; v14 = -1; if ( *v2 ) { v12 = v11[259]; v13 = v11[314]; v14 = v11[233]; } else if ( v10 ) { v15 = 0; if ( cocos2d::CCArray::count(v10) ) { do { v16 = cocos2d::CCArray::objectAtIndex(v71, v15); if ( v12 ) { if ( v12 == -1 ) { v12 = *((_DWORD *)v16 + 259); } else if ( *((_DWORD *)v16 + 259) != v12 ) { v12 = 0; } } if ( v13 ) { if ( v13 == -1 ) { v13 = *((_DWORD *)v16 + 314); } else if ( *((_DWORD *)v16 + 314) != v13 ) { v13 = 0; } } if ( v14 ) { if ( v14 == -1 ) { v14 = *((_DWORD *)v16 + 233); } else if ( *((_DWORD *)v16 + 233) != v14 ) { v14 = 0; } } ++v15; } while ( v15 < cocos2d::CCArray::count(v71) ); v2 = (_QWORD *)(a1 + 1568); v3 = (cocos2d::CCArray **)(a1 + 944); } } if ( *v2 ) { LODWORD(v4) = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 1584LL))(*v2); v18 = v4; } else { v19 = 0; LODWORD(v4) = cocos2d::CCArray::count(*v3); if ( (_DWORD)v4 ) { while ( 1 ) { v20 = cocos2d::CCArray::objectAtIndex(*v3, v19); LODWORD(v4) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v20 + 1584LL))(v20); if ( !(_BYTE)v4 ) break; ++v19; LODWORD(v4) = cocos2d::CCArray::count(*v3); if ( v19 >= (unsigned int)v4 ) goto LABEL_34; } v18 = 0; } else { LABEL_34: v18 = 1; } } if ( v12 == -1 && v13 == -1 ) { if ( v14 == -1 && !v18 ) return v4; } else if ( v13 == 5 ) { LABEL_107: v62 = nullptr; if ( *(_QWORD *)(a1 + 944) ) { v62 = (cocos2d::CCArray *)cocos2d::CCArray::create(v17); if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) { do { v63 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v7); if ( *((_DWORD *)v63 + 314) == 5 ) cocos2d::CCArray::addObject(v62, v63); ++v7; } while ( v7 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ); } } v51 = v62; v50 = *(_QWORD *)(a1 + 1568); goto LABEL_113; } v4 = *(_QWORD *)(a1 + 1568); if ( v4 && *(_DWORD *)(v4 + 1256) == 5 ) goto LABEL_107; v21 = *(cocos2d::CCArray **)(a1 + 944); if ( v21 ) { v22 = 0; LODWORD(v4) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); if ( (_DWORD)v4 ) { while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v21, v22) + 314) != 5 ) { ++v22; LODWORD(v4) = cocos2d::CCArray::count(v21); if ( v22 >= (unsigned int)v4 ) goto LABEL_48; } goto LABEL_107; } } LABEL_48: v23 = *(_QWORD *)(a1 + 1512); if ( *(_BYTE *)(v23 + 12670) && (v12 == 1704 || v12 == 1751) ) { v24 = *(_QWORD *)(a1 + 944); v25 = *(_QWORD *)(a1 + 1568); v26 = (cocos2d::CCObject *)operator new(0x3E8u); SetupTriggerPopup::SetupTriggerPopup((__int64)v26); *(_QWORD *)v26 = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 40) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 41) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 42) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 43) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 44) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 51) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 54) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 68) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 83) = &SetupDashRingPopup::`vftable'; *((_QWORD *)v26 + 84) = &SetupDashRingPopup::`vftable'; v27 = SetupDashRingPopup::init(v26, v25, v24); LABEL_52: if ( v27 ) { cocos2d::CCObject::autorelease(v26); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 8LL))(v26, 1); v26 = nullptr; } v28 = (_QWORD *)EditorSFXManager::sharedState(); hasSoundsForAction = EditorSFXManager::hasSoundsForAction(v28, 109); EditorSFXManager::playAction((__int64)v28, 2 * hasSoundsForAction + 107); v30 = *(_QWORD *)v26; v31 = v26; goto LABEL_115; } if ( v12 == 2903 ) { v32 = *(_QWORD *)(a1 + 944); v33 = *(_QWORD *)(a1 + 1568); v26 = (cocos2d::CCObject *)operator new(0x410u); SetupTriggerPopup::SetupTriggerPopup((__int64)v26); *(_QWORD *)v26 = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 40) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 41) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 42) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 43) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 44) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 51) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 54) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 68) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 83) = &SetupGradientPopup::`vftable'; *((_QWORD *)v26 + 84) = &SetupGradientPopup::`vftable'; *((_DWORD *)v26 + 252) = 0; *((_QWORD *)v26 + 127) = 0; *((_DWORD *)v26 + 256) = 0; *((_QWORD *)v26 + 129) = 0; v27 = SetupGradientPopup::init(v26, v33, v32); goto LABEL_52; } if ( v12 != 2904 ) { switch ( v12 ) { case 0x80Fu: v34 = *(_QWORD *)(a1 + 944); v35 = *(_QWORD *)(a1 + 1568); v26 = (cocos2d::CCObject *)operator new(0x3E8u); SetupTriggerPopup::SetupTriggerPopup((__int64)v26); *(_QWORD *)v26 = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 40) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 41) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 42) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 43) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 44) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 51) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 54) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 68) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 83) = &SetupCheckpointPopup::`vftable'; *((_QWORD *)v26 + 84) = &SetupCheckpointPopup::`vftable'; v27 = SetupCheckpointPopup::init(v26, v35, v34); goto LABEL_52; case 0x2EBu: case 0xB56u: case 0xBD3u: v38 = SetupTeleportPopup::create( *(_QWORD *)(a1 + 1568), *(_QWORD *)(a1 + 944), v12, *(unsigned __int8 *)(*(_QWORD *)(v23 + 3528) + 341LL)); goto LABEL_114; case 0x64Fu: v36 = *(_QWORD *)(a1 + 944); v37 = *(_QWORD *)(a1 + 1568); v26 = (cocos2d::CCObject *)operator new(0x3E8u); SetupTriggerPopup::SetupTriggerPopup((__int64)v26); *(_QWORD *)v26 = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 40) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 41) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 42) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 43) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 44) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 51) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 54) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 68) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 83) = &SetItemIDLayer::`vftable'; *((_QWORD *)v26 + 84) = &SetItemIDLayer::`vftable'; v27 = SetItemIDLayer::init(v26, v37, v36); goto LABEL_52; case 0x811u: LABEL_67: v68 = 0; v69 = 0; v70 = 15; LOBYTE(v68) = 0; v38 = CreateParticlePopup::create(*(_QWORD *)(a1 + 1568), *(_QWORD *)(a1 + 944), &v68); LABEL_114: v64 = (cocos2d::CCObject *)v38; v65 = (_QWORD *)EditorSFXManager::sharedState(); v66 = EditorSFXManager::hasSoundsForAction(v65, 109); EditorSFXManager::playAction((__int64)v65, 2 * v66 + 107); v31 = v64; v30 = *(_QWORD *)v64; LABEL_115: LODWORD(v4) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(v30 + 1064))(v31); return v4; } v39 = *(_QWORD *)(a1 + 1568); if ( v12 == 1594 ) { v38 = SetupObjectTogglePopup::create( v39, *(_QWORD *)(a1 + 944), *(unsigned __int8 *)(*(_QWORD *)(v23 + 3528) + 341LL)); goto LABEL_114; } v40 = *(cocos2d::CCArray **)(a1 + 944); if ( v39 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v39 + 1480LL))(v39) ) { LABEL_72: v41 = *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 3528LL) + 341LL); v42 = *(_QWORD *)(a1 + 944); v43 = *(_QWORD *)(a1 + 1568); v44 = (cocos2d::CCObject *)operator new(0x3E8u); SetupTriggerPopup::SetupTriggerPopup((__int64)v44); *(_QWORD *)v44 = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 40) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 41) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 42) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 43) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 44) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 51) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 54) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 68) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 83) = &EditGameObjectPopup::`vftable'; *((_QWORD *)v44 + 84) = &EditGameObjectPopup::`vftable'; if ( (unsigned __int8)EditGameObjectPopup::init(v44, v43, v42, v41) ) { cocos2d::CCObject::autorelease(v44); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v44 + 8LL))(v44, 1); v44 = nullptr; } v60 = (_QWORD *)EditorSFXManager::sharedState(); v61 = EditorSFXManager::hasSoundsForAction(v60, 109); EditorSFXManager::playAction((__int64)v60, 2 * v61 + 107); v30 = *(_QWORD *)v44; v31 = v44; goto LABEL_115; } } else { v45 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) goto LABEL_72; while ( 1 ) { v46 = cocos2d::CCArray::objectAtIndex(v40, v45); if ( !(*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v46 + 1480LL))(v46) ) break; if ( ++v45 >= cocos2d::CCArray::count(v40) ) goto LABEL_72; } } if ( v18 ) goto LABEL_103; v47 = *(_QWORD *)(a1 + 1568); if ( v14 == 30 ) { v38 = SetupInteractObjectPopup::create(v47, *(_QWORD *)(a1 + 944)); goto LABEL_114; } if ( v47 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v47 + 1576LL))(v47) ) { v38 = SetupAnimSettingsPopup::create(*(_QWORD *)(a1 + 1568), 0); goto LABEL_114; } LODWORD(v4) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); if ( (_DWORD)v4 ) { v48 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) { LABEL_88: v38 = SetupInteractObjectPopup::create(*(_QWORD *)(a1 + 1568), *(_QWORD *)(a1 + 944)); goto LABEL_114; } while ( 1 ) { v49 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v48); if ( (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v49 + 1648LL))(v49) != 30 ) break; if ( ++v48 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) goto LABEL_88; } v50 = *(_QWORD *)(a1 + 1568); if ( v50 && *(_DWORD *)(v50 + 1256) == 5 ) { v51 = *(cocos2d::CCArray **)(a1 + 944); LABEL_113: v38 = SetupSmartBlockLayer::create(v50, v51); goto LABEL_114; } v52 = 0; if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) goto LABEL_67; while ( 1 ) { v53 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v52); v54 = *(cocos2d::CCArray **)(a1 + 944); if ( *((_DWORD *)v53 + 259) != 2065 ) break; if ( ++v52 >= cocos2d::CCArray::count(v54) ) goto LABEL_67; } v55 = 0; if ( !cocos2d::CCArray::count(v54) ) { LABEL_99: v38 = SetupAnimSettingsPopup::create(*(_QWORD *)(a1 + 1568), *(_QWORD *)(a1 + 944)); goto LABEL_114; } while ( 1 ) { v56 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v55); v57 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v56 + 1576LL))(v56); v58 = *(cocos2d::CCArray **)(a1 + 944); if ( !v57 ) break; if ( ++v55 >= cocos2d::CCArray::count(v58) ) goto LABEL_99; } if ( cocos2d::CCArray::count(v58) ) { do { v59 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v7); LODWORD(v4) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v59 + 1584LL))(v59); if ( !(_BYTE)v4 ) return v4; } while ( ++v7 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ); } LABEL_103: v38 = SetupRotatePopup::create(*(_QWORD *)(a1 + 1568), *(_QWORD *)(a1 + 944)); goto LABEL_114; } } return v4; }