// // SecretRewardsLayer::showDialogDiamond from 0x140571740 to 0x1405723b6 (3190 bytes) // // 2 xrefs: // > SecretRewardsLayer::onShop @ 0x14056c1ce // > @ 0x14092c72c // // 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:21 +0000 // // Hidden C++ exception states: #wind=4 __int64 __fastcall SecretRewardsLayer::showDialogDiamond(_DWORD *a1) { cocos2d::CCArray *v2; // rsi __int64 v3; // rcx __int64 v4; // rcx char v5; // r14 void **v6; // rax void **v7; // rax void **v8; // rax int v9; // ecx int v10; // ecx int v11; // ecx cocos2d::CCString *v12; // rax const char *v13; // rax size_t v14; // r8 void **v15; // rax int v16; // r8d void **v17; // rax cocos2d::CCString *v18; // rax const char *CString; // rax size_t v20; // r8 void **v21; // rax __int64 v22; // rcx void **v23; // rax void **v24; // rax void **v25; // rax cocos2d::CCNode *DialogLayer; // rsi __int64 v27; // rcx __int64 v28; // rax __int64 v29; // rdi __int64 v30; // rbx __int64 v31; // rax __int128 v33; // [rsp+30h] [rbp-50h] BYREF __int64 v34; // [rsp+40h] [rbp-40h] __int64 v35; // [rsp+48h] [rbp-38h] __int128 v36; // [rsp+50h] [rbp-30h] BYREF __int64 v37; // [rsp+60h] [rbp-20h] __int64 v38; // [rsp+68h] [rbp-18h] __int128 *v39; // [rsp+A8h] [rbp+28h] BYREF __int16 v40; // [rsp+B0h] [rbp+30h] BYREF char v41; // [rsp+B2h] [rbp+32h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v39 = (__int128 *)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v39); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v3 = qword_14090BFE0; } if ( (int)GameStatsManager::getStat(v3, "13") >= 1000 ) { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v39 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v39); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } if ( GameManager::getUGV(v4, &word_14075A854) ) { v5 = 1; v39 = &v33; v40 = -1; v41 = -1; v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 29; v35 = 31; strcpy((char *)v33, "ShINe! sHiMmer!"); v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x20u); v37 = 18; v38 = 31; strcpy((char *)v36, "Diamond Shopkeeper"); v6 = DialogObject::create((__int64)&v36, (__int64)&v33, 43, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v6); v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x30u); v37 = 40; v38 = 47; strcpy((char *)v36, "YOU! ShiNy! sParKLe!"); v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v7 = DialogObject::create((__int64)&v33, (__int64)&v36, 41, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v7); v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x20u); v37 = 29; v38 = 31; strcpy((char *)v36, "..."); v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v8 = DialogObject::create((__int64)&v33, (__int64)&v36, 48, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v8); goto LABEL_25; } } v5 = 0; v9 = a1[144]; if ( !v9 ) { v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x40u); v37 = 57; v38 = 63; strcpy((char *)v36, "gLiTz sCraPe sParKLe TwiNkLe..."); v33 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v24 = DialogObject::create((__int64)&v33, (__int64)&v36, 42, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v24); v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x20u); v37 = 30; v38 = 31; strcpy((char *)v36, "...."); v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v16 = 40; goto LABEL_22; } v10 = v9 - 1; if ( !v10 ) { v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x40u); v37 = 63; v38 = 63; strcpy((char *)v36, "gRasP sHinEe tWinKleR... cLiNk!"); v33 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v23 = DialogObject::create((__int64)&v33, (__int64)&v36, 43, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v23); v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x40u); v37 = 56; v38 = 63; strcpy((char *)v36, "bRinG ShiNy!"); v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v16 = 41; LABEL_22: v25 = DialogObject::create((__int64)&v33, (__int64)&v36, v16, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v25); goto LABEL_23; } v11 = v10 - 1; if ( !v11 ) { v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x40u); v37 = 57; v38 = 63; strcpy((char *)v36, "sHimMeR glOrP... cRyStAl sHine!"); v33 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v17 = DialogObject::create((__int64)&v33, (__int64)&v36, 42, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v17); v39 = &v33; v40 = -1; v41 = -1; v18 = cocos2d::CCString::createWithFormat( "%i... bRinG ShiNy!", 1000); CString = cocos2d::CCString::getCString(v18); v33 = 0; v34 = 0; v35 = 0; v20 = -1; do ++v20; while ( CString[v20] ); sub_14003D230(&v33, CString, v20); v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x20u); v37 = 18; v38 = 31; strcpy((char *)v36, "Diamond Shopkeeper"); v21 = DialogObject::create((__int64)&v36, (__int64)&v33, 41, 1.0, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v21); v22 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v39 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v39); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v22 = qword_14090BFD0; } GameManager::setUGV(v22, &word_14075A854, 1u); goto LABEL_23; } if ( v11 == 1 ) { v39 = &v33; v40 = -1; v41 = -1; v12 = cocos2d::CCString::createWithFormat("%i... gLiSten gLoRp sPaRkle?", 1000); v13 = cocos2d::CCString::getCString(v12); v33 = 0; v34 = 0; v35 = 0; v14 = -1; do ++v14; while ( v13[v14] ); sub_14003D230(&v33, v13, v14); v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x20u); v37 = 18; v38 = 31; strcpy((char *)v36, "Diamond Shopkeeper"); v15 = DialogObject::create((__int64)&v36, (__int64)&v33, 47, 0.80000001, 0, (__int64)&v40); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v15); v39 = &v36; v40 = -1; v41 = -1; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0x50u); v37 = 66; v38 = 79; strcpy((char *)v36, "..... sHiNY?"); v33 = 0; v34 = 0; v35 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 18; v35 = 31; strcpy((char *)v33, "Diamond Shopkeeper"); v16 = 48; goto LABEL_22; } LABEL_23: if ( (int)++a1[144] > 3 ) a1[144] = 0; LABEL_25: DialogLayer = DialogLayer::createDialogLayer(0, (__int64)v2, 4u); (*(void (__fastcall **)(_DWORD *, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, DialogLayer, 100); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)DialogLayer + 64LL))(DialogLayer, 3); if ( v5 ) *((_QWORD *)DialogLayer + 78) = a1 + 102; v28 = cocos2d::CCDirector::sharedDirector(v27); cocos2d::CCDirector::getWinSize(v28, &v39); v29 = **((_QWORD **)DialogLayer + 70); v30 = *((_QWORD *)DialogLayer + 70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, *(float *)&v39 * 0.5, *((float *)&v39 + 1) * 0.5); (*(void (__fastcall **)(__int64, __int64))(v29 + 184))(v30, v31); return DialogLayer::animateInRandomSide(DialogLayer); }
GD Web Decomp Icon

GD Web Decomp

Raw Source