// // StatsCell::getTitleFromKey from 0x613c04 to 0x614b04 (3840 bytes) // // 2 xrefs: // > StatsCell::loadFromObject @ 0x614b74 // > @ 0xbe1b8 // // 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 // const char *StatsCell::getTitleFromKey(StatsCell *a1, const char *a2) { _DWORD *v2; // x23 _DWORD *v3; // x28 unsigned __int64 v4; // x22 unsigned __int64 v5; // x20 size_t v6; // x2 int v7; // w19 __int64 v8; // x22 __int64 *v9; // x0 char *v10; // x0 const char *result; // x0 unsigned int *v12; // x28 int v13; // w1 unsigned int *v14; // x23 int v15; // w1 _DWORD *v16; // x28 size_t v17; // x4 size_t v18; // x23 size_t v19; // x2 int v20; // w19 __int64 v21; // x23 char *v22; // x0 char *v23; // x0 _DWORD *v24; // x28 size_t v25; // x4 size_t v26; // x23 size_t v27; // x2 int v28; // w19 __int64 v29; // x23 char *v30; // x0 char *v31; // x0 _DWORD *v32; // x28 size_t v33; // x4 size_t v34; // x23 size_t v35; // x2 int v36; // w19 __int64 v37; // x23 char *v38; // x0 char *v39; // x0 unsigned int *v40; // x28 int v41; // w1 _DWORD *v42; // x28 size_t v43; // x4 size_t v44; // x23 size_t v45; // x2 int v46; // w19 __int64 v47; // x23 char *v48; // x0 char *v49; // x0 unsigned int *v50; // x28 int v51; // w1 unsigned int *v52; // x28 int v53; // w1 unsigned int *v54; // x28 int v55; // w1 unsigned int *v56; // x3 int v57; // w1 unsigned int *v58; // x3 int v59; // w1 char *v60; // x19 char *v61; // x28 size_t v62; // x3 _DWORD *v63; // x4 size_t v64; // x2 int v65; // w23 unsigned int *v66; // x3 int v67; // w1 char *v68; // x23 char *v69; // x28 size_t v70; // x3 _DWORD *v71; // x4 size_t v72; // x2 int v73; // w19 unsigned int *v74; // x3 int v75; // w1 int v76; // w19 int v77; // w19 int v78; // w19 int v79; // w19 int v80; // w19 int v81; // w19 int v82; // w19 int v83; // w19 int v84; // w19 int v85; // w19 int v86; // w19 int v87; // w19 _QWORD v88[2]; // [xsp+0h] [xbp+0h] BYREF size_t v89; // [xsp+68h] [xbp+68h] _DWORD *v90; // [xsp+70h] [xbp+70h] char *v91; // [xsp+78h] [xbp+78h] void *v92; // [xsp+98h] [xbp+98h] BYREF void *v93; // [xsp+A0h] [xbp+A0h] BYREF v91 = (char *)a2; sub_D153B8((int)&v92, (char *)a2); sub_D153B8((int)&v93, "1"); v2 = v92; v3 = v93; v4 = *((_QWORD *)v92 - 3); v5 = *((_QWORD *)v93 - 3); if ( v5 > v4 ) v6 = *((_QWORD *)v92 - 3); else v6 = *((_QWORD *)v93 - 3); v7 = memcmp(v92, v93, v6); if ( v7 || (v7 = 0x7FFFFFFF, v8 = v4 - v5, v8 > 0x7FFFFFFF) ) { v9 = (__int64 *)(v3 - 6); if ( v3 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_7; LABEL_15: if ( &pthread_create ) { v12 = v3 - 2; do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(v3 - 2); *(v3 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v9); v2 = v92; v10 = (char *)v92 - 24; if ( (char *)v92 - 24 == (char *)&qword_124B6B0 ) goto LABEL_8; goto LABEL_21; } v9 = (__int64 *)(v3 - 6); if ( v8 >= (__int64)0xFFFFFFFF80000000LL ) v7 = v8; else v7 = 0x80000000; if ( v9 != &qword_124B6B0 ) goto LABEL_15; LABEL_7: v10 = (char *)(v2 - 6); if ( v2 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_8; LABEL_21: if ( &pthread_create ) { v14 = v2 - 2; do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(v2 - 2); *(v2 - 2) = v15 - 1; } if ( v15 <= 0 ) { operator delete(v10); if ( !v7 ) return "Total Jumps:"; goto LABEL_26; } LABEL_8: if ( !v7 ) return "Total Jumps:"; LABEL_26: sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, &byte_F78BA8); v16 = v92; v90 = v93; v17 = *((_QWORD *)v93 - 3); v18 = *((_QWORD *)v92 - 3); v89 = v17; if ( v17 > v18 ) v19 = v18; else v19 = v17; v20 = memcmp(v92, v93, v19); if ( !v20 ) { v20 = 0x7FFFFFFF; v21 = v18 - v89; if ( v21 <= 0x7FFFFFFF ) { if ( v21 >= (__int64)0xFFFFFFFF80000000LL ) v20 = v21; else v20 = 0x80000000; } } v22 = (char *)(v90 - 6); if ( v90 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v56 = v90 - 2; do v57 = __ldaxr(v56); while ( __stlxr(v57 - 1, v56) ); } else { v57 = *(v90 - 2); *(v90 - 2) = v57 - 1; } if ( v57 <= 0 ) operator delete(v22); v16 = v92; } v23 = (char *)(v16 - 6); if ( v16 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v40 = v16 - 2; do v41 = __ldaxr(v40); while ( __stlxr(v41 - 1, v40) ); } else { v41 = *(v16 - 2); *(v16 - 2) = v41 - 1; } if ( v41 <= 0 ) operator delete(v23); } if ( !v20 ) return "Total Attempts:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "3"); v24 = v92; v90 = v93; v25 = *((_QWORD *)v93 - 3); v26 = *((_QWORD *)v92 - 3); v89 = v25; if ( v25 > v26 ) v27 = v26; else v27 = v25; v28 = memcmp(v92, v93, v27); if ( !v28 ) { v28 = 0x7FFFFFFF; v29 = v26 - v89; if ( v29 <= 0x7FFFFFFF ) { if ( v29 >= (__int64)0xFFFFFFFF80000000LL ) v28 = v29; else v28 = 0x80000000; } } v30 = (char *)(v90 - 6); if ( v90 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v58 = v90 - 2; do v59 = __ldaxr(v58); while ( __stlxr(v59 - 1, v58) ); } else { v59 = *(v90 - 2); *(v90 - 2) = v59 - 1; } if ( v59 <= 0 ) operator delete(v30); v24 = v92; } v31 = (char *)(v24 - 6); if ( v24 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v50 = v24 - 2; do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *(v24 - 2); *(v24 - 2) = v51 - 1; } if ( v51 <= 0 ) operator delete(v31); } if ( !v28 ) return "Completed Levels:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, &byte_F2CA20); v32 = v92; v90 = v93; v33 = *((_QWORD *)v93 - 3); v34 = *((_QWORD *)v92 - 3); v89 = v33; if ( v33 > v34 ) v35 = v34; else v35 = v33; v36 = memcmp(v92, v93, v35); if ( !v36 ) { v36 = 0x7FFFFFFF; v37 = v34 - v89; if ( v37 <= 0x7FFFFFFF ) { if ( v37 >= (__int64)0xFFFFFFFF80000000LL ) v36 = v37; else v36 = 0x80000000; } } v38 = (char *)(v90 - 6); if ( v90 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v66 = v90 - 2; do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *(v90 - 2); *(v90 - 2) = v67 - 1; } if ( v67 <= 0 ) operator delete(v38); v32 = v92; } v39 = (char *)(v32 - 6); if ( v32 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v52 = v32 - 2; do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = *(v32 - 2); *(v32 - 2) = v53 - 1; } if ( v53 <= 0 ) { operator delete(v39); if ( v36 ) goto LABEL_67; return "Completed Online Levels:"; } } if ( !v36 ) return "Completed Online Levels:"; LABEL_67: sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "15"); v42 = v92; v90 = v93; v43 = *((_QWORD *)v93 - 3); v44 = *((_QWORD *)v92 - 3); v89 = v43; if ( v43 > v44 ) v45 = v44; else v45 = v43; v46 = memcmp(v92, v93, v45); if ( !v46 ) { v46 = 0x7FFFFFFF; v47 = v44 - v89; if ( v47 <= 0x7FFFFFFF ) { if ( v47 >= (__int64)0xFFFFFFFF80000000LL ) v46 = v47; else v46 = 0x80000000; } } v48 = (char *)(v90 - 6); if ( v90 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v74 = v90 - 2; do v75 = __ldaxr(v74); while ( __stlxr(v75 - 1, v74) ); } else { v75 = *(v90 - 2); *(v90 - 2) = v75 - 1; } if ( v75 <= 0 ) operator delete(v48); v42 = v92; } v49 = (char *)(v42 - 6); if ( v42 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v54 = v42 - 2; do v55 = __ldaxr(v54); while ( __stlxr(v55 - 1, v54) ); } else { v55 = *(v42 - 2); *(v42 - 2) = v55 - 1; } if ( v55 <= 0 ) operator delete(v49); } if ( !v46 ) return "Completed Daily Levels:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "5"); v60 = (char *)v92; v61 = (char *)v93; v62 = *((_QWORD *)v92 - 3); v63 = *((_DWORD **)v93 - 3); v89 = v62; v90 = v63; if ( (unsigned __int64)v63 > v62 ) v64 = v62; else v64 = (size_t)v63; v65 = memcmp(v92, v93, v64); if ( !v65 ) { v65 = 0x7FFFFFFF; if ( (__int64)(v89 - (_QWORD)v90) <= 0x7FFFFFFF ) { if ( (__int64)(v89 - (_QWORD)v90) >= (__int64)0xFFFFFFFF80000000LL ) v65 = v89 - (_DWORD)v90; else v65 = 0x80000000; } } if ( v61 - 24 != (char *)&qword_124B6B0 ) { sub_4DB620(v61 - 24); v60 = (char *)v92; } if ( v60 - 24 != (char *)&qword_124B6B0 ) sub_4DB620(v60 - 24); if ( !v65 ) return "Completed Demon Levels:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "6"); v68 = (char *)v92; v69 = (char *)v93; v70 = *((_QWORD *)v92 - 3); v71 = *((_DWORD **)v93 - 3); v89 = v70; v90 = v71; if ( (unsigned __int64)v71 > v70 ) v72 = v70; else v72 = (size_t)v71; v73 = memcmp(v92, v93, v72); if ( !v73 ) { v73 = 0x7FFFFFFF; if ( (__int64)(v89 - (_QWORD)v90) <= 0x7FFFFFFF ) { if ( (__int64)(v89 - (_QWORD)v90) >= (__int64)0xFFFFFFFF80000000LL ) v73 = v89 - (_DWORD)v90; else v73 = 0x80000000; } } if ( v69 - 24 != (char *)&qword_124B6B0 ) { sub_4DB620(v69 - 24); v68 = (char *)v92; } if ( v68 - 24 != (char *)&qword_124B6B0 ) sub_4DB620(v68 - 24); if ( !v73 ) return "Collected Stars:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "28"); v76 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v76 ) return "Collected Moons:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "8"); v77 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v77 ) return "Collected Secret Coins:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "12"); v78 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v78 ) return "Collected User Coins:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "7"); v79 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v79 ) return "Completed Map Packs:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "40"); v80 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v80 ) return "Completed Gauntlets:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "9"); v81 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v81 ) return "Players destroyed:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "10"); v82 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v82 ) return "Liked/Disliked Levels:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "11"); v83 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v83 ) return "Rated Levels:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "14"); v84 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v84 ) return "Total orbs collected:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "13"); v85 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v85 ) return "Collected Diamonds:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "41"); v86 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); if ( !v86 ) return "Collected List Rewards:"; sub_D153B8((int)&v92, v91); sub_D153B8((unsigned int)v88 + 160, "42"); v87 = sub_D17014(&v92, &v93); if ( (char *)v93 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v93 - 24); if ( (char *)v92 - 24 != (char *)&qword_124B6B0 ) sub_4DB620((char *)v92 - 24); result = v91; if ( !v87 ) return "Completed Insane Levels:"; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source