// // SetupSmartBlockLayer::onCreateAll from 0x1405edab0 to 0x1405edd58 (680 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::init @ 0x1405eca35 // > @ 0x14092f0c0 // // 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:35:04 +0000 // // Hidden C++ exception states: #wind=4 int SetupSmartBlockLayer::onCreateAll() { __int64 v0; // rax __int64 v1; // r12 cocos2d::CCDictionary *v2; // rsi cocos2d::CCArray *v3; // rdi unsigned int v4; // ebx cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // r8 cocos2d::CCArray *v8; // r15 unsigned int v9; // r14d __int64 v10; // rcx struct cocos2d::CCObject *v11; // r13 void **v12; // rsi unsigned __int64 v13; // rdi unsigned __int64 v14; // rbx __int64 v15; // rcx unsigned int v17; // [rsp+20h] [rbp-39h] void *v18; // [rsp+28h] [rbp-31h] cocos2d::CCDictionary *v19; // [rsp+28h] [rbp-31h] __int128 v20; // [rsp+30h] [rbp-29h] BYREF unsigned __int64 v21; // [rsp+40h] [rbp-19h] __int64 v22; // [rsp+48h] [rbp-11h] cocos2d::CCArray *v23; // [rsp+50h] [rbp-9h] __int128 *v24; // [rsp+58h] [rbp-1h] void *v25; // [rsp+60h] [rbp+7h] void *Src[2]; // [rsp+68h] [rbp+Fh] BYREF unsigned __int64 v27; // [rsp+78h] [rbp+1Fh] unsigned __int64 v28; // [rsp+80h] [rbp+27h] v0 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v18 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v0 = *(_QWORD *)&qword_14090BFB0; } v1 = *(_QWORD *)(v0 + 1664); if ( v1 ) { *(_DWORD *)(v1 + 204) = 0; v2 = *(cocos2d::CCDictionary **)(v1 + 56); v19 = v2; if ( v2 ) { v3 = cocos2d::CCDictionary::allKeys(v2); v23 = v3; v4 = 0; v17 = 0; for ( LODWORD(v0) = cocos2d::CCArray::count(v3); v4 < (unsigned int)v0; LODWORD(v0) = cocos2d::CCArray::count(v3) ) { v5 = cocos2d::CCArray::stringAtIndex(v3, v4); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Src = 0; v27 = 0; v28 = 0; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(Src, CString, v7); v8 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v2, Src); v9 = 0; if ( cocos2d::CCArray::count(v8) ) { do { v11 = cocos2d::CCArray::objectAtIndex(v8, v9); v24 = &v20; v20 = 0; v21 = 0; v22 = 0; v12 = Src; if ( v28 > 0xF ) v12 = (void **)Src[0]; v13 = v27; if ( v27 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v10); if ( v27 > 0xF ) { v14 = v27 | 0xF; if ( (v27 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v14 < 0x16 ) v14 = 22; } else { v14 = 0x7FFFFFFFFFFFFFFFLL; } *(_QWORD *)&v20 = sub_14003D460(v14 + 1); v21 = v13; v22 = v14; memcpy((void *)v20, v12, v13 + 1); } else { v21 = v27; v22 = 15; v20 = *(_OWORD *)v12; } v15 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v25 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v15 = qword_14090BFD0; } EditorUI::createPrefab(*(_QWORD *)(*(_QWORD *)(v15 + 568) + 14904LL), v1, &v20, *((_DWORD *)v11 + 30)); ++v9; } while ( v9 < cocos2d::CCArray::count(v8) ); v4 = v17; v3 = v23; v2 = v19; } sub_14003D310((__int64)Src); v17 = ++v4; } } } return v0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source