// // SecretRewardsLayer::dialogClosed from 0x1403d68e0 to 0x1403d6ac4 (484 bytes) // // 2 xrefs: // > @ 0x1405cf7c0 // > @ 0x1406d7d54 // // 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::dialogClosed(SecretRewardsLayer *a1, DialogLayer *a2) { GameManager *v4; // rcx ShopType v5; // ecx 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] if ( a2->getTag(a2) == 2 ) { v4 = (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); v4 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v4, (const char *)&word_140544448, 1); v5 = Community; } else if ( a2->getTag(a2) == 1 ) { 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; } GameManager::setUGV(v6, "11", 1); v5 = Secret; } else if ( a2->getTag(a2) == 3 ) { 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; } GameManager::setUGV(v7, "34", 1); v5 = Diamond; } else { if ( a2->getTag(a2) != 4 ) return; 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; } GameManager::setUGV(v8, (const char *)&word_14055A64C, 1); v5 = Mechanic; } v9 = GJShopLayer::scene(v5); v10 = cocos2d::CCTransitionMoveInT::create(0.5, v9); v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::replaceScene(v12, v10); if ( v13 ) (*(void (__fastcall **)(cocos2d::CCCamera **, _QWORD))&a1[-1].m_pCamera[6].m_nTag)(&a1[-1].m_pCamera, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source