// // RewardsPage::rewardsStatusFinished from 0x1001fec10 to 0x1001feda4 (404 bytes) // // 2 xrefs: // > sub_1001FEE80 @ 0x1001fee8c // > @ 0x100ae4258 // // 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 12:26:51 +0000 // __int64 __fastcall RewardsPage::rewardsStatusFinished(__int64 a1, unsigned int a2, __m128 a3) { __int64 v4; // rax __int64 RewardItem; // rax __int64 v6; // r15 __int64 v7; // rax __int64 v8; // rax __int64 v9; // r12 __int64 v10; // rdi __int64 v11; // rax if ( a2 - 1 <= 1 ) { if ( *(_QWORD *)(a1 + 720) ) { v4 = GameStatsManager::sharedState(); RewardItem = GameStatsManager::getRewardItem(v4); if ( RewardItem ) { v6 = RewardItem; v7 = GameStatsManager::sharedState(); if ( !GameStatsManager::hasRewardBeenCollected(v7, a2, *(_DWORD *)(v6 + 56)) && *(_DWORD *)(v6 + 64) == *(_DWORD *)(*(_QWORD *)(a1 + 720) + 696LL) ) { v8 = GameStatsManager::sharedState(); GameStatsManager::preProcessReward(v8, v6, a3); v9 = *(_QWORD *)(a1 + 720); v10 = *(_QWORD *)(v9 + 704); if ( v10 ) cocos2d::CCObject::release(v10); *(_QWORD *)(v9 + 704) = v6; cocos2d::CCObject::retain(v6); if ( *(_BYTE *)(v6 + 80) != 1 || *(_DWORD *)(v6 + 64) == *(_DWORD *)(v9 + 696) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v9 + 720) + 344LL))(*(_QWORD *)(v9 + 720), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v9 + 720) + 1056LL))(*(_QWORD *)(v9 + 720), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v9 + 712) + 344LL))(*(_QWORD *)(v9 + 712), 0); *(_BYTE *)(v9 + 700) = 1; if ( *(_BYTE *)(v9 + 701) == 1 ) RewardUnlockLayer::playRewardEffect(v9); v11 = GameStatsManager::sharedState(); GameStatsManager::collectReward(v11, a2, v6); } } } } } RewardsPage::updateTimers(a1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 344LL))(*(_QWORD *)(a1 + 680), 1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 344LL))(*(_QWORD *)(a1 + 688), 1); cocos2d::CCNode::unschedule(a1, RewardsPage::updateTimers, 0); return cocos2d::CCNode::schedule_1(a1, RewardsPage::updateTimers, 0, COERCE_DOUBLE(1065353216)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source