// // EditorUI::toggleSpecialEditButtons from 0x10000c0e0 to 0x10000c5d8 (1272 bytes) // // 3 xrefs: // > EditorUI::toggleEnableRotate @ 0x100008110 // > EditorUI::updateButtons @ 0x10000ae58 // > EditorUI::activateTransformControl @ 0x10061194d // // 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 12:18:50 +0000 // __int64 __fastcall EditorUI::toggleSpecialEditButtons(__int64 a1, char a2) { unsigned int v3; // r14d __int64 v4; // rax char *v5; // r14 __int64 v6; // r13 __int64 v7; // rax const char *CString; // r12 size_t v9; // rax size_t v10; // r15 char *v11; // r13 size_t v12; // r14 __int64 v13; // r15 __int64 v14; // rax __int64 v15; // r15 __int64 v16; // rax const char *v17; // r13 size_t v18; // rax size_t v19; // r12 size_t v20; // r15 char *v21; // r14 __int64 v22; // r15 __int64 v23; // rax __int64 v24; // r15 __int64 v25; // rax const char *v26; // r13 size_t v27; // rax size_t v28; // r12 size_t v29; // r15 char *v30; // r14 __int64 v31; // r15 __int64 v32; // rax __int64 v33; // r15 __int64 v34; // rax const char *v35; // r13 size_t v36; // rax size_t v37; // r12 size_t v38; // r14 size_t *p_dst; // rsi __int64 v40; // rdi __int64 v41; // rdx __int64 v42; // r15 __int64 v43; // rax __int64 v44; // rax char v46; // [rsp+0h] [rbp-80h] char v47; // [rsp+0h] [rbp-80h] char v48; // [rsp+0h] [rbp-80h] char v49; // [rsp+0h] [rbp-80h] __int64 v51; // [rsp+18h] [rbp-68h] __int64 v52; // [rsp+18h] [rbp-68h] __int64 v53; // [rsp+20h] [rbp-60h] __int64 *v54; // [rsp+28h] [rbp-58h] char v55; // [rsp+34h] [rbp-4Ch] size_t __dst; // [rsp+38h] [rbp-48h] BYREF size_t v57; // [rsp+40h] [rbp-40h] void *__p; // [rsp+48h] [rbp-38h] unsigned int v59; // [rsp+54h] [rbp-2Ch] if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) ) { if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) ) { v3 = 0; do { v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v3); if ( !(unsigned __int8)GameObject::canRotateFree(v4) ) goto LABEL_10; } while ( ++v3 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) ); } v54 = (__int64 *)(a1 + 816); v55 = 1; v5 = (char *)&__dst + 1; LABEL_9: v59 = 0xFFFFFF; goto LABEL_11; } if ( *(_QWORD *)(a1 + 1496) ) { v54 = (__int64 *)(a1 + 816); v59 = 10921638; v5 = (char *)&__dst + 1; v55 = ((__int64 (*)(void))GameObject::canRotateFree)(); if ( (v55 & 1) == 0 ) goto LABEL_11; goto LABEL_9; } LABEL_10: v54 = (__int64 *)(a1 + 816); v59 = 10921638; v5 = (char *)&__dst + 1; v55 = 0; LABEL_11: v6 = *v54; v7 = sub_10088E820("%i", v46); CString = (const char *)cocos2d::CCString::getCString(v7); v9 = strlen(CString); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_66; v10 = v9; v53 = v6; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; __dst = v12 + 1; v5 = (char *)&__dst + 1; v57 = v10; goto LABEL_18; } LOBYTE(__dst) = 2 * v9; v11 = (char *)&__dst + 1; if ( v9 ) LABEL_18: memmove(v11, CString, v10); v11[v10] = 0; v13 = cocos2d::CCDictionary::objectForKey(v53, &__dst); if ( (__dst & 1) != 0 ) operator delete(__p); if ( v13 ) { v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 1072LL))(v13); ButtonSprite::setColor(v14, v59); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 1056LL))(v13, v55 & 1); } v15 = *v54; v16 = sub_10088E820("%i", v47); v17 = (const char *)cocos2d::CCString::getCString(v16); v18 = strlen(v17); if ( v18 > 0xFFFFFFFFFFFFFFF7LL ) LABEL_66: sub_100003630(); v19 = v18; if ( v18 >= 0x17 ) { v51 = v15; v20 = 26; if ( (v18 | 7) != 0x17 ) v20 = (v18 | 7) + 1; v5 = (char *)operator new(v20); __p = v5; __dst = v20 + 1; v15 = v51; v57 = v19; goto LABEL_30; } LOBYTE(__dst) = 2 * v18; if ( v18 ) LABEL_30: memmove(v5, v17, v19); v5[v19] = 0; v21 = (char *)&__dst + 1; v22 = cocos2d::CCDictionary::objectForKey(v15, &__dst); if ( (__dst & 1) != 0 ) operator delete(__p); if ( v22 ) { v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 1072LL))(v22); ButtonSprite::setColor(v23, v59); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v22 + 1056LL))(v22, v55 & 1); } v24 = *v54; v25 = sub_10088E820("%i", v48); v26 = (const char *)cocos2d::CCString::getCString(v25); v27 = strlen(v26); if ( v27 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_66; v28 = v27; if ( v27 >= 0x17 ) { v52 = v24; v29 = 26; if ( (v27 | 7) != 0x17 ) v29 = (v27 | 7) + 1; v21 = (char *)operator new(v29); __p = v21; __dst = v29 + 1; v24 = v52; v57 = v28; goto LABEL_42; } LOBYTE(__dst) = 2 * v27; if ( v27 ) LABEL_42: memmove(v21, v26, v28); v21[v28] = 0; v30 = (char *)&__dst + 1; v31 = cocos2d::CCDictionary::objectForKey(v24, &__dst); if ( (__dst & 1) != 0 ) operator delete(__p); if ( v31 ) { v32 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 1072LL))(v31); ButtonSprite::setColor(v32, v59); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v31 + 1056LL))(v31, v55 & 1); } v33 = *v54; v34 = sub_10088E820("%i", v49); v35 = (const char *)cocos2d::CCString::getCString(v34); v36 = strlen(v35); if ( v36 > 0xFFFFFFFFFFFFFFF7LL ) goto LABEL_66; v37 = v36; if ( v36 >= 0x17 ) { v38 = 26; if ( (v36 | 7) != 0x17 ) v38 = (v36 | 7) + 1; __p = operator new(v38); __dst = v38 + 1; v30 = (char *)__p; v57 = v37; goto LABEL_54; } LOBYTE(__dst) = 2 * v36; if ( v36 ) LABEL_54: memmove(v30, v35, v37); v30[v37] = 0; p_dst = &__dst; v40 = v33; v42 = cocos2d::CCDictionary::objectForKey(v33, &__dst); if ( (__dst & 1) != 0 ) { v40 = (__int64)__p; operator delete(__p); } if ( v42 ) { v43 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v42 + 1072LL))(v42); ButtonSprite::setColor(v43, v59); v40 = v42; p_dst = (size_t *)(v55 & 1); (*(void (__fastcall **)(__int64, size_t *))(*(_QWORD *)v42 + 1056LL))(v42, p_dst); } if ( (v55 & 1) != 0 ) { v44 = GameManager::sharedState(v40, p_dst, v41); if ( (unsigned __int8)GameManager::getGameVariable(v44, "0007") && (a2 || !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792))) ) { EditorUI::activateRotationControl(a1, 0); } } else { EditorUI::deactivateRotationControl(a1); } return EditorUI::updateGridNodeSize_1(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source