// // GJPathRewardPopup::onClaim from 0x14028a400 to 0x14028a5dd (477 bytes) // // 2 xrefs: // > GJPathRewardPopup::init @ 0x14028a01b // > @ 0x1406d1640 // // 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 // // Hidden C++ exception states: #wind=2 void GJPathRewardPopup::onClaim(GJPathRewardPopup *a1, cocos2d::CCObject *a2) { float v2; // xmm3_4 GameStatsManager *v4; // rbx __int64 v5; // rax GJRewardItem *v6; // rbp struct cocos2d::CCFadeTo *v7; // rax cocos2d::ccColor3B *v8; // r8 __int64 v9; // rbx struct cocos2d::CCDelayTime *v10; // rax struct cocos2d::CCSequence *v11; // rax cocos2d::ccColor3B *v12; // r8 RewardUnlockLayer *v13; // rsi cocos2d::CCNode *v14; // rbx cocos2d::CCNode_vtbl *v15; // rdi int v16; // eax cocos2d::CCObject *m_rewardItem; // rcx void *v18; // [rsp+20h] [rbp-68h] float v19; // [rsp+20h] [rbp-68h] char v20[32]; // [rsp+28h] [rbp-60h] BYREF _QWORD v21[4]; // [rsp+48h] [rbp-40h] BYREF v4 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v18 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v4 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::getPathRewardKey((__int64)a1, v21, a1->m_pathNumber); v5 = sub_14003BDB0((__int64)v20, (__int64)v21); v6 = GameStatsManager::unlockSpecialChest(v4, v5); sub_14003A830((__int64)v21); if ( v6 ) { v7 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v7, v8, v2, *(float *)&v18); v9 = cocos2d::CCCallFunc::create(a1, GJPathRewardPopup::closePopup); v10 = cocos2d::CCDelayTime::create(0.2); v11 = cocos2d::CCSequence::create(v10, v9, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v11, v12, v2, v19); v13 = RewardUnlockLayer::create(v6->m_rewardType, nullptr); v14 = a1->getParent(a1); v15 = v14->__vftable; v16 = a1->getZOrder(a1); v15->addChild_0(v14, v13, v16 + 1); m_rewardItem = v13->m_rewardItem; if ( m_rewardItem ) cocos2d::CCObject::release(m_rewardItem); v13->m_rewardItem = v6; cocos2d::CCObject::retain(v6); if ( !v6->m_unk || v6->m_rewardType == v13->m_chestType ) { v13->m_closeBtn->setVisible(v13->m_closeBtn, 0); v13->m_closeBtn->setEnabled(v13->m_closeBtn, 0); v13->m_wrongLabel->setVisible(v13->m_wrongLabel, 0); v13->m_rewardCollected = 1; if ( v13->m_animationPlayed ) RewardUnlockLayer::playRewardEffect(v13); } } else { GJPathRewardPopup::closePopup(a1); } }