// // EditorUI::onPasteState from 0x1401c70e0 to 0x1401c7293 (435 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0x1401c446a // > EditorUI::init @ 0x1401aba1f // > @ 0x14091a798 // // 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:05 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall EditorUI::onPasteState(__int64 a1) { _QWORD *v2; // rsi _QWORD *v3; // rbp _QWORD *v4; // rbx bool hasSoundsForAction; // al __int64 v6; // r10 __int64 v7; // rbp __int64 v8; // rbx __int64 v9; // rdi __int64 v10; // rdx unsigned int *v11; // r8 __int64 v12; // rax _QWORD *v13; // r8 __int64 v14; // rcx __int64 v15; // r8 unsigned __int64 v16; // r9 __int64 v17; // r8 unsigned int *v18; // rbx __int64 v19; // rax _QWORD *v20; // rbx _QWORD *i; // rsi void *v22; // [rsp+40h] [rbp+8h] v2 = (_QWORD *)(a1 + 1568); if ( *(_QWORD *)(a1 + 1568) ) { v3 = (_QWORD *)(a1 + 1568); } else { if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) return; v3 = (_QWORD *)(a1 + 1568); } v4 = (_QWORD *)EditorSFXManager::sharedState(); hasSoundsForAction = EditorSFXManager::hasSoundsForAction(v4, 113); EditorSFXManager::playAction((__int64)v4, 2 * hasSoundsForAction + 111); v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v22 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = v3; v6 = qword_14090BFD0; } v7 = *(_QWORD *)(a1 + 944); v8 = *v2; v9 = *(_QWORD *)(v6 + 568); v10 = *(_QWORD *)(v9 + 14776); if ( v10 ) { if ( v8 ) { GameObject::duplicateAttributes(*v2, v10); *(_BYTE *)(v8 + 1156) = 1; } else if ( v7 ) { v11 = *(unsigned int **)(v7 + 56); v12 = *v11; if ( (_DWORD)v12 ) { v13 = *((_QWORD **)v11 + 2); if ( v13 <= &v13[v12 - 1] ) { do { if ( !*v13 ) break; GameObject::duplicateAttributes(*v13, *(_QWORD *)(v9 + 14776)); *(_BYTE *)(v14 + 1156) = 1; v13 = (_QWORD *)(v15 + 8); } while ( (unsigned __int64)v13 <= v16 ); } } } if ( !(unsigned __int8)GameManager::getGameVariable(v6, "0156") ) { v17 = *(_QWORD *)(v9 + 14776); if ( v17 ) { if ( v8 ) { LevelEditorLayer::applyGroupState(v9, v8, v17); } else if ( v7 ) { v18 = *(unsigned int **)(v7 + 56); v19 = *v18; if ( (_DWORD)v19 ) { v20 = *((_QWORD **)v18 + 2); for ( i = &v20[v19 - 1]; v20 <= i; ++v20 ) { if ( !*v20 ) break; LevelEditorLayer::applyGroupState(v9, *v20, *(_QWORD *)(v9 + 14776)); } } } } } } EditorUI::updateObjectInfoLabel(a1); }