// // SecretRewardsLayer::onShop from 0x14056c130 to 0x14056c341 (529 bytes) // // 3 xrefs: // > SecretRewardsLayer::init @ 0x140569a8b // > SecretRewardsLayer::init @ 0x14056a0a7 // > @ 0x14092c660 // // 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:20 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall SecretRewardsLayer::onShop(__int64 a1, __int64 a2) { unsigned int v3; // eax unsigned int v4; // ebx __int64 v5; // rcx __int64 v6; // rdx __int64 v7; // r8 __int64 v8; // r9 __int64 v9; // rcx __int64 v10; // rcx __int64 v11; // rcx struct cocos2d::CCScene *v12; // rax struct cocos2d::CCScene *v13; // rbx __int64 v14; // rcx cocos2d::CCDirector *v15; // rax char v16; // al void *v17; // [rsp+38h] [rbp+10h] void *v18; // [rsp+38h] [rbp+10h] void *v19; // [rsp+38h] [rbp+10h] void *v20; // [rsp+38h] [rbp+10h] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = v3; switch ( v3 ) { case 1u: v11 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v20 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v11 = qword_14090BFD0; } if ( !GameManager::getUGV(v11, "11") ) { SecretRewardsLayer::showDialog01(a1); return; } break; case 2u: v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v19 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } if ( !GameManager::getUGV(v10, &word_1407380D0) ) { SecretRewardsLayer::showDialog03(a1); return; } break; case 3u: v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v18 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } if ( !GameManager::getUGV(v9, &word_14075A9C8) ) { SecretRewardsLayer::showDialogMechanic(a1); return; } break; case 4u: v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } if ( !GameManager::getUGV(v5, &word_14075AA28) ) { SecretRewardsLayer::showDialogDiamond(a1); return; } break; default: return; } v12 = (struct cocos2d::CCScene *)GJShopLayer::scene(v4, v6, v7, v8); v13 = cocos2d::CCTransitionMoveInT::create(0.5, v12); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::replaceScene(v15, v13); if ( v16 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source