// // SupportLayer::onGetReward from 0x10039a6c0 to 0x10039a73f (127 bytes) // // 1 xrefs: // > SupportLayer::customSetup @ 0x100398e52 // // 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 __fastcall SupportLayer::onGetReward(SupportLayer *a1, cocos2d::CCObject *a2) { __m128 v2; // xmm0 GameStatsManager *v3; // rax GJRewardItem *v4; // r14 RewardUnlockLayer *v5; // r15 char v6; // [rsp+0h] [rbp-30h] BYREF char v7[15]; // [rsp+1h] [rbp-2Fh] BYREF void *__p; // [rsp+10h] [rbp-20h] v3 = GameStatsManager::sharedState(); v6 = 8; strcpy(v7, "0023"); v4 = GameStatsManager::unlockSpecialChest(v3, (__int64)&v6, v2); if ( (v6 & 1) != 0 ) operator delete(__p); if ( v4 ) { v5 = RewardUnlockLayer::create(v4->m_rewardType, nullptr); ((void (__fastcall *)(SupportLayer *, RewardUnlockLayer *, __int64))a1->addChild_0)(a1, v5, 100); RewardUnlockLayer::showCollectReward(v5, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source