// // SecretNumberLayer::playNumberEffect from 0x61ddd8 to 0x61e07e (678 bytes) // // 1 xrefs: // > SecretLayer2::onSubmit @ 0x61eff8 // // 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:55:01 +0000 // int __fastcall SecretNumberLayer::playNumberEffect(SecretNumberLayer *this, const char *a2) { unsigned int v4; // r6 int v5; // r11 int v6; // r9 cocos2d::CCString *v7; // r0 const char *CString; // r0 const char *v9; // r4 size_t v10; // r0 const char *v11; // r1 int v12; // r4 cocos2d::CCString *v13; // r0 cocos2d::CCLabelBMFont *v14; // r0 const char *v15; // r2 cocos2d::CCNode *v16; // r5 void (__fastcall *v17)(cocos2d::CCNode *, _BYTE *); // r10 cocos2d::CCShow *v18; // r0 float v19; // r1 cocos2d::CCSequence *v20; // r10 float v21; // r1 cocos2d::CCSpawn *v22; // r8 float v23; // r2 cocos2d::CCFiniteTimeAction *v24; // r0 cocos2d::CCFiniteTimeAction *v25; // r2 float v26; // r1 float v27; // r1 int v28; // r8 float v29; // r0 int v30; // r0 cocos2d::CCSequence *v31; // r8 cocos2d::CCFiniteTimeAction *v32; // r0 void (__fastcall *v33)(cocos2d::CCNode *, _BYTE *); // r2 unsigned int v35; // r5 unsigned int v36; // r2 char *v37; // r1 size_t v38; // r2 char *v39; // r1 char *v40; // r0 char *v41; // [sp+14h] [bp-68h] cocos2d::CCFiniteTimeAction *v42; // [sp+18h] [bp-64h] int v43; // [sp+1Ch] [bp-60h] int v44; // [sp+20h] [bp-5Ch] float v45[2]; // [sp+3Ch] [bp-40h] BYREF _BYTE v46[8]; // [sp+44h] [bp-38h] BYREF int v47; // [sp+4Ch] [bp-30h] int v48; // [sp+50h] [bp-2Ch] int v49; // [sp+54h] [bp-28h] int v50; // [sp+58h] [bp-24h] int v51; // [sp+5Ch] [bp-20h] BYREF unsigned int v52; // [sp+60h] [bp-1Ch] char *v53; // [sp+64h] [bp-18h] int v54[2]; // [sp+68h] [bp-14h] BYREF char *v55; // [sp+70h] [bp-Ch] v4 = 0; v5 = 0; v6 = 0; cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v45); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); CString = (const char *)cocos2d::CCString::getCString(v7); v51 = 0; v52 = 0; v53 = nullptr; v9 = CString; v10 = strlen(CString); v11 = v9; v12 = 0; std::string::__init(&v51, v11, v10); v41 = (char *)(int)(float)((float)((float)rand() * 4.6566e-10) * 100.0); while ( 1 ) { v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v41); v14 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v13); v16 = (cocos2d::CCNode *)cocos2d::CCLabelBMFont::create(v14, "bigFont.fnt", v15); (*(void (__fastcall **)(SecretNumberLayer *, cocos2d::CCNode *))(*(_DWORD *)this + 228))(this, v16); v17 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v45[0] * 0.5, (float)(v45[1] * 0.5) + 94.0); v17(v16, v46); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v16 + 172))(v16, 0); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v16 + 512))(v16, 0); v18 = (cocos2d::CCShow *)(*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v16 + 80))(v16, 1077936128); v42 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCShow::create(v18); v20 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(COERCE_COCOS2D_CCDELAYTIME_((float)v12 * 0.55), v19); v22 = (cocos2d::CCSpawn *)cocos2d::CCFadeIn::create((cocos2d::CCFadeIn *)0x3DCCCCCD, v21); v24 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E4CCCCD, 1.0, v23); v43 = cocos2d::CCSpawn::createWithTwoActions(v22, v24, v25); v28 = cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3E4CCCCD, v26); if ( v12 == 5 ) v29 = 0.5; else v29 = 0.25; v44 = cocos2d::CCFadeOut::create((cocos2d::CCFadeOut *)LODWORD(v29), v27); v47 = 268; v48 = 1; v30 = cocos2d::CCCallFunc::create(v16, 268, 1); v31 = (cocos2d::CCSequence *)cocos2d::CCSequence::create(v20, v42, v43, v28, v44, v30, 0); if ( v12 == 5 ) { v49 = 268; v50 = 1; v32 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, 268, 1); v31 = (cocos2d::CCSequence *)cocos2d::CCSequence::create(v31, v32, 0); v33 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v16 + 536); v46[0] = -106; v46[1] = -1; v46[2] = -1; v33(v16, v46); } cocos2d::CCNode::runAction(v16, v31); if ( ++v12 == 6 ) return std::string::~string((int)&v51); if ( v6 <= 2 && (v5 > 1 || (float)((float)rand() * 4.6566e-10) > 0.5) ) { ++v6; v35 = 1; } else { ++v5; v35 = 2; } v54[0] = 0; v54[1] = 0; v55 = nullptr; if ( (v51 & 1) != 0 ) { v36 = v52; if ( v4 > v52 ) goto LABEL_18; v37 = v53; } else { v36 = (int)(unsigned __int8)v51 >> 1; if ( v4 > v36 ) LABEL_18: sub_3891C0(); v37 = (char *)&v51 + 1; } v38 = v36 - v4; v39 = &v37[v4]; if ( v38 >= v35 ) v38 = v35; std::string::__init(v54, v39, v38); v4 += v35; if ( (v54[0] & 1) != 0 ) v40 = v55; else v40 = (char *)v54 + 1; v41 += atoi(v40); std::string::~string((int)v54); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source