// // RewardsPage::rewardsStatusFinished from 0x140562d20 to 0x140562f75 (597 bytes) // // 2 xrefs: // > @ 0x1407db160 // > @ 0x14092c4bc // // 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:15 +0000 // // Hidden C++ exception states: #wind=5 double __fastcall RewardsPage::rewardsStatusFinished(__int64 a1, int a2) { __int64 v2; // rsi __int64 v4; // rcx struct cocos2d::CCObject *v5; // rbx __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rdi __int64 v9; // rcx _QWORD *ItemKey; // rax __int64 v11; // rdx __int64 v12; // rdx void *v14; // [rsp+20h] [rbp-48h] void *v15; // [rsp+20h] [rbp-48h] void *v16; // [rsp+20h] [rbp-48h] void *v17; // [rsp+20h] [rbp-48h] _QWORD v18[4]; // [rsp+28h] [rbp-40h] BYREF v2 = a2; if ( *(_QWORD *)(a1 + 48) && (unsigned int)(a2 - 1) <= 1 ) { v4 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v14 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v4 = qword_14090BFE0; } v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v4 + 528), v2); if ( v5 ) { v6 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v15 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v6 = qword_14090BFE0; } if ( !(unsigned __int8)GameStatsManager::hasRewardBeenCollected(v6, v2, *((_DWORD *)v5 + 14)) && *((_DWORD *)v5 + 16) == *(_DWORD *)(*(_QWORD *)(a1 + 48) + 696LL) ) { v7 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v16 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v7 = qword_14090BFE0; } GameStatsManager::preProcessReward(v7, (__int64)v5); if ( (unsigned __int8)RewardUnlockLayer::showCollectReward(*(_QWORD *)(a1 + 48), v5) ) { v8 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v17 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v8 = qword_14090BFE0; } if ( !(unsigned __int8)GameStatsManager::hasRewardBeenCollected(v8, v2, *((_DWORD *)v5 + 14)) ) { GameStatsManager::registerRewardsFromItem(v8, (__int64)v5); ItemKey = GameStatsManager::getItemKey(v9, v18, v2, *((_DWORD *)v5 + 14)); cocos2d::CCDictionary::setObject(*(_QWORD *)(v8 + 536), v5, ItemKey); sub_14003D310((__int64)v18); } } } } } RewardsPage::updateTimers(a1 - 672); LOBYTE(v11) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 8) + 336LL))(*(_QWORD *)(a1 + 8), v11); LOBYTE(v12) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 16) + 336LL))(*(_QWORD *)(a1 + 16), v12); cocos2d::CCNode::unschedule(a1 - 672, RewardsPage::updateTimers); return cocos2d::CCNode::schedule(a1 - 672, RewardsPage::updateTimers); }
GD Web Decomp Icon

GD Web Decomp

Raw Source