// // SecretRewardsLayer::showDialog01 from 0x6cace8 to 0x6cbb00 (3608 bytes) // // 1 xrefs: // > SecretRewardsLayer::onShop @ 0x6cd6ac // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:59 +0000 // unsigned int __fastcall SecretRewardsLayer::showDialog01(SecretRewardsLayer *this) { GameStatsManager *v2; // r5 GameStatsManager *v3; // r0 GameManager *Stat; // r0 int v5; // r2 GameManager *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r0 cocos2d::CCObject *v12; // r0 cocos2d::CCObject *v13; // r0 cocos2d::CCObject *v14; // r0 cocos2d::CCObject *v15; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCObject *v17; // r0 cocos2d::CCObject *v18; // r0 cocos2d::CCObject *v19; // r0 cocos2d::CCObject *v20; // r0 cocos2d::CCObject *v21; // r0 cocos2d::CCString *v22; // r0 const char *CString; // r10 size_t v24; // r0 cocos2d::CCObject *v25; // r0 cocos2d::CCString *v26; // r0 const char *v27; // r11 size_t v28; // r0 cocos2d::CCObject *v29; // r0 cocos2d::CCObject *v30; // r0 cocos2d::CCObject *v31; // r0 cocos2d::CCObject *v32; // r0 GameManager *v33; // r0 GameManager *v34; // r0 cocos2d::CCString *v35; // r0 const char *v36; // r10 size_t v37; // r0 cocos2d::CCObject *v38; // r0 cocos2d::CCObject *v39; // r0 cocos2d::CCObject *v40; // r0 int v41; // r4 int v42; // r3 cocos2d::CCDirector *v43; // r6 cocos2d::CCObject *v45; // r0 cocos2d::CCObject *v46; // r0 cocos2d::CCObject *v47; // r0 cocos2d::CCObject *v48; // r0 int v49; // [sp+4h] [bp-28h] int v50; // [sp+4h] [bp-28h] int v51; // [sp+4h] [bp-28h] int v52; // [sp+4h] [bp-28h] int v53; // [sp+4h] [bp-28h] int v54; // [sp+4h] [bp-28h] int v55; // [sp+4h] [bp-28h] int v56; // [sp+4h] [bp-28h] int v57; // [sp+4h] [bp-28h] int v58; // [sp+4h] [bp-28h] int v59; // [sp+4h] [bp-28h] int v60; // [sp+4h] [bp-28h] int v61; // [sp+4h] [bp-28h] int v62; // [sp+4h] [bp-28h] int v63; // [sp+4h] [bp-28h] int v64; // [sp+4h] [bp-28h] int v65; // [sp+4h] [bp-28h] int v66; // [sp+4h] [bp-28h] int v67; // [sp+4h] [bp-28h] int v68; // [sp+4h] [bp-28h] int v69; // [sp+4h] [bp-28h] int v70; // [sp+Ch] [bp-20h] BYREF int v71; // [sp+10h] [bp-1Ch] int v72; // [sp+14h] [bp-18h] int v73; // [sp+18h] [bp-14h] BYREF int v74; // [sp+1Ch] [bp-10h] int v75; // [sp+20h] [bp-Ch] v2 = (GameStatsManager *)cocos2d::CCArray::create(this); v3 = (GameStatsManager *)GameStatsManager::sharedState(v2); Stat = (GameManager *)GameStatsManager::getStat(v3, "13"); if ( (int)Stat >= 500 && (v6 = (GameManager *)GameManager::sharedState(Stat), GameManager::getUGV(v6, "10")) ) { v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Oh, the diamonds.\nYou found them.", 0x35u); LOWORD(v49) = -1; BYTE2(v49) = -1; v45 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 10, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v45); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Alright come in, quickly before someone sees you.", 0x37u); LOWORD(v67) = -1; BYTE2(v67) = -1; v46 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 13, 1065353216, 0, v67); cocos2d::CCArray::addObject(v2, v46); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "You never know who might be watching.", 0x25u); LOWORD(v68) = -1; BYTE2(v68) = -1; v47 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v68); cocos2d::CCArray::addObject(v2, v47); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v69) = -1; BYTE2(v69) = -1; v48 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 9, 1065353216, 0, v69); cocos2d::CCArray::addObject(v2, v48); std::string::~string((int)&v73); std::string::~string((int)&v70); v41 = 1; } else { switch ( *((_DWORD *)this + 100) ) { case 0: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Uhm, there is no rope.", 0x1Cu); LOWORD(v49) = -1; BYTE2(v49) = -1; v7 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v7); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Just... Pretend this never happened.", 0x36u); LOWORD(v50) = -1; BYTE2(v50) = -1; v8 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 9, 1065353216, 0, v50); cocos2d::CCArray::addObject(v2, v8); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v51) = -1; BYTE2(v51) = -1; v9 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v51); cocos2d::CCArray::addObject(v2, v9); goto LABEL_8; case 1: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "I'm gonna need you to stop doing that.", 0x26u); LOWORD(v49) = -1; BYTE2(v49) = -1; v10 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 13, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v10); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "If RubRub sees this I am in BIG trouble.", 0x30u); LOWORD(v52) = -1; BYTE2(v52) = -1; v11 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v52); cocos2d::CCArray::addObject(v2, v11); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "I hate that guy...", 0x24u); LOWORD(v53) = -1; BYTE2(v53) = -1; v12 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 12, 1065353216, 0, v53); cocos2d::CCArray::addObject(v2, v12); goto LABEL_8; case 2: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Finally, I thought you wou...", 0x3Bu); LOWORD(v49) = -1; BYTE2(v49) = -1; v13 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 10, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v13); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Wait, You're not the delivery guy.", 0x28u); LOWORD(v54) = -1; BYTE2(v54) = -1; v14 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 11, 1065353216, 0, v54); cocos2d::CCArray::addObject(v2, v14); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "How am I supposed to run a shop if I don't have any merchandise?", 0x40u); LOWORD(v55) = -1; BYTE2(v55) = -1; v15 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 12, 1065353216, 0, v55); cocos2d::CCArray::addObject(v2, v15); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "I mean, what shop?", 0x18u); LOWORD(v56) = -1; BYTE2(v56) = -1; v16 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 13, 1065353216, 0, v56); cocos2d::CCArray::addObject(v2, v16); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v57) = -1; BYTE2(v57) = -1; v17 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v57); cocos2d::CCArray::addObject(v2, v17); goto LABEL_8; case 3: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init( &v73, "Look, I can't let you in.\nNot without the... stuff.", 0x59u); LOWORD(v49) = -1; BYTE2(v49) = -1; v18 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v18); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "I'm not even supposed to be here.\nI'm just a glitch in the code.", 0x40u); LOWORD(v58) = -1; BYTE2(v58) = -1; v19 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 13, 1065353216, 0, v58); cocos2d::CCArray::addObject(v2, v19); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Did you hear something?", 0x17u); LOWORD(v59) = -1; BYTE2(v59) = -1; v20 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v59); cocos2d::CCArray::addObject(v2, v20); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v60) = -1; BYTE2(v60) = -1; v21 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 9, 1065353216, 0, v60); cocos2d::CCArray::addObject(v2, v21); LABEL_8: std::string::~string((int)&v73); goto LABEL_11; case 4: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Alright, alright. If you collect\n" "%i Diamonds I will let you in.", (const char *)&stru_1EC.st_size); CString = (const char *)cocos2d::CCString::getCString(v22); v73 = 0; v74 = 0; v75 = 0; v24 = strlen(CString); std::string::__init(&v73, CString, v24); LOWORD(v49) = -1; BYTE2(v49) = -1; v25 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 10, 1065353216, 0, v49); cocos2d::CCArray::addObject(v2, v25); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Usually the limit is %i, but you look a bit scary.", (const char *)&stru_3DC.st_info); v27 = (const char *)cocos2d::CCString::getCString(v26); v73 = 0; v74 = 0; v75 = 0; v28 = strlen(v27); std::string::__init(&v73, v27, v28); LOWORD(v61) = -1; BYTE2(v61) = -1; v29 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 13, 1065353216, 0, v61); cocos2d::CCArray::addObject(v2, v29); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Just, get out of here before someone sees you.", 0x34u); LOWORD(v62) = -1; BYTE2(v62) = -1; v30 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 11, 1065353216, 0, v62); cocos2d::CCArray::addObject(v2, v30); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Do you smell burning chicken?", 0x1Du); LOWORD(v63) = -1; BYTE2(v63) = -1; v31 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v63); cocos2d::CCArray::addObject(v2, v31); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v64) = -1; BYTE2(v64) = -1; v32 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 9, 1065353216, 0, v64); cocos2d::CCArray::addObject(v2, v32); std::string::~string((int)&v73); v33 = (GameManager *)std::string::~string((int)&v70); v34 = (GameManager *)GameManager::sharedState(v33); GameManager::setUGV(v34, "10", (_BYTE *)&dword_0 + 1); break; case 5: v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Collect %i Diamonds and I will let you in.", (const char *)&stru_1EC.st_size); v36 = (const char *)cocos2d::CCString::getCString(v35); v73 = 0; v74 = 0; v75 = 0; v37 = strlen(v36); std::string::__init(&v73, v36, v37); LOWORD(v49) = -1; BYTE2(v49) = -1; v38 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 10, 1061997773, 0, v49); cocos2d::CCArray::addObject(v2, v38); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "Now go away, RubRub might be watching.", 0x26u); LOWORD(v65) = -1; BYTE2(v65) = -1; v39 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 8, 1065353216, 0, v65); cocos2d::CCArray::addObject(v2, v39); std::string::~string((int)&v73); std::string::~string((int)&v70); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, "Scratch", 7u); v73 = 0; v74 = 0; v75 = 0; std::string::__init(&v73, "...", 0x15u); LOWORD(v66) = -1; BYTE2(v66) = -1; v40 = (cocos2d::CCObject *)DialogObject::create((int)&v70, (int)&v73, 9, 1065353216, 0, v66); cocos2d::CCArray::addObject(v2, v40); std::string::~string((int)&v73); LABEL_11: std::string::~string((int)&v70); break; default: break; } v41 = 0; v42 = *((_DWORD *)this + 100) + 1; if ( v42 > 5 ) *((_DWORD *)this + 100) = 0; else *((_DWORD *)this + 100) = v42; } v43 = DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)((char *)&dword_0 + 2), v5); (*(void (__fastcall **)(SecretRewardsLayer *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v43, 100); (*(void (__fastcall **)(cocos2d::CCDirector *, int))(*(_DWORD *)v43 + 36))(v43, 1); if ( v41 ) *((_DWORD *)v43 + 122) = (char *)this + 316; DialogLayer::updateChatPlacement(v43, 0); return DialogLayer::animateInRandomSide(v43); }
GD Web Decomp Icon

GD Web Decomp

Raw Source