// // LevelInfoLayer::onLevelInfo from 0x1402fef60 to 0x1402ff1b0 (592 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x1402f8ef8 // > @ 0x1406d4304 // // 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=4 void LevelInfoLayer::onLevelInfo(LevelInfoLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // rax const char *v4; // rdx cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // rbx size_t v8; // r8 GJGameLevel *v9; // rcx int v10; // edx cocos2d::CCString *v11; // rax char *v12; // rax size_t v13; // r8 void **v14; // rdx __int64 v15; // rax FLAlertLayer *v16; // rbx void *v17; // rcx __int128 v18; // [rsp+58h] [rbp-41h] BYREF __int64 v19; // [rsp+68h] [rbp-31h] __int64 v20; // [rsp+70h] [rbp-29h] _BYTE v21[32]; // [rsp+80h] [rbp-19h] BYREF void *Block[2]; // [rsp+A0h] [rbp+7h] BYREF __int128 v23; // [rsp+B0h] [rbp+17h] _QWORD v24[4]; // [rsp+C0h] [rbp+27h] BYREF if ( !a1->m_isBusy ) { sub_14003BDB0((__int64)v24, (__int64)&a1->m_level->m_levelName); v4 = (const char *)v24; if ( v24[3] > 0xFu ) v4 = (const char *)v24[0]; m_level = a1->m_level; v5 = cocos2d::CCString::createWithFormat( "%s\n" "Total Attempts: %i\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", v4, m_level->m_attempts.random - m_level->m_attempts.seed, m_level->m_jumps.random - m_level->m_jumps.seed, m_level->m_normalPercent.random - m_level->m_normalPercent.seed, m_level->m_practicePercent); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Block = 0; v23 = 0; v7 = -1; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Block, CString, v8); sub_14003A830((__int64)v24); v9 = a1->m_level; v10 = v9->m_newNormalPercent2.random - v9->m_newNormalPercent2.seed; if ( v9->m_normalPercent.random - v9->m_normalPercent.seed != v10 ) { v11 = cocos2d::CCString::createWithFormat("\nLeaderboard: %i%%", v10); v12 = (char *)cocos2d::CCString::getCString(v11); v13 = -1; do ++v13; while ( v12[v13] ); sub_140041270(Block, v12, v13); } v14 = Block; if ( *((_QWORD *)&v23 + 1) > 0xFu ) v14 = (void **)Block[0]; v18 = 0; v19 = 0; v20 = 0; do ++v7; while ( *((_BYTE *)v14 + v7) ); sub_14003A930(&v18, v14, v7); v15 = sub_14003BDB0((__int64)v21, (__int64)&v18); v16 = FLAlertLayer::create(0, (int)"Level Stats", v15, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003A830((__int64)&v18); v16->show(v16); if ( *((_QWORD *)&v23 + 1) > 0xFu ) { v17 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v17); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source