// // cocos2d::CCParticleFireworks::initWithTotalParticles from 0x100479d40 to 0x100479ea5 (357 bytes) // // 3 xrefs: // > cocos2d::CCParticleFireworks::create @ 0x100479c7c // > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x100479cfd // > @ 0x100b48340 // // 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::CCParticleFireworks::initWithTotalParticles(__int64 a1, __int64 a2) { __int64 result; // rax unsigned int v3; // r15d __int64 v4; // rax __int64 v5; // rax float 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, -90.0); sub_100278300((_QWORD *)(a1 + 356), v7); *(_QWORD *)(a1 + 380) = 0; *(_QWORD *)(a1 + 364) = 0x4248000043340000LL; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7, v4); sub_100278250(&v6, *(float *)v7 * 0.5, 0.5 * *((float *)v7 + 1)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 184LL))(a1, &v6); *(_OWORD *)(a1 + 480) = xmmword_100A0B1F0; *(float *)(a1 + 656) = (float)*(int *)(a1 + 660) / 3.5; *(_OWORD *)(a1 + 576) = xmmword_100A0B200; *(_OWORD *)(a1 + 592) = xmmword_100A0B210; *(_OWORD *)(a1 + 608) = xmmword_100A0B220; *(_OWORD *)(a1 + 624) = xmmword_100A0B220; *(_QWORD *)(a1 + 560) = 0x4000000041000000LL; *(_DWORD *)(a1 + 568) = -1082130432; v5 = sub_100479B90(a1); if ( v5 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1520LL))(a1, v5); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1280LL))(a1, 0); return v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source