// // EditorUI::showLockedLayerAlert from 0x1401c20c0 to 0x1401c226d (429 bytes) // // 3 xrefs: // > EditorUI::onCreate @ 0x1401b24d2 // > EditorUI::pasteObjects @ 0x1401c62ec // > @ 0x14091a6e4 // // 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:03 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorUI::showLockedLayerAlert(__int64 a1, int a2) { cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // r8 __int64 v6; // rcx void **v7; // rbp char *v8; // rsi unsigned __int64 v9; // r14 __int64 v10; // rbx unsigned __int64 v11; // rdi char *v12; // rax __int128 v13; // [rsp+30h] [rbp-78h] BYREF unsigned __int64 v14; // [rsp+40h] [rbp-68h] __int64 v15; // [rsp+48h] [rbp-60h] void *Src[2]; // [rsp+58h] [rbp-50h] BYREF unsigned __int64 v17; // [rsp+68h] [rbp-40h] unsigned __int64 v18; // [rsp+70h] [rbp-38h] v3 = cocos2d::CCString::createWithFormat("Layer %i is locked.", a2); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Src = 0; v17 = 0; v18 = 0; v5 = -1; do ++v5; while ( CString[v5] ); sub_14003D230(Src, CString, v5); v13 = 0; v14 = 0; v15 = 0; v7 = Src; v8 = (char *)Src[0]; v9 = v18; if ( v18 > 0xF ) v7 = (void **)Src[0]; v10 = 0x7FFFFFFFFFFFFFFFLL; v11 = v17; if ( v17 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v6); if ( v17 > 0xF ) { if ( (v17 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v10 = v17 | 0xF; if ( (v17 | 0xF) < 0x16 ) v10 = 22; } *(_QWORD *)&v13 = sub_14003D460(v10 + 1); v14 = v11; v15 = v10; memcpy((void *)v13, v7, v11 + 1); } else { v14 = v17; v15 = 15; v13 = *(_OWORD *)v7; } EditorUI::showTextAlert(a1, &v13, 0, 1, 0x7Fu); if ( v9 > 0xF ) { v12 = v8; if ( v9 + 1 >= 0x1000 ) { v8 = *((char **)v8 - 1); if ( (unsigned __int64)(v12 - v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } }