// // PlayLayer::spawnFirework from 0x14050a8a0 to 0x14050abcf (815 bytes) // // 2 xrefs: // > PlayLayer::showCompleteText @ 0x140507710 // > @ 0x14092a944 // // 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:33:28 +0000 // // Hidden C++ exception states: #wind=4 __int64 __fastcall PlayLayer::spawnFirework(_QWORD *a1) { __int64 v2; // rcx __int64 v3; // rcx char *v4; // rax int v5; // edx __int64 v6; // rcx int v7; // edx __int64 v8; // rax float v9; // xmm7_4 int v10; // eax __int64 v11; // rdx __int64 v12; // rcx __int64 v13; // r8 cocos2d::CCObject *v14; // rbx struct cocos2d::CCParticleSystemQuad *v15; // rbx __int64 v16; // rdx __int16 v18; // [rsp+38h] [rbp-29h] BYREF char v19; // [rsp+3Ah] [rbp-27h] __int16 v20; // [rsp+48h] [rbp-19h] float v21[2]; // [rsp+58h] [rbp-9h] BYREF _BYTE v22[8]; // [rsp+60h] [rbp-1h] BYREF char v23[8]; // [rsp+68h] [rbp+7h] BYREF void *v24; // [rsp+70h] [rbp+Fh] float v25; // [rsp+78h] [rbp+17h] BYREF float v26; // [rsp+7Ch] [rbp+1Bh] float v27; // [rsp+80h] [rbp+1Fh] int v28; // [rsp+84h] [rbp+23h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v24 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v24); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } GameManager::colorForIdx(v2, (char *)&v18, *(_DWORD *)(v2 + 856) - *(_DWORD *)(v2 + 860)); v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v24 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v24); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } v4 = GameManager::colorForIdx(v3, v23, *(_DWORD *)(v3 + 844) - *(_DWORD *)(v3 + 848)); v20 = *(_WORD *)v4; v5 = (unsigned __int8)v4[2]; v25 = (float)(unsigned __int8)v20 / 255.0; v26 = (float)HIBYTE(v20) / 255.0; v27 = (float)v5 / 255.0; v28 = 1065353216; v6 = a1[439]; v18 = *(_WORD *)(v6 + 2709); v19 = *(_BYTE *)(v6 + 2711); v20 = *(_WORD *)(v6 + 2706); v7 = *(unsigned __int8 *)(v6 + 2708); v25 = (float)(unsigned __int8)v20 / 255.0; v26 = (float)HIBYTE(v20) / 255.0; v27 = (float)v7 / 255.0; v8 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v8, v21); v9 = (float)((float)(v21[1] - 50.0) * (float)((float)rand() / 32767.0)) + 50.0; v10 = rand(); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, (float)((float)(v21[0] - 50.0) * (float)((float)v10 / 32767.0)) + 50.0, v9); rand(); v14 = CCCircleWave::create(v12, v11, v13, 1, 1); *((_DWORD *)v14 + 89) = 4; *((_WORD *)v14 + 170) = v18; *((_BYTE *)v14 + 342) = v19; (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v22); (*(void (__fastcall **)(_QWORD *, cocos2d::CCObject *, __int64))(*a1 + 456LL))(a1, v14, 10); v15 = cocos2d::CCParticleSystemQuad::create("firework.plist", 0); v16 = *(_QWORD *)v15; LOBYTE(v16) = 1; (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v15 + 1544LL))(v15, v16); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCParticleSystemQuad *, __int64))(*a1 + 456LL))(a1, v15, 13); (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _BYTE *))(*(_QWORD *)v15 + 184LL))(v15, v22); (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, float *))(*(_QWORD *)v15 + 1352LL))(v15, &v25); return (*(__int64 (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, float *))(*(_QWORD *)v15 + 1384LL))( v15, &v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source