// // cocos2d::CCParticleFire::initWithTotalParticles from 0x1004799f0 to 0x100479b8a (410 bytes) // // 3 xrefs: // > cocos2d::CCParticleFire::create @ 0x10047992c // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x1004799ad // > @ 0x100b47c70 // // 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:30:36 +0000 // __int64 __fastcall cocos2d::CCParticleFire::initWithTotalParticles(__int64 a1, __int64 a2) { __int64 result; // rax unsigned int v3; // r15d __int64 v4; // rax __int64 v5; // rax __int64 v6; // [rsp+8h] [rbp-28h] BYREF _QWORD v7[4]; // [rsp+10h] [rbp-20h] BYREF result = cocos2d::CCParticleSystemQuad::initWithTotalParticles(a1, a2, 0); if ( (_BYTE)result ) { v3 = result; *(_DWORD *)(a1 + 460) = -1082130432; *(_DWORD *)(a1 + 692) = 0; sub_100278250((float *)v7, 0.0, 0.0); sub_100278300((_QWORD *)(a1 + 356), v7); *(_QWORD *)(a1 + 380) = 0; *(_QWORD *)(a1 + 364) = 0x41A0000042700000LL; *(_QWORD *)(a1 + 488) = 0x4120000042B40000LL; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7, v4); sub_100278250((float *)&v6, *(float *)v7 * 0.5, 60.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 184LL))(a1, &v6); sub_100278250((float *)&v6, 40.0, 20.0); sub_100278300((_QWORD *)(a1 + 472), &v6); *(_QWORD *)(a1 + 480) = 0x3E80000040400000LL; *(_QWORD *)(a1 + 560) = 0x4120000042580000LL; *(_DWORD *)(a1 + 568) = -1082130432; *(float *)(a1 + 656) = (float)*(int *)(a1 + 660) / 3.0; *(_OWORD *)(a1 + 576) = xmmword_100A0B1D0; *(_OWORD *)(a1 + 592) = 0; *(_OWORD *)(a1 + 604) = 0; *(_DWORD *)(a1 + 620) = 1065353216; *(_OWORD *)(a1 + 624) = 0; v5 = sub_100479B90(); if ( v5 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1520LL))(a1, v5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1280LL))(a1, 1); return v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source