// // SecretRewardsLayer::scene from 0x140567ee0 to 0x140568031 (337 bytes) // // 3 xrefs: // > CreatorLayer::onTreasureRoom @ 0x140138d9b // > GJShopLayer::onBack @ 0x1403b311f // > @ 0x14092c5ac // // 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:34:17 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall SecretRewardsLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { unsigned __int8 v4; // bl __int64 v5; // rsi __int64 v6; // rcx char *v7; // rdi v4 = a1; v5 = cocos2d::CCScene::create(a1, a2, a3, a4); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5; v7 = (char *)operator new(0x258u); cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v7); *(_QWORD *)v7 = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 40) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 41) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 42) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 43) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 44) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 51) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 52) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v7 + 53) = 0; *((_QWORD *)v7 + 54) = 0; *((_QWORD *)v7 + 56) = 0; *((_QWORD *)v7 + 58) = 0; *((_QWORD *)v7 + 66) = 0; *((_DWORD *)v7 + 135) = 0; *((_QWORD *)v7 + 69) = 0; *((_QWORD *)v7 + 71) = 0; *((_QWORD *)v7 + 72) = 0; v7[584] = 0; *(_QWORD *)(v7 + 588) = 0; if ( (unsigned __int8)SecretRewardsLayer::init(v7, v4) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1); v7 = nullptr; } (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 464LL))(v5, v7); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source