// // sub_100426AA8 from 0x100426aa8 to 0x100426bb0 (264 bytes) // // 5 xrefs: // > SetupSmartBlockLayer::onClose @ 0x10007844c // > SetupSmartBlockLayer::onClose @ 0x1000784a0 // > SmartGameObject::customObjectSetup @ 0x100426d94 // > EditorUI::createSmartObjectsFromTemplate @ 0x100479494 // > sub_1004796B4 @ 0x1004798dc // // This function is hookable on this platform (idp: arm, 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:05:01 +0000 // void __fastcall sub_100426AA8(__int64 a1) { int v2; // w8 int v3; // w8 const char *v4; // x9 const char *v5; // x10 char *v6; // x21 _QWORD *v7; // x20 bool v8; // w0 bool v9; // w22 std::string *v10; // x0 __int64 v11; // x0 __int64 v12; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v14; // [xsp+1Fh] [xbp-21h] v2 = *(_DWORD *)(a1 + 1028); switch ( v2 ) { case 2897: v3 = *(unsigned __int8 *)(a1 + 1347); v4 = "smartBlock03_001.png"; v5 = "smartBlock03b_001.png"; break; case 2896: v3 = *(unsigned __int8 *)(a1 + 1347); v4 = "smartBlock02_001.png"; v5 = "smartBlock02b_001.png"; break; case 2895: v3 = *(unsigned __int8 *)(a1 + 1347); v4 = "smartBlock01_001.png"; v5 = "smartBlock01b_001.png"; break; default: return; } if ( v3 ) v6 = (char *)v5; else v6 = (char *)v4; v7 = (_QWORD *)(a1 + 1376); sub_100009900(__p, v6); v8 = sub_1000045BC((_QWORD *)(a1 + 1376), __p); v9 = v8; if ( v14 < 0 ) { operator delete(__p[0]); if ( v9 ) return; } else if ( v8 ) { return; } v10 = std::string::assign((std::string *)(a1 + 1376), v6); v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); if ( *(char *)(a1 + 1399) < 0 ) v7 = (_QWORD *)*v7; v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, v7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source