// // LevelStatsInfoPopup::buildInfoText from 0xcf8d5c to 0xcf97e8 (2700 bytes) // // 2 xrefs: // > LevelStatsInfoPopup::init @ 0xcf9a1c // > @ 0xcd750 // // 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 13:06:50 +0000 // __int64 *__usercall LevelStatsInfoPopup::buildInfoText@(LevelStatsInfoPopup *this@, __int64 *a2@) { __int64 v2; // x22 char v5; // w0 int v6; // w25 int v7; // w1 unsigned int v8; // w25 __int64 v9; // x0 __int64 v10; // x1 __int64 v11; // x1 int v12; // w28 __int64 v13; // x1 int v14; // w0 __int64 v15; // x1 int v16; // w0 const char *v17; // x27 char *v18; // x2 char *v19; // x3 char *v20; // x4 cocos2d::CCString *v21; // x0 size_t v22; // x0 int v23; // w25 char *v24; // x1 cocos2d::CCString *v25; // x0 size_t v26; // x0 GJGameLevel *v27; // x0 int v28; // w1 char *v29; // x1 cocos2d::CCString *v30; // x0 size_t v31; // x0 __int64 v32; // x0 size_t v33; // x1 char v35; // w3 __int64 v36; // x4 __int64 v37; // x5 __int64 v38; // x22 __int64 v39; // x0 __int64 v40; // x2 __int64 v41; // x0 __int64 v42; // x1 __int64 v43; // x0 size_t v44; // x3 char v45; // w0 __int64 v46; // x2 __int64 v47; // x0 __int64 v48; // x1 __int64 v49; // x26 __int64 v50; // x0 __int64 v51; // x2 __int64 v52; // x0 __int64 v53; // x1 __int64 v54; // x0 size_t v55; // x3 int v56; // w26 size_t v57; // x27 int v58; // w1 const char *v59; // x1 cocos2d::CCString *v60; // x0 size_t v61; // x0 char *v62; // x1 size_t v63; // x2 char *v64; // x0 size_t v65; // x28 size_t v66; // x2 void *v67; // x5 unsigned __int64 v68; // x0 int v69; // w3 char *i; // x4 int v71; // w4 __int64 v72; // x0 char *v73; // x24 _BYTE *v74; // x0 size_t v75; // x2 char *v76; // x1 const char *v77; // [xsp+60h] [xbp+60h] const char *CString; // [xsp+60h] [xbp+60h] int v79; // [xsp+68h] [xbp+68h] char *v80; // [xsp+68h] [xbp+68h] char *v81; // [xsp+68h] [xbp+68h] char *v82; // [xsp+68h] [xbp+68h] __int64 v83; // [xsp+78h] [xbp+78h] BYREF __int64 v84; // [xsp+80h] [xbp+80h] void *v85; // [xsp+88h] [xbp+88h] __int64 v86[3]; // [xsp+90h] [xbp+90h] BYREF __int64 v87; // [xsp+A8h] [xbp+A8h] BYREF __int64 v88; // [xsp+B0h] [xbp+B0h] void *v89; // [xsp+B8h] [xbp+B8h] __int64 v90; // [xsp+C0h] [xbp+C0h] BYREF __int64 v91; // [xsp+C8h] [xbp+C8h] void *v92; // [xsp+D0h] [xbp+D0h] __int64 v93[3]; // [xsp+D8h] [xbp+D8h] BYREF __int64 v94; // [xsp+F0h] [xbp+F0h] BYREF __int64 v95; // [xsp+F8h] [xbp+F8h] void *v96; // [xsp+100h] [xbp+100h] __int64 v97; // [xsp+108h] [xbp+108h] BYREF __int64 v98; // [xsp+110h] [xbp+110h] void *v99; // [xsp+118h] [xbp+118h] __int64 v100[2]; // [xsp+120h] [xbp+120h] BYREF void *v101; // [xsp+130h] [xbp+130h] unsigned __int64 v102[2]; // [xsp+138h] [xbp+138h] BYREF void *v103; // [xsp+148h] [xbp+148h] __int64 v104; // [xsp+150h] [xbp+150h] BYREF __int64 v105; // [xsp+158h] [xbp+158h] char *v106; // [xsp+160h] [xbp+160h] __int64 v107; // [xsp+168h] [xbp+168h] BYREF size_t v108; // [xsp+170h] [xbp+170h] void *v109; // [xsp+178h] [xbp+178h] __int64 v110; // [xsp+180h] [xbp+180h] BYREF size_t v111; // [xsp+188h] [xbp+188h] char *v112; // [xsp+190h] [xbp+190h] v2 = *((_QWORD *)this + 83); v83 = 0; v5 = *(_BYTE *)(v2 + 392); v6 = *(_DWORD *)(v2 + 620); v7 = *(_DWORD *)(v2 + 624); v84 = 0; v8 = v6 - v7; v85 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v83, *(void **)(v2 + 408), *(_QWORD *)(v2 + 400)); } else { v9 = *(_QWORD *)(v2 + 392); v10 = *(_QWORD *)(v2 + 400); v85 = *(void **)(v2 + 408); v83 = v9; v84 = v10; } v11 = (unsigned __int8)v83 >> 1; if ( (v83 & 1) != 0 ) v11 = v84; if ( !v11 ) goto LABEL_6; cocos2d::ZipUtils::decompressString(&v107, &v83, 0, 11); v56 = v107 & 1; if ( v56 ) { v57 = v108; v58 = (int)(unsigned __int8)v107 >> 1; if ( !v108 ) { v12 = 1; v79 = 1; LABEL_83: operator delete(v109); goto LABEL_7; } } else { v58 = (int)(unsigned __int8)v107 >> 1; if ( !v58 ) { LABEL_6: v12 = 1; v79 = 1; goto LABEL_7; } v57 = v108; } v65 = v58; v66 = v57; v67 = v109; v68 = 0; v69 = 0; if ( !v56 ) goto LABEL_105; while ( v68 < v57 ) { for ( i = (char *)v109; ; i = (char *)&v107 + 1 ) { v71 = (unsigned __int8)i[v68++]; if ( v71 == 59 ) ++v69; if ( v56 ) break; LABEL_105: if ( v68 >= v58 ) { if ( v69 ) v8 = v69 - 1; if ( v58 ) { v66 = v58; v73 = (char *)&v107 + 1; goto LABEL_134; } goto LABEL_117; } } } if ( v69 ) v8 = v69 - 1; if ( !v57 ) { v110 = 0; v111 = 0; v112 = nullptr; LABEL_128: std::string::__init(&v110, v67, v57); goto LABEL_118; } v73 = (char *)v109; LABEL_134: v82 = (char *)v109; v74 = memchr(v73, 59, v66); v67 = v82; if ( !v74 || (v75 = v74 - v73, v74 - v73 == -1) ) { v110 = 0; v111 = 0; v112 = nullptr; if ( !v56 ) { LABEL_117: v112 = (char *)v109; v110 = v107; v111 = v108; goto LABEL_118; } goto LABEL_128; } if ( v56 ) { v65 = v57; v76 = v82; } else { v76 = (char *)&v107 + 1; } if ( v65 <= v75 ) v75 = v65; v110 = 0; v111 = 0; v112 = nullptr; std::string::__init(&v110, v76, v75); LABEL_118: v72 = LevelSettingsObject::objectFromString((char *)&v110); if ( v72 ) { v12 = *(unsigned __int8 *)(v72 + 458) ^ 1; v79 = *(unsigned __int8 *)(v72 + 457) ^ 1; } else { v12 = 1; v79 = 1; } if ( (v110 & 1) != 0 ) operator delete(v112); if ( (v107 & 1) != 0 ) goto LABEL_83; LABEL_7: *a2 = 0; a2[1] = 0; a2[2] = 0; if ( *(_DWORD *)(*((_QWORD *)this + 83) + 1140LL) == 2 ) { GameToolbox::pointsToString((GameToolbox *)v8, (unsigned __int64 *)&v107); v59 = (char *)&v107 + 1; if ( (v107 & 1) != 0 ) v59 = (const char *)v109; v60 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Objects: %s", v59); CString = (const char *)cocos2d::CCString::getCString(v60); v61 = strlen(CString); std::string::assign(a2, CString, v61); if ( (v107 & 1) != 0 ) operator delete(v109); } else { v104 = 0; v105 = 0; v106 = nullptr; std::string::__init(&v104, "NA", 2u); v13 = *((_QWORD *)this + 83); v14 = *(_DWORD *)(v13 + 512); if ( v14 <= 0 ) { v35 = *(_BYTE *)(v13 + 464); v87 = 0; v88 = 0; v89 = nullptr; if ( (v35 & 1) != 0 ) { std::string::__init(&v87, *(void **)(v13 + 480), *(_QWORD *)(v13 + 472)); } else { v36 = *(_QWORD *)(v13 + 464); v37 = *(_QWORD *)(v13 + 472); v89 = *(void **)(v13 + 480); v87 = v36; v88 = v37; } v38 = (unsigned __int8)v87 >> 1; if ( (v87 & 1) != 0 ) { v38 = v88; operator delete(v89); } if ( v38 ) { v39 = *((_QWORD *)this + 83); v90 = 0; v40 = v39 + 464; v91 = 0; LOBYTE(v39) = *(_BYTE *)(v39 + 464); v92 = nullptr; if ( (v39 & 1) != 0 ) { std::string::__init(&v90, *(void **)(v40 + 16), *(_QWORD *)(v40 + 8)); } else { v41 = *(_QWORD *)v40; v42 = *(_QWORD *)(v40 + 8); v92 = *(void **)(v40 + 16); v90 = v41; v91 = v42; } v43 = std::string::append((__int64)&v90, " ago", 4u); v44 = *(_QWORD *)(v43 + 8); v110 = *(_QWORD *)v43; v111 = v44; v112 = *(char **)(v43 + 16); *(_QWORD *)v43 = 0; *(_QWORD *)(v43 + 8) = 0; *(_QWORD *)(v43 + 16) = 0; if ( (v104 & 1) != 0 ) { *v106 = 0; v105 = 0; } else { LOWORD(v104) = 0; } std::string::reserve(&v104, 0); v104 = v110; v105 = v111; v106 = v112; if ( (v90 & 1) != 0 ) operator delete(v92); } } else { GameToolbox::timestampToDateString((GameToolbox *)v14, v86); if ( (v104 & 1) != 0 ) { *v106 = 0; v105 = 0; } else { LOWORD(v104) = 0; } std::string::reserve(&v104, 0); v106 = (char *)v86[2]; v104 = v86[0]; v105 = v86[1]; } v107 = 0; v108 = 0; v109 = nullptr; std::string::__init(&v107, "NA", 2u); v15 = *((_QWORD *)this + 83); v16 = *(_DWORD *)(v15 + 516); if ( v16 <= 0 ) { v45 = *(_BYTE *)(v15 + 488); v46 = v15 + 488; v94 = 0; v95 = 0; v96 = nullptr; if ( (v45 & 1) != 0 ) { std::string::__init(&v94, *(void **)(v15 + 504), *(_QWORD *)(v15 + 496)); } else { v47 = *(_QWORD *)v46; v48 = *(_QWORD *)(v15 + 496); v96 = *(void **)(v46 + 16); v94 = v47; v95 = v48; } v49 = (unsigned __int8)v94 >> 1; if ( (v94 & 1) != 0 ) { v49 = v95; operator delete(v96); } if ( v49 ) { v50 = *((_QWORD *)this + 83); v97 = 0; v51 = v50 + 488; v98 = 0; LOBYTE(v50) = *(_BYTE *)(v50 + 488); v99 = nullptr; if ( (v50 & 1) != 0 ) { std::string::__init(&v97, *(void **)(v51 + 16), *(_QWORD *)(v51 + 8)); } else { v52 = *(_QWORD *)v51; v53 = *(_QWORD *)(v51 + 8); v99 = *(void **)(v51 + 16); v97 = v52; v98 = v53; } v54 = std::string::append((__int64)&v97, " ago", 4u); v55 = *(_QWORD *)(v54 + 8); v110 = *(_QWORD *)v54; v111 = v55; v112 = *(char **)(v54 + 16); *(_QWORD *)v54 = 0; *(_QWORD *)(v54 + 8) = 0; *(_QWORD *)(v54 + 16) = 0; if ( (v107 & 1) != 0 ) { *(_BYTE *)v109 = 0; v108 = 0; } else { LOWORD(v107) = 0; } std::string::reserve(&v107, 0); v107 = v110; v108 = v111; v109 = v112; if ( (v97 & 1) != 0 ) operator delete(v99); } } else { GameToolbox::timestampToDateString((GameToolbox *)v16, v93); if ( (v107 & 1) != 0 ) { *(_BYTE *)v109 = 0; v108 = 0; } else { LOWORD(v107) = 0; } std::string::reserve(&v107, 0); v107 = v93[0]; v108 = v93[1]; v109 = (void *)v93[2]; } GameToolbox::gameVersionToString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 83) + 792LL), v100); v17 = (char *)v100 + 1; if ( (v100[0] & 1) != 0 ) v17 = (const char *)v101; GameToolbox::pointsToString((GameToolbox *)v8, v102); v18 = (char *)v102 + 1; if ( (v102[0] & 1) != 0 ) v18 = (char *)v103; v19 = (char *)&v104 + 1; if ( (v104 & 1) != 0 ) v19 = v106; v20 = (char *)&v107 + 1; if ( (v107 & 1) != 0 ) v20 = (char *)v109; v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Game Version: %s\n" "Objects: %s\n" "Uploaded: %s\n" "Updated: %s", v17, v18, v19, v20); v77 = (const char *)cocos2d::CCString::getCString(v21); v22 = strlen(v77); std::string::assign(a2, v77, v22); if ( (v102[0] & 1) != 0 ) operator delete(v103); if ( (v100[0] & 1) != 0 ) operator delete(v101); if ( (v107 & 1) != 0 ) operator delete(v109); if ( (v104 & 1) != 0 ) operator delete(v106); } sub_CF847C(*(_DWORD *)(*((_QWORD *)this + 83) + 652LL), &v104); if ( !v79 ) { v23 = v104 & 1; if ( v23 ) { if ( v105 != 2 ) { LABEL_35: v24 = v106; LABEL_36: v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nIn Editor: %s", v24); v80 = (char *)cocos2d::CCString::getCString(v25); v26 = strlen(v80); std::string::append((__int64)a2, v80, v26); goto LABEL_37; } v64 = v106; } else { v24 = (char *)&v104 + 1; if ( (int)(unsigned __int8)v104 >> 1 != 2 ) goto LABEL_36; v64 = (char *)&v104 + 1; } if ( !memcmp(v64, "NA", 2u) ) goto LABEL_37; v24 = (char *)&v104 + 1; if ( !v23 ) goto LABEL_36; goto LABEL_35; } LABEL_37: v27 = *((GJGameLevel **)this + 83); v28 = *((_DWORD *)v27 + 164); if ( !v12 && v28 > 0 ) { sub_CF847C(v28, &v110); v29 = (char *)&v110 + 1; if ( (v110 & 1) != 0 ) v29 = v112; v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"\nEditor (C): %s", v29); v81 = (char *)cocos2d::CCString::getCString(v30); v31 = strlen(v81); std::string::append((__int64)a2, v81, v31); if ( (v110 & 1) != 0 ) operator delete(v112); v27 = *((GJGameLevel **)this + 83); } if ( !GJGameLevel::isPlatformer(v27) ) { v32 = *((_QWORD *)this + 83); v110 = 0; v111 = 0; v112 = nullptr; if ( (*(_BYTE *)(v32 + 1208) & 1) != 0 ) { std::string::__init(&v110, *(void **)(v32 + 1224), *(_QWORD *)(v32 + 1216)); } else { v33 = *(_QWORD *)(v32 + 1216); v110 = *(_QWORD *)(v32 + 1208); v111 = v33; v112 = *(char **)(v32 + 1224); } LevelStatsInfoPopup::decodeProgress((char *)&v110, &v107); if ( (v110 & 1) != 0 ) operator delete(v112); if ( (v107 & 1) != 0 ) { if ( !v108 ) { LABEL_51: operator delete(v109); goto LABEL_52; } } else if ( !((int)(unsigned __int8)v107 >> 1) ) { goto LABEL_52; } std::string::append((__int64)a2, "\nProgress: ", 0x13u); if ( (v107 & 1) != 0 ) { v62 = (char *)v109; v63 = v108; } else { v63 = (unsigned __int8)v107 >> 1; v62 = (char *)&v107 + 1; } std::string::append((__int64)a2, v62, v63); if ( (v107 & 1) != 0 ) goto LABEL_51; } LABEL_52: if ( (v104 & 1) != 0 ) operator delete(v106); if ( (v83 & 1) != 0 ) operator delete(v85); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source