// // EditorUI::updateEditButtonColor from 0x140202a20 to 0x140202bc0 (416 bytes) // // 5 xrefs: // > EditorUI::activateScaleControl @ 0x140202cce // > EditorUI::deactivateScaleControl @ 0x140202e5e // > EditorUI::showTransformControl @ 0x14020339c // > EditorUI::deactivateTransformControl @ 0x140203577 // > @ 0x14091af3c // // 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:14 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorUI::updateEditButtonColor(__int64 a1, __int64 a2, __int16 *a3) { cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // r8 __int64 v8; // rbx void *v9; // r8 _QWORD *v10; // rbx __int64 v11; // rcx __int64 v12; // rcx __int64 v13; // rcx __int16 v14; // [rsp+30h] [rbp-48h] BYREF char v15; // [rsp+32h] [rbp-46h] void *Block[2]; // [rsp+40h] [rbp-38h] BYREF __m128i si128; // [rsp+50h] [rbp-28h] if ( *(_QWORD *)(a1 + 864) ) { v5 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Block = 0; si128 = 0; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(Block, CString, v7); v8 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 864), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v9 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; if ( v8 ) { v10 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 952LL))(v8); v14 = *a3; v15 = *((_BYTE *)a3 + 2); v11 = v10[79]; if ( v11 ) (**(void (__fastcall ***)(__int64, __int16 *))(v11 + 368))(v11 + 368, &v14); v12 = v10[80]; if ( v12 ) (**(void (__fastcall ***)(__int64, __int16 *))(v12 + 320))(v12 + 320, &v14); v13 = v10[82]; if ( v13 || (v13 = v10[81]) != 0 ) (**(void (__fastcall ***)(__int64, __int16 *))(v13 + 320))(v13 + 320, &v14); } } }