// // SecretRewardsLayer::onShop from 0x1403d66d0 to 0x1403d68d5 (517 bytes) // // 2 xrefs: // > SecretRewardsLayer::init @ 0x1403d46b8 // > @ 0x1406d7d48 // // 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=4 void SecretRewardsLayer::onShop(SecretRewardsLayer *a1, cocos2d::CCObject *a2) { int v3; // eax ShopType v4; // ebx GameManager *v5; // rcx GameManager *v6; // rcx GameManager *v7; // rcx GameManager *v8; // rcx struct cocos2d::CCScene *v9; // rax struct cocos2d::CCTransitionMoveInT *v10; // rbx __int64 v11; // rcx cocos2d::CCDirector *v12; // rax char v13; // al void *v14; // [rsp+38h] [rbp+10h] void *v15; // [rsp+38h] [rbp+10h] void *v16; // [rsp+38h] [rbp+10h] void *v17; // [rsp+38h] [rbp+10h] v3 = a2->getTag(a2); v4 = v3; switch ( v3 ) { case 1: v8 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v17 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v8 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getUGV(v8, "11") ) { SecretRewardsLayer::showDialog01(a1); return; } break; case 2: v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getUGV(v7, (const char *)&word_140544448) ) { SecretRewardsLayer::showDialog03(a1); return; } break; case 3: v6 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v15 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getUGV(v6, (const char *)&word_14055A64C) ) { SecretRewardsLayer::showDialogMechanic(a1); return; } break; case 4: v5 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v14 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getUGV(v5, "34") ) { SecretRewardsLayer::showDialogDiamond(a1); return; } break; default: return; } v9 = GJShopLayer::scene(v4); v10 = cocos2d::CCTransitionMoveInT::create(0.5, v9); v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::replaceScene(v12, v10); if ( v13 ) a1->setKeypadEnabled(a1, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source