// // LevelPage::addSecretCoin from 0x140445910 to 0x140445b42 (562 bytes) // // 2 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x140442602 // > @ 0x1409271e8 // // 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:32:23 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCAction *__fastcall LevelPage::addSecretCoin(cocos2d::CCNode **a1) { __int64 v2; // rax cocos2d::CCObject *v3; // rax cocos2d::CCObject *v4; // rbx __int64 v5; // rdi cocos2d::CCNode *v6; // rbx __int64 v7; // rax __int64 v8; // rcx cocos2d::CCArray *v9; // rdi cocos2d::CCString *v10; // rax const char *CString; // rbx __int64 v12; // rdx __int64 v13; // rcx cocos2d::CCSpriteFrameCache *v14; // rax struct cocos2d::CCObject *v15; // rax cocos2d::CCString *v16; // rax const char *v17; // rbx __int64 v18; // rdx __int64 v19; // rcx cocos2d::CCSpriteFrameCache *v20; // rax struct cocos2d::CCObject *v21; // rax cocos2d::CCString *v22; // rax const char *v23; // rbx __int64 v24; // rdx __int64 v25; // rcx cocos2d::CCSpriteFrameCache *v26; // rax struct cocos2d::CCObject *v27; // rax cocos2d::CCString *v28; // rax const char *v29; // rbx __int64 v30; // rdx __int64 v31; // rcx cocos2d::CCSpriteFrameCache *v32; // rax struct cocos2d::CCObject *v33; // rax struct cocos2d::CCAnimation *v34; // rax struct cocos2d::CCActionInterval *v35; // rax struct cocos2d::CCAction *v36; // rax float v38; // [rsp+30h] [rbp+8h] BYREF float v39; // [rsp+34h] [rbp+Ch] void *v40; // [rsp+38h] [rbp+10h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v38); v40 = operator new(0x550u); v3 = (cocos2d::CCObject *)GameObject::GameObject((__int64)v40); v4 = v3; if ( v3 ) { *((_DWORD *)v3 + 7) = 13; if ( cocos2d::CCSprite::initWithSpriteFrameName(v3, "secretCoin_01_001.png") ) { GameObject::commonSetup((__int64)v4); *((_BYTE *)v4 + 313) = 1; cocos2d::CCObject::autorelease(v4); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1); v4 = nullptr; } } a1[70] = v4; *((_BYTE *)v4 + 313) = 0; (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCNode *, __int64))*a1 + 57))(a1, a1[70], 1); v5 = *(_QWORD *)a1[70]; v6 = a1[70]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v38 * 0.5, v39 * 0.5); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v5 + 184))(v6, v7); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); v10 = cocos2d::CCString::createWithFormat("%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v10); v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13, v12); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, CString); cocos2d::CCArray::addObject(v9, v15); v16 = cocos2d::CCString::createWithFormat("%s_01_002.png", "secretCoin"); v17 = cocos2d::CCString::getCString(v16); v20 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v19, v18); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v17); cocos2d::CCArray::addObject(v9, v21); v22 = cocos2d::CCString::createWithFormat("%s_01_003.png", "secretCoin"); v23 = cocos2d::CCString::getCString(v22); v26 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v25, v24); v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, v23); cocos2d::CCArray::addObject(v9, v27); v28 = cocos2d::CCString::createWithFormat("%s_01_004.png", "secretCoin"); v29 = cocos2d::CCString::getCString(v28); v32 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v31, v30); v33 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v32, v29); cocos2d::CCArray::addObject(v9, v33); v34 = cocos2d::CCAnimation::createWithSpriteFrames(v9, 0.115); v35 = cocos2d::CCAnimate::create(v34); v36 = cocos2d::CCRepeatForever::create(v35); return cocos2d::CCNode::runAction(a1[70], v36); }
GD Web Decomp Icon

GD Web Decomp

Raw Source