// // SecretLayer5::claimOnlineReward from 0x1403f6800 to 0x1403f6a0f (527 bytes) // // 2 xrefs: // > SecretLayer5::showSuccessAnimation @ 0x1403f66fb // > @ 0x1406d8270 // // 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=3 void SecretLayer5::claimOnlineReward(SecretLayer5 *a1) { float v1; // xmm3_4 _QWORD *v3; // rdi __int64 v4; // rcx __int64 v5; // rbx GameStatsManager *v6; // rcx GJRewardItem *v7; // rax GJRewardItem *v8; // r14 RewardUnlockLayer *v9; // rbp cocos2d::CCNode *v10; // rbx cocos2d::CCNode_vtbl *v11; // rdi int v12; // eax cocos2d::CCObject *m_rewardItem; // rcx __int64 v14; // rbx struct cocos2d::CCDelayTime *v15; // rax struct cocos2d::CCSequence *v16; // rax cocos2d::ccColor3B *v17; // r8 float v18; // [rsp+20h] [rbp-58h] BYREF char v19[32]; // [rsp+40h] [rbp-38h] BYREF void *v20; // [rsp+88h] [rbp+10h] void *v21; // [rsp+88h] [rbp+10h] v3 = (_QWORD *)sub_14003BDB0((__int64)&v18, (__int64)&a1->m_chestID); v4 = qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v20 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v4 = qword_1406C2EE8; } if ( GameStatsManager::isSpecialChestUnlocked(v4, v3) ) goto LABEL_14; v5 = sub_14003BDB0((__int64)v19, (__int64)&a1->m_chestID); v6 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v21 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v6 = (GameStatsManager *)qword_1406C2EE8; } v7 = GameStatsManager::unlockOnlineChest(v6, v5); v8 = v7; if ( !v7 ) { LABEL_14: a1->m_uiLocked = 0; SecretLayer5::showTextInput(a1); } else { v9 = RewardUnlockLayer::create(v7->m_rewardType, nullptr); v10 = a1->getParent(a1); v11 = v10->__vftable; v12 = a1->getZOrder(a1); v11->addChild_0(v10, v9, v12 + 1); m_rewardItem = v9->m_rewardItem; if ( m_rewardItem ) cocos2d::CCObject::release(m_rewardItem); v9->m_rewardItem = v8; cocos2d::CCObject::retain(v8); if ( !v8->m_unk || v8->m_rewardType == v9->m_chestType ) { v9->m_closeBtn->setVisible(v9->m_closeBtn, 0); v9->m_closeBtn->setEnabled(v9->m_closeBtn, 0); v9->m_wrongLabel->setVisible(v9->m_wrongLabel, 0); v9->m_rewardCollected = 1; if ( v9->m_animationPlayed ) RewardUnlockLayer::playRewardEffect(v9); } v14 = cocos2d::CCCallFunc::create(a1, SecretLayer5::unlockUI); v15 = cocos2d::CCDelayTime::create(0.5); v16 = cocos2d::CCSequence::create(v15, v14, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v16, v17, v1, v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source