// // EditorUI::moveObjectCall_1 from 0x1401feb10 to 0x1401fee6c (860 bytes) // // 32 xrefs: // > EditorUI::handleEditorAction @ 0x1401c2654 // > EditorUI::handleEditorAction @ 0x1401c266a // > EditorUI::handleEditorAction @ 0x1401c2680 // > EditorUI::handleEditorAction @ 0x1401c2696 // > EditorUI::handleEditorAction @ 0x1401c26ac // > EditorUI::handleEditorAction @ 0x1401c26c3 // > EditorUI::handleEditorAction @ 0x1401c26d9 // > EditorUI::handleEditorAction @ 0x1401c26ef // > EditorUI::handleEditorAction @ 0x1401c2705 // > EditorUI::handleEditorAction @ 0x1401c271b // > EditorUI::handleEditorAction @ 0x1401c2731 // > EditorUI::handleEditorAction @ 0x1401c2747 // > EditorUI::handleEditorAction @ 0x1401c275d // > EditorUI::handleEditorAction @ 0x1401c2773 // > EditorUI::handleEditorAction @ 0x1401c2789 // > EditorUI::handleEditorAction @ 0x1401c279f // > EditorUI::handleEditorAction @ 0x1401c27b5 // > EditorUI::handleEditorAction @ 0x1401c27cb // > EditorUI::handleEditorAction @ 0x1401c27e1 // > EditorUI::handleEditorAction @ 0x1401c27f7 // > EditorUI::handleEditorAction @ 0x1401c280d // > EditorUI::handleEditorAction @ 0x1401c2823 // > EditorUI::handleEditorAction @ 0x1401c2839 // > EditorUI::handleEditorAction @ 0x1401c284f // > EditorUI::handleEditorAction @ 0x1401c2865 // > EditorUI::handleEditorAction @ 0x1401c287b // > EditorUI::handleEditorAction @ 0x1401c2891 // > EditorUI::handleEditorAction @ 0x1401c28a7 // > EditorUI::handleEditorAction @ 0x1401c28bc // > EditorUI::handleEditorAction @ 0x1401c28ee // > EditorUI::moveObjectCall @ 0x1401feafc // > @ 0x14091ac78 // // 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:12 +0000 // // Hidden C++ exception states: #wind=2 unsigned int __fastcall EditorUI::moveObjectCall_1(__int64 a1, unsigned int a2) { cocos2d::CCArray **v4; // rsi unsigned int result; // eax __int64 v6; // rax unsigned int v7; // ebp _DWORD *v8; // rdx int v9; // ecx int v10; // eax int v11; // ecx __int64 v12; // rax __int64 v13; // rax int v14; // edx __int64 v15; // rdx struct cocos2d::CCObject *v16; // rbx __int64 v17; // rax __int64 v18; // rbx cocos2d::CCObject *v19; // rsi cocos2d::CCObject *v20; // rax __int64 v21; // rbp unsigned int v22; // ebx __int64 v23; // rbx __int64 v24; // rax __int64 v25; // rax char v26; // [rsp+40h] [rbp+8h] BYREF cocos2d::CCObject *v27; // [rsp+50h] [rbp+18h] BYREF v4 = (cocos2d::CCArray **)(a1 + 944); if ( *(_QWORD *)(a1 + 1568) || (result = cocos2d::CCArray::count(*v4)) != 0 ) { v6 = cocos2d::CCDirector::sharedDirector(a1); v7 = 0; if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 176LL))(v6) + 157) ) { v8 = (_DWORD *)(*(_QWORD *)(a1 + 1512) + 15408LL); ++v8[3]; v9 = v8[24]; if ( v9 >= 0 ) { v10 = v8[8] - v9; v11 = 0; if ( v10 > 1 ) { do { if ( v11 >= 7 ) break; v10 = (unsigned int)v10 >> 1; ++v11; } while ( (unsigned int)v10 > 1 ); } ++v8[v11 + 16]; v4 = (cocos2d::CCArray **)(a1 + 944); } v8[24] = v8[8]; } v12 = EditorSFXManager::sharedState(); EditorSFXManager::playAction(v12, 150); switch ( a2 ) { case 1u: case 2u: case 3u: case 4u: case 0xDu: case 0xEu: case 0xFu: case 0x10u: case 0x19u: case 0x1Au: case 0x1Bu: case 0x1Cu: v13 = EditorSFXManager::sharedState(); v14 = 151; goto LABEL_16; case 5u: case 6u: case 7u: case 8u: v13 = EditorSFXManager::sharedState(); v14 = 152; goto LABEL_16; case 9u: case 0xAu: case 0xBu: case 0xCu: v13 = EditorSFXManager::sharedState(); v14 = 153; goto LABEL_16; case 0x11u: case 0x12u: case 0x13u: case 0x14u: case 0x15u: case 0x16u: case 0x17u: case 0x18u: case 0x1Du: case 0x1Eu: case 0x1Fu: case 0x20u: v13 = EditorSFXManager::sharedState(); v14 = 155; goto LABEL_16; case 0x21u: case 0x22u: case 0x23u: case 0x24u: v13 = EditorSFXManager::sharedState(); v14 = 276; LABEL_16: EditorSFXManager::playAction(v13, v14); break; default: break; } EditorUI::moveForCommand(a1, &v26, a2); if ( cocos2d::CCArray::count(*v4) ) { EditorUI::createUndoObject(a1, v15, 0); if ( cocos2d::CCArray::count(*v4) ) { do { v16 = cocos2d::CCArray::objectAtIndex(*v4, v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const struct cocos2d::CCPoint *)&v26); EditorUI::moveObject(a1, v16, v17); ++v7; } while ( v7 < cocos2d::CCArray::count(*v4) ); } } else { v18 = *(_QWORD *)(a1 + 1568); v19 = (cocos2d::CCObject *)operator new(0xA0u); v27 = v19; cocos2d::CCObject::CCObject(v19); *(_QWORD *)v19 = &UndoObject::`vftable'; *((_QWORD *)v19 + 7) = 0; *((_DWORD *)v19 + 16) = 0; *((_QWORD *)v19 + 9) = 0; *((_WORD *)v19 + 40) = 0; GJTransformState::GJTransformState((__int64)v19 + 84); if ( v18 ) { v20 = (cocos2d::CCObject *)GameObjectCopy::create(v18); *((_QWORD *)v19 + 7) = v20; cocos2d::CCObject::retain(v20); } *((_DWORD *)v19 + 16) = 5; cocos2d::CCObject::autorelease(v19); v21 = *(_QWORD *)(a1 + 1512); cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v21 + 14920)); v22 = 1000; if ( !*(_BYTE *)(v21 + 14663) ) v22 = 200; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v21 + 14912)) >= v22 ) cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v21 + 14912), 0, 1); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v21 + 14912), v19); v23 = *(_QWORD *)(a1 + 1568); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const struct cocos2d::CCPoint *)&v26); EditorUI::moveObject(a1, v23, v24); } if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) ) { v25 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 200LL))(*(_QWORD *)(a1 + 840)); cocos2d::CCPoint::operator+(v25, &v27, &v26); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject **))(**(_QWORD **)(a1 + 840) + 184LL))( *(_QWORD *)(a1 + 840), &v27); GJTransformControl::refreshControl(*(_QWORD *)(a1 + 840)); } if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 344LL))(*(_QWORD *)(a1 + 808)) ) { *(_BYTE *)(a1 + 824) = 1; EditorUI::activateRotationControl(a1, 0); } (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 432) + 40LL))(a1 + 432); return EditorUI::updateButtons(a1); } return result; }