// // EndLevelLayer::coinEnterFinished from 0x7d40d0 to 0x7d4378 (680 bytes) // // 2 xrefs: // > EndLevelLayer::coinEnterFinishedO @ 0x7d43d4 // > @ 0xb7270 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void EndLevelLayer::coinEnterFinished(EndLevelLayer *a1, cocos2d::CCPoint a2) { __int64 v2; // x1 bool v4; // w2 cocos2d::CCNode *v5; // x19 float v6; // s8 float v7; // s9 cocos2d::CCNode *(__fastcall *getChildByTag)(cocos2d::CCNode *__hidden, int); // x24 int v9; // w2 cocos2d::CCNode *(__fastcall *getParent)(cocos2d::CCNode *__hidden); // x2 FMODAudioEngine *v11; // x19 void *v12; // x0 CCCircleWave *v13; // x19 char v14; // w2 char v15; // w0 CCCircleWave_vtbl *v16; // x3 unsigned int *v17; // x2 int v18; // w1 __int64 v19; // [xsp+68h] [xbp+68h] __int64 v20; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v21; // [xsp+88h] [xbp+88h] BYREF float v22; // [xsp+90h] [xbp+90h] int v23; // [xsp+94h] [xbp+94h] v19 = v2; cocos2d::CCPoint::CCPoint(&v21, 0.0, 0.0); cocos2d::CCPoint::operator+(&v20, v19, &v21); v5 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"starEffect.plist", nullptr, v4); if ( a1->m_notLocal ) { if ( a1->m_coinsVerified ) { v6 = 1.0; v7 = 1.0; } else { v6 = 0.29412; v7 = 0.68627; } getChildByTag = v5->__vftable[1].getChildByTag; v9 = *(_DWORD *)(((__int64 (__fastcall *)(cocos2d::CCNode *))v5->__vftable[1].addChild_1)(v5) + 12); v21.x = 1.0; v21.y = v7; v23 = v9; v22 = v6; getChildByTag(v5, (int)&v21); getParent = v5->__vftable[1].getParent; v21.x = 1.0; v21.y = v7; v22 = v6; v23 = 0; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCPoint *))getParent)(v5, &v21); } ((void (__fastcall *)(cocos2d::CCNode *, __int64))v5->__vftable[1].onEnter)(v5, 1); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 9); v5->setPosition(v5, (const cocos2d::CCPoint *)&v20); v11 = FMODAudioEngine::sharedEngine(); sub_D153B8((int)&v21, "highscoreGet02.ogg"); FMODAudioEngine::playEffect((__int64)v11, (__int64)&v21); v12 = (void *)(*(_QWORD *)&v21 - 24LL); if ( (__int64 *)(*(_QWORD *)&v21 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(*(_QWORD *)&v21 - 8LL); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(*(_QWORD *)&v21 - 8LL); *(_DWORD *)(*(_QWORD *)&v21 - 8LL) = v18 - 1; } if ( v18 <= 0 ) operator delete(v12); } v13 = CCCircleWave::create(10.0, 90.0, 0.4, 0); if ( a1->m_notLocal ) { if ( a1->m_coinsVerified ) { v14 = -1; v15 = -1; } else { v14 = 75; v15 = -81; } } else { v14 = 0; v15 = -1; } v16 = v13->__vftable; v13->m_color.g = v15; v13->m_color.r = -1; v13->m_color.b = v14; v16->setPosition(v13, (const cocos2d::CCPoint *)&v20); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v13, 9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source