// // CreatorLayer::onSecretVault from 0x100298f50 to 0x100299102 (434 bytes) // // 1 xrefs: // > CreatorLayer::init @ 0x100297fcc // // 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 // void __fastcall CreatorLayer::onSecretVault(CreatorLayer *a1, cocos2d::CCObject *a2) { __m128 v2; // xmm0 GameStatsManager *v3; // rax cocos2d::CCDirector *v4; // rbx cocos2d::CCScene *v5; // rax cocos2d::CCTransitionFade *v6; // rax int m_vaultDialogIndex; // eax int v8; // eax __m128 v9; // xmm1 unsigned int v10; // ecx DialogObject *v11; // rax DialogLayer *v12; // r14 __int128 v13; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] char v15; // [rsp+20h] [rbp-40h] BYREF _BYTE v16[23]; // [rsp+21h] [rbp-3Fh] BYREF std::string v17; // [rsp+38h] [rbp-28h] BYREF v3 = GameStatsManager::sharedState(); if ( GameStatsManager::getStat(v3, "13") < 50 ) { v17.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; *(_DWORD *)((char *)&v17.__r_.__value_.__l.0 + 1) = 8026746; m_vaultDialogIndex = a1->m_vaultDialogIndex; if ( m_vaultDialogIndex < 0 ) { v2.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0; v9 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0); v9.f32[0] = v9.f32[0] + v2.f32[0]; v2.i64[0] = _mm_round_ss((__m128)0LL, v9, 11).u64[0]; v8 = (int)v2.f32[0]; } else { v8 = m_vaultDialogIndex + 1; } v10 = 0; if ( v8 < 11 ) v10 = v8; a1->m_vaultDialogIndex = v10; if ( v10 <= 0xA ) std::string::assign(&v17, (const std::string::value_type *)&unk_100818E60 + *((int *)&unk_100818E60 + v10)); v15 = 26; strcpy(v16, "The Keymaster"); if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 ) { sub_100006B70(&v13, v17.__r_.__value_.__l.__data_, v17.__r_.__value_.__l.__size_, *(double *)v2.i64); } else { __p = v17.__r_.__value_.__l.__data_; v13 = *(_OWORD *)&v17.__r_.__value_.__l.0; } v11 = (DialogObject *)DialogObject::create(&v15, &v13, 2, 0, 0xFFFFFF, 1.0); v12 = DialogLayer::create(v11, 2); if ( (v13 & 1) != 0 ) operator delete(__p); if ( (v15 & 1) != 0 ) operator delete(*(void **)&v16[15]); ((void (__fastcall *)(CreatorLayer *, DialogLayer *, __int64))a1->addChild_0)(a1, v12, 100); DialogLayer::updateChatPlacement(v12, Center); DialogLayer::animateInRandomSide(v12); if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v17.__r_.__value_.__l.__data_); } else { v4 = cocos2d::CCDirector::sharedDirector(); v5 = SecretLayer2::scene(); v6 = cocos2d::CCTransitionFade::create_1(0.5, v5); cocos2d::CCDirector::replaceScene(v4, v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source