// // LevelPage::onInfo from 0x14031ddf0 to 0x14031e28f (1183 bytes) // // 2 xrefs: // > LevelSelectLayer::onInfo @ 0x140319c10 // > @ 0x1406d4b68 // // 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=5 void LevelPage::onInfo(LevelPage *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // rdx int v4; // eax char *v5; // rdx size_t v6; // rbx __int64 v7; // rax FLAlertLayer *v8; // rbx void *v9; // rcx char *v10; // rdx size_t v11; // rbx __int64 v12; // rax FLAlertLayer *v13; // rbx GJGameLevel *v14; // rax const char *v15; // rdx cocos2d::CCString *v16; // rax const char *CString; // rax size_t v18; // rbx size_t v19; // r8 __int128 *v20; // rdx __int64 v21; // rax FLAlertLayer *v22; // rbx __int128 v23; // [rsp+50h] [rbp-49h] BYREF __int64 v24; // [rsp+60h] [rbp-39h] __int64 v25; // [rsp+68h] [rbp-31h] __int128 *v26; // [rsp+70h] [rbp-29h] __int128 *v27; // [rsp+78h] [rbp-21h] _BYTE v28[32]; // [rsp+80h] [rbp-19h] BYREF __int128 v29; // [rsp+A0h] [rbp+7h] BYREF __int128 v30; // [rsp+B0h] [rbp+17h] _QWORD v31[4]; // [rsp+C0h] [rbp+27h] BYREF m_level = a1->m_level; if ( m_level ) { v4 = m_level->m_levelID.random - m_level->m_levelID.seed; if ( v4 == -1 ) { v29 = 0; v5 = (char *)sub_14003AA10(0x50u); *(_QWORD *)&v29 = v5; *(_QWORD *)&v30 = 77; *((_QWORD *)&v30 + 1) = 79; strcpy(v5, "Roses are red\nViolets are blue\nWelcome to\n2.2"); v23 = 0; v24 = 0; v25 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003A930(&v23, v5, v6); v26 = &v23; v7 = sub_14003BDB0((__int64)v31, (__int64)&v23); v8 = FLAlertLayer::create(0, (int)"It's a secret...", v7, (__int64)"OK", 0, 1135869952, 0, 0, 1065353216); sub_14003A830((__int64)&v23); v8->show(v8); goto LABEL_6; } if ( v4 == -2 ) { v29 = 0; v10 = (char *)sub_14003AA10(0x80u); *(_QWORD *)&v29 = v10; *(_QWORD *)&v30 = 118; *((_QWORD *)&v30 + 1) = 127; strcpy( v10, "The path leads to an old tower. It's been left alone for years, with little reason to explore."); v23 = 0; v24 = 0; v25 = 0; v11 = -1; do ++v11; while ( v10[v11] ); sub_14003A930(&v23, v10, v11); v27 = &v23; v12 = sub_14003BDB0((__int64)v31, (__int64)&v23); v13 = FLAlertLayer::create(0, (int)"The Tower", v12, (__int64)"OK", 0, 1135869952, 0, 0, 1065353216); sub_14003A830((__int64)&v23); v13->show(v13); LABEL_6: if ( *((_QWORD *)&v30 + 1) <= 0xFu ) return; v9 = (void *)v29; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) < 0x1000 ) goto LABEL_9; v9 = *(void **)(v29 - 8); if ( (unsigned __int64)(v29 - (_QWORD)v9 - 8) <= 0x1F ) goto LABEL_9; goto LABEL_26; } sub_14003BDB0((__int64)v31, (__int64)&m_level->m_levelName); v15 = (const char *)v31; if ( v31[3] > 0xFu ) v15 = (const char *)v31[0]; v14 = a1->m_level; v16 = cocos2d::CCString::createWithFormat( "%s\n" "Total Attempts: %i\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", v15, v14->m_attempts.random - v14->m_attempts.seed, v14->m_jumps.random - v14->m_jumps.seed, v14->m_normalPercent.random - v14->m_normalPercent.seed, v14->m_practicePercent); CString = cocos2d::CCString::getCString(v16); v29 = 0; v30 = 0; v18 = -1; v19 = -1; do ++v19; while ( CString[v19] ); sub_14003A930(&v29, CString, v19); sub_14003A830((__int64)v31); v20 = &v29; if ( *((_QWORD *)&v30 + 1) > 0xFu ) v20 = (__int128 *)v29; v23 = 0; v24 = 0; v25 = 0; do ++v18; while ( *((_BYTE *)v20 + v18) ); sub_14003A930(&v23, v20, v18); v27 = &v23; v21 = sub_14003BDB0((__int64)v28, (__int64)&v23); v22 = FLAlertLayer::create(0, (int)"Level Stats", v21, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003A830((__int64)&v23); v22->show(v22); if ( *((_QWORD *)&v30 + 1) > 0xFu ) { v9 = (void *)v29; if ( (unsigned __int64)(*((_QWORD *)&v30 + 1) + 1LL) < 0x1000 || (v9 = *(void **)(v29 - 8), (unsigned __int64)(v29 - (_QWORD)v9 - 8) <= 0x1F) ) { LABEL_9: j_j_free(v9); return; } LABEL_26: invalid_parameter_noinfo_noreturn(); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source