// // InfoLayer::onLevelInfo from 0x1003f0b5c to 0x1003f0f48 (1004 bytes) // // 1 xrefs: // > InfoLayer::init @ 0x1003ef580 // // This function is hookable on this platform (idp: arm, 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:04:30 +0000 // void __fastcall InfoLayer::onLevelInfo(__int64 *a1) { _DWORD *v2; // x0 __int64 v3; // x0 __int64 SavedLevel_1; // x19 std::string::size_type size; // x8 std::string::size_type v6; // x8 __int64 v7; // x0 bool v8; // w0 bool v9; // w20 void **v10; // x1 std::string *v11; // x1 std::string::size_type v12; // x2 int v13; // w8 float v14; // s8 std::string *p_dst; // x8 std::string *v16; // x9 void *v17; // x0 const std::string::value_type *CString; // x0 std::string *v19; // x8 std::string *v20; // x9 void *v21; // x0 const std::string::value_type *v22; // x0 int v23; // w8 std::string *v24; // x9 void *v25; // x0 const std::string::value_type *v26; // x0 std::string *v27; // x1 void *v28; // x19 void *v29[2]; // [xsp+18h] [xbp-E8h] BYREF char v30; // [xsp+2Fh] [xbp-D1h] void *__p[2]; // [xsp+30h] [xbp-D0h] BYREF char v32; // [xsp+47h] [xbp-B9h] void *v33[2]; // [xsp+48h] [xbp-B8h] BYREF char v34; // [xsp+5Fh] [xbp-A1h] std::string v35; // [xsp+60h] [xbp-A0h] BYREF std::string v36; // [xsp+78h] [xbp-88h] BYREF std::string v37; // [xsp+90h] [xbp-70h] BYREF std::string __dst; // [xsp+B0h] [xbp-50h] BYREF v2 = (_DWORD *)a1[89]; if ( v2 ) { sub_1000D6CEC(v2); return; } if ( a1[90] ) { sub_1004DE6A0(); return; } v3 = GameLevelManager::sharedState(); SavedLevel_1 = GameLevelManager::getSavedLevel_1(v3, a1[87]); if ( !SavedLevel_1 ) SavedLevel_1 = a1[87]; if ( *(char *)(SavedLevel_1 + 487) < 0 ) sub_1000097D0(&__dst, *(void **)(SavedLevel_1 + 464), *(_QWORD *)(SavedLevel_1 + 472)); else __dst = *(std::string *)(SavedLevel_1 + 464); if ( *(char *)(SavedLevel_1 + 511) < 0 ) sub_1000097D0(&v37, *(void **)(SavedLevel_1 + 488), *(_QWORD *)(SavedLevel_1 + 496)); else v37 = *(std::string *)(SavedLevel_1 + 488); size = HIBYTE(__dst.__r_.__value_.__r.__words[2]); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __dst.__r_.__value_.__l.__size_; if ( !size ) std::string::assign(&__dst, "NA"); v6 = HIBYTE(v37.__r_.__value_.__r.__words[2]); if ( (v37.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v6 = v37.__r_.__value_.__l.__size_; if ( !v6 ) std::string::assign(&v37, "NA"); sub_100009900(&v36, ""); v7 = GameManager::sharedState(); if ( GameManager::getGameVariable(v7, "0089") || a1[88] ) { sub_100009900(&v35, "(No description provided)"); GJGameLevel::getUnpackedLevelDescription(SavedLevel_1, v33); sub_100009900(__p, ""); v8 = sub_1000045BC(v33, __p); v9 = v8; if ( v32 < 0 ) { operator delete(__p[0]); if ( v9 ) { LABEL_31: if ( (v35.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v11 = &v35; else v11 = (std::string *)v35.__r_.__value_.__r.__words[0]; if ( (v35.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v12 = HIBYTE(v35.__r_.__value_.__r.__words[2]); else v12 = v35.__r_.__value_.__l.__size_; std::string::append(&v36, (const std::string::value_type *)v11, v12); std::string::append(&v36, "\n\n"); if ( v34 < 0 ) operator delete(v33[0]); if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); v13 = 1136525312; goto LABEL_42; } } else if ( v8 ) { goto LABEL_31; } if ( v34 >= 0 ) v10 = v33; else v10 = (void **)v33[0]; std::string::assign(&v35, (const std::string::value_type *)v10); goto LABEL_31; } v13 = 1133903872; LABEL_42: v14 = *(float *)&v13; p_dst = &__dst; if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; v16 = &v37; if ( (v37.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v16 = (std::string *)v37.__r_.__value_.__r.__words[0]; v17 = sub_1003065B0("Uploaded: %s ago\nUpdated: %s ago", (const char *)p_dst, (const char *)v16); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v17); std::string::append(&v36, CString); if ( *(int *)(SavedLevel_1 + 1044) >= 1 ) { sub_100009900(&v35, "Stars"); if ( GJGameLevel::isPlatformer(SavedLevel_1) ) std::string::assign(&v35, "Moons"); v19 = &v36; if ( (v36.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v19 = (std::string *)v36.__r_.__value_.__r.__words[0]; v20 = &v35; if ( (v35.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v20 = (std::string *)v35.__r_.__value_.__r.__words[0]; v21 = sub_1003065B0( "%s\n%s Requested: %i", (const char *)v19, (const char *)v20, *(_DWORD *)(SavedLevel_1 + 1044)); v22 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v21); std::string::assign(&v36, v22); if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); } v23 = *(_DWORD *)(SavedLevel_1 + 988) - *(_DWORD *)(SavedLevel_1 + 992); if ( v23 ) { v24 = &v36; if ( (v36.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v24 = (std::string *)v36.__r_.__value_.__r.__words[0]; v25 = sub_1003065B0("%s\nOriginal: %i", (const char *)v24, v23); v26 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v25); std::string::assign(&v36, v26); } if ( (v36.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v27 = &v36; else v27 = (std::string *)v36.__r_.__value_.__r.__words[0]; sub_100009900(v29, (char *)v27); v28 = FLAlertLayer::create_1(0, (__int64)"Level Info", (__int64)v29, (__int64)"OK", 0, v14); if ( v30 < 0 ) operator delete(v29[0]); (*(void (__fastcall **)(void *))(*(_QWORD *)v28 + 1312LL))(v28); if ( SHIBYTE(v36.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( SHIBYTE(v37.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v37.__r_.__value_.__l.__data_); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source