// // SecretNumberLayer::playNumberEffect from 0x1403e9a20 to 0x1403e9e8f (1135 bytes) // // 2 xrefs: // > SecretLayer2::onSubmit @ 0x1403e6b5e // > @ 0x1406d8054 // // 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=1 void SecretNumberLayer::playNumberEffect(SecretNumberLayer *a1, int a2) { float v2; // xmm3_4 SecretNumberLayer *v4; // r13 int v5; // esi cocos2d::CCDirector *v6; // rax int v7; // r14d int v8; // edi int v9; // r12d cocos2d::CCString *v10; // rax const char *CString; // rax size_t v12; // r8 int v13; // r15d unsigned int v14; // ebx int v15; // eax size_t v16; // r8 __int128 *v17; // rdx const char *v18; // rcx char *v19; // rcx cocos2d::CCString *v20; // rax const char *v21; // rax struct cocos2d::CCLabelBMFont *v22; // r15 float v23; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v24; // rbx const cocos2d::CCPoint *v25; // rax __int64 v26; // r13 struct cocos2d::CCFadeIn *v27; // rbx struct cocos2d::CCScaleTo *v28; // rax float v29; // xmm0_4 unsigned int v30; // ebx struct cocos2d::CCSequence *v31; // rax cocos2d::ccColor3B *v32; // r8 struct cocos2d::CCFiniteTimeAction *v33; // rbx __int64 v34; // rax struct cocos2d::CCSequence *v35; // rbx cocos2d::ccColor3B *v36; // r8 float v37; // [rsp+20h] [rbp-E0h] _DWORD v38[3]; // [rsp+40h] [rbp-C0h] BYREF SecretNumberLayer *v39; // [rsp+50h] [rbp-B0h] struct cocos2d::CCDelayTime *v40; // [rsp+58h] [rbp-A8h] struct cocos2d::CCSpawn *v41; // [rsp+60h] [rbp-A0h] struct cocos2d::CCDelayTime *v42; // [rsp+68h] [rbp-98h] char *String[2]; // [rsp+78h] [rbp-88h] BYREF __int64 v44; // [rsp+88h] [rbp-78h] unsigned __int64 v45; // [rsp+90h] [rbp-70h] __int128 v46; // [rsp+98h] [rbp-68h] BYREF unsigned __int64 v47; // [rsp+A8h] [rbp-58h] unsigned __int64 v48; // [rsp+B0h] [rbp-50h] v4 = a1; v39 = a1; v5 = 0; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v6); v7 = 0; v8 = 0; v9 = 0; v10 = cocos2d::CCString::createWithFormat("%i", a2); CString = cocos2d::CCString::getCString(v10); v46 = 0; v47 = 0; v48 = 0; v12 = -1; do ++v12; while ( CString[v12] ); sub_14003A930(&v46, CString, v12); v13 = (int)(float)((float)((float)rand() / 32767.0) * 100.0); v38[0] = v13; while ( 1 ) { if ( v5 > 0 ) { if ( v7 < 3 ) { if ( v8 < 2 ) v14 = ((float)((float)rand() / 32767.0) <= 0.5) + 1; else v14 = 1; } else { v14 = 2; } if ( v14 != 1 ) ++v8; v15 = v7 + 1; if ( v14 != 1 ) v15 = v7; v7 = v15; *(_OWORD *)String = 0; v44 = 0; v45 = 0; if ( v47 < v9 ) sub_14003BCC0(v9); v16 = v14; if ( v47 - v9 < v14 ) v16 = v47 - v9; v17 = &v46; if ( v48 > 0xF ) v17 = (__int128 *)v46; sub_14003A930(String, (char *)v17 + v9, v16); v9 += v14; v18 = (const char *)String; if ( v45 > 0xF ) v18 = String[0]; v13 += atoi(v18); v38[0] = v13; if ( v45 > 0xF ) { v19 = String[0]; if ( v45 + 1 >= 0x1000 ) { v19 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v19 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v19); } } v20 = cocos2d::CCString::createWithFormat("%i", v13); v21 = cocos2d::CCString::getCString(v20); v22 = cocos2d::CCLabelBMFont::create(v21, (const char *)&qword_14052A4D8); v23 = ((float (__fastcall *)(SecretNumberLayer *, struct cocos2d::CCLabelBMFont *))v4->addChild_1)(v4, v22); v24 = v22->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v23, *(float *)&v38[2] * 0.5); v24->setPosition_0(v22, v25); v22->setVisible(v22, 0); v22->setOpacity(&v22->cocos2d::CCRGBAProtocol, 0); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v22->setScale_0)(v22); v26 = cocos2d::CCShow::create(); v42 = cocos2d::CCDelayTime::create((float)v5 * 0.55000001); v27 = cocos2d::CCFadeIn::create(0.1); v28 = cocos2d::CCScaleTo::create(0.2, 1.0); v41 = cocos2d::CCSpawn::createWithTwoActions(v27, v28); v40 = cocos2d::CCDelayTime::create(0.2); v29 = v5 == 5 ? 0.5 : 0.25; v30 = (unsigned int)cocos2d::CCFadeOut::create(v29); cocos2d::CCCallFunc::create(v22, sub_14003BE70); v37 = *(float *)&v30; v31 = cocos2d::CCSequence::create(v42, v26, v41, v40); v33 = v31; if ( v5 == 5 ) break; cocos2d::CCNode::runAction((CCLightFlash *)v22, (cocos2d::CCPoint)v31, v32, v2, v37); if ( ++v5 >= 6 ) goto LABEL_33; v13 = v38[0]; v4 = v39; } v34 = cocos2d::CCCallFunc::create(v39, sub_14003BE70); v35 = cocos2d::CCSequence::create(v33, v34, 0); LOWORD(v38[0]) = -106; BYTE2(v38[0]) = -1; v22->setColor(&v22->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v38); cocos2d::CCNode::runAction((CCLightFlash *)v22, (cocos2d::CCPoint)v35, v36, v2, v37); LABEL_33: sub_14003A830((__int64)&v46); }
GD Web Decomp Icon

GD Web Decomp

Raw Source