// // cocos2d::CCAnimation::initWithSpriteFrames from 0x100281000 to 0x100281151 (337 bytes) // // 1 xrefs: // > cocos2d::CCAnimation::createWithSpriteFrames @ 0x100280fcf // // 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 12:27:43 +0000 // char __fastcall cocos2d::CCAnimation::initWithSpriteFrames(__int64 a1, __int64 a2, float a3) { __int64 v4; // rax __int64 v5; // rdi __int64 v6; // r15 unsigned int *v7; // rax __int64 *v8; // r12 unsigned __int64 v9; // r13 __int64 v10; // r15 _QWORD *v11; // r14 __int64 v12; // rdi __int64 v13; // rdi *(_DWORD *)(a1 + 84) = 1; *(float *)(a1 + 60) = a3; v4 = sub_1007FE900(a1); v5 = *(_QWORD *)(a1 + 72); if ( v5 != v4 ) { v6 = v4; if ( v4 ) { cocos2d::CCObject::retain(v4); v5 = *(_QWORD *)(a1 + 72); } if ( v5 ) cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 72) = v6; } if ( a2 ) { v7 = *(unsigned int **)(a2 + 56); if ( *v7 ) { v8 = *((__int64 **)v7 + 2); v9 = (unsigned __int64)&v8[*v7 - 1]; do { v10 = *v8; if ( !*v8 ) break; v11 = operator new(0x50u); cocos2d::CCObject::CCObject(v11); *v11 = off_100AFE198; v11[7] = 0; *((_DWORD *)v11 + 16) = 0; v11[9] = 0; *((_DWORD *)v11 + 7) = 14; cocos2d::CCObject::retain(v10); v12 = v11[7]; if ( v12 ) cocos2d::CCObject::release(v12); v11[7] = v10; *((_DWORD *)v11 + 16) = 1065353216; v13 = v11[9]; if ( v13 ) { cocos2d::CCObject::release(v13); v11[9] = 0; } sub_1007FEBF0(*(_QWORD *)(a1 + 72), v11); cocos2d::CCObject::release(v11); *(float *)(a1 + 56) = *(float *)(a1 + 56) + 1.0; ++v8; } while ( (unsigned __int64)v8 <= v9 ); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source