// // SecretNumberLayer::playNumberEffect from 0x14057f600 to 0x14057fa7c (1148 bytes) // // 2 xrefs: // > SecretLayer2::onSubmit @ 0x14057c493 // > @ 0x14092c954 // // 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:25 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall SecretNumberLayer::playNumberEffect(__int64 a1, unsigned int a2) { __int64 v3; // rax int v4; // r14d int v5; // edi int v6; // r12d cocos2d::CCString *v7; // rax const char *CString; // rax size_t v9; // r8 __int64 v10; // rdx __int64 v11; // r8 __int64 v12; // r9 unsigned int v13; // r13d int v14; // esi unsigned int v15; // ebx int v16; // eax size_t v17; // r8 __int128 *v18; // rdx const char *v19; // rcx char *v20; // rcx cocos2d::CCString *v21; // rax const char *v22; // rax struct cocos2d::CCLabelBMFont *v23; // r15 __int64 v24; // rbx __int64 v25; // rax struct cocos2d::CCFiniteTimeAction *v26; // rbx struct cocos2d::CCFiniteTimeAction *v27; // rax float v28; // xmm0_4 struct cocos2d::CCFadeOut *v29; // rbx __int64 v30; // rax struct cocos2d::CCAction *v31; // rax struct cocos2d::CCFiniteTimeAction *v32; // rbx __int64 v33; // rax struct cocos2d::CCAction *v34; // rbx struct cocos2d::CCDelayTime *v35; // [rsp+40h] [rbp-C0h] BYREF float v36[2]; // [rsp+48h] [rbp-B8h] BYREF __int64 v37; // [rsp+50h] [rbp-B0h] struct cocos2d::CCSpawn *v38; // [rsp+58h] [rbp-A8h] __int64 v39; // [rsp+60h] [rbp-A0h] struct cocos2d::CCFiniteTimeAction *v40; // [rsp+68h] [rbp-98h] _BYTE v41[8]; // [rsp+70h] [rbp-90h] BYREF __int128 v42; // [rsp+78h] [rbp-88h] BYREF unsigned __int64 v43; // [rsp+88h] [rbp-78h] unsigned __int64 v44; // [rsp+90h] [rbp-70h] char *String[2]; // [rsp+98h] [rbp-68h] BYREF __int128 v46; // [rsp+A8h] [rbp-58h] v37 = a1; v3 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3, v36); v4 = 0; v5 = 0; v6 = 0; v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a2); CString = cocos2d::CCString::getCString(v7); v42 = 0; v43 = 0; v44 = 0; v9 = -1; do ++v9; while ( CString[v9] ); sub_14003D230(&v42, CString, v9); v13 = (int)(float)((float)((float)rand() / 32767.0) * 100.0); v14 = 0; while ( 1 ) { if ( v14 > 0 ) { if ( v4 < 3 ) { if ( v5 < 2 ) v15 = ((float)((float)rand() / 32767.0) <= 0.5) + 1; else v15 = 1; } else { v15 = 2; } if ( v15 != 1 ) ++v5; v16 = v4 + 1; if ( v15 != 1 ) v16 = v4; v4 = v16; *(_OWORD *)String = 0; v46 = 0; if ( v43 < v6 ) sub_14003F4D0(v6, v10, v11, v12); v17 = v15; if ( v43 - v6 < v15 ) v17 = v43 - v6; v18 = &v42; if ( v44 > 0xF ) v18 = (__int128 *)v42; sub_14003D230(String, (char *)v18 + v6, v17); v6 += v15; v19 = (const char *)String; if ( *((_QWORD *)&v46 + 1) > 0xFu ) v19 = String[0]; v13 += atoi(v19); if ( *((_QWORD *)&v46 + 1) > 0xFu ) { v20 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v46 + 1) + 1LL) >= 0x1000 ) { v20 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } } v21 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v13); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCLabelBMFont::create(v22, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 464LL))(v37, v23); v24 = *(_QWORD *)v23; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v36[0] * 0.5, (float)(v36[1] * 0.5) + 94.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v24 + 184))(v23, v25); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)v23 + 336LL))(v23, 0); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v23 + 46) + 40LL))((__int64)v23 + 368, 0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23); v39 = cocos2d::CCShow::create(); v40 = cocos2d::CCDelayTime::create((float)v14 * 0.55000001); v26 = cocos2d::CCFadeIn::create(0.1); v27 = cocos2d::CCScaleTo::create(0.2, 1.0); v38 = cocos2d::CCSpawn::createWithTwoActions(v26, v27); v35 = cocos2d::CCDelayTime::create(0.2); v28 = v14 == 5 ? 0.5 : 0.25; v29 = cocos2d::CCFadeOut::create(v28); v30 = cocos2d::CCCallFunc::create(v23, sub_14003F5B0); v31 = cocos2d::CCSequence::create(v40, v39, v38, v35, v29, v30, 0); v32 = v31; if ( v14 == 5 ) break; cocos2d::CCNode::runAction(v23, v31); if ( ++v14 >= 6 ) goto LABEL_33; } v33 = cocos2d::CCCallFunc::create(v37, sub_14003F5B0); v34 = cocos2d::CCSequence::create(v32, v33, 0); LOWORD(v35) = -106; BYTE2(v35) = -1; (**((void (__fastcall ***)(__int64, struct cocos2d::CCDelayTime **))v23 + 46))((__int64)v23 + 368, &v35); cocos2d::CCNode::runAction(v23, v34); LABEL_33: sub_14003D310((__int64)&v42); }
GD Web Decomp Icon

GD Web Decomp

Raw Source