// // SmartGameObject::updateSmartFrame from 0x1406414b0 to 0x1406416a4 (500 bytes) // // 8 xrefs: // > EditorUI::createSmartObjectsFromTemplate @ 0x1401b70a5 // > EditorUI::createPrefab @ 0x1401b7636 // > SetupSmartBlockLayer::onClose @ 0x1405edd93 // > SetupSmartBlockLayer::onClose @ 0x1405eddd2 // > SmartGameObject::customObjectSetup @ 0x140641847 // > @ 0x1408e81a0 // > @ 0x1408e81e8 // > @ 0x140930fb0 // // 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:35 +0000 // void __fastcall SmartGameObject::updateSmartFrame(__int64 *a1) { int v2; // ecx int v3; // ecx const char *v4; // rax char *v5; // rbx size_t v6; // rdi size_t v7; // r8 const char *v8; // r14 char *v9; // r15 void **v10; // rdx const char *v11; // rcx size_t v12; // r12 size_t v13; // r13 size_t v14; // r8 int v15; // ebp char *v16; // rax __int64 v17; // rdx __int64 v18; // rcx __int64 v19; // rbx cocos2d::CCSpriteFrameCache *v20; // rax struct cocos2d::CCSpriteFrame *v21; // rax void *Buf2[2]; // [rsp+30h] [rbp-58h] BYREF size_t Size; // [rsp+40h] [rbp-48h] unsigned __int64 v24; // [rsp+48h] [rbp-40h] v2 = *((_DWORD *)a1 + 259) - 2895; if ( v2 ) { v3 = v2 - 1; if ( v3 ) { if ( v3 != 1 ) return; v4 = "smartBlock03b_001.png"; v5 = "smartBlock03_001.png"; } else { v4 = "smartBlock02b_001.png"; v5 = "smartBlock02_001.png"; } } else { v4 = "smartBlock01b_001.png"; v5 = "smartBlock01_001.png"; } if ( *((_BYTE *)a1 + 1360) ) v5 = (char *)v4; v6 = -1; v7 = -1; Size = 0; v24 = 0; *(_OWORD *)Buf2 = 0; do ++v7; while ( v5[v7] ); sub_14003D230(Buf2, v5, v7); v8 = (const char *)(a1 + 175); v9 = (char *)Buf2[0]; v10 = Buf2; if ( v24 > 0xF ) v10 = (void **)Buf2[0]; v11 = (const char *)(a1 + 175); if ( (unsigned __int64)a1[178] > 0xF ) v11 = *(const char **)v8; v12 = a1[177]; v13 = Size; v14 = v12; if ( Size < v12 ) v14 = Size; v15 = memcmp(v11, v10, v14); if ( !v15 ) { if ( v12 >= v13 ) v15 = v12 > v13; else v15 = -1; } if ( v24 > 0xF ) { v16 = v9; if ( v24 + 1 >= 0x1000 ) { v9 = *((char **)v9 - 1); if ( (unsigned __int64)(v16 - v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } if ( v15 ) { do ++v6; while ( v5[v6] ); sub_1400405A0((void **)a1 + 175, v5, v6); if ( (unsigned __int64)a1[178] > 0xF ) v8 = *(const char **)v8; v19 = *a1; v20 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v18, v17); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v8); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v19 + 1008))(a1, v21); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source