// // sub_100926430 from 0x100926430 to 0x100926986 (1366 bytes) // // 1 xrefs: // > LevelStatsInfoPopup::init @ 0x100926160 // // This function is hookable on this platform (idp: pc, 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 12:38:19 +0000 // std::string *__fastcall sub_100926430(std::string *a1, __int64 a2) { __int64 v3; // rax const char *data; // rsi __int64 v5; // rax const char *v6; // rsi char *v7; // rax const char *CString; // r15 size_t v9; // rax size_t v10; // r12 _BYTE *v11; // r13 _DWORD *v12; // rax int v13; // esi std::string *v14; // r12 char *v15; // rax const std::string::value_type *v16; // rax char *v17; // rax const std::string::value_type *v18; // rax int NormalPercent; // eax char *v20; // rax const std::string::value_type *v21; // rax __int64 v22; // rax int v23; // esi const char *v24; // rsi char *v25; // rax const char *v26; // r15 size_t v27; // rax size_t v28; // r12 _BYTE *v29; // r13 _DWORD *v30; // rdi int v31; // esi char *v32; // rax const std::string::value_type *v33; // rax int v34; // r15d int v35; // ebx int v36; // eax char *v37; // rax const std::string::value_type *v38; // rax int v39; // eax _DWORD *v40; // rcx int v41; // esi char *v42; // rax const std::string::value_type *v43; // rax int v44; // esi bool v45; // cc int v46; // esi char *v47; // rax const std::string::value_type *v48; // rax int v49; // esi int v50; // esi char *v51; // rax const std::string::value_type *v52; // rax size_t v53; // rbx size_t v54; // rbx char *v55; // rax const std::string::value_type *v56; // rax int v57; // esi const char *v58; // rsi char *v59; // rax const std::string::value_type *v60; // rax std::string v63; // [rsp+10h] [rbp-40h] BYREF if ( GJGameLevel::isPlatformer(*(_QWORD *)(a2 + 664)) ) { v3 = *(_QWORD *)(a2 + 664); if ( (*(_BYTE *)(v3 + 344) & 1) != 0 ) { sub_10001AD30(&v63, *(const void **)(v3 + 360), *(_QWORD *)(v3 + 352)); v3 = *(_QWORD *)(a2 + 664); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_4; } else { v63 = *(std::string *)(v3 + 344); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_4: data = v63.__r_.__value_.__s.__data_; goto LABEL_10; } } data = v63.__r_.__value_.__l.__data_; LABEL_10: v7 = sub_10088E820("%s\nTotal Attempts: %i", data, *(_DWORD *)(v3 + 796) - *(_DWORD *)(v3 + 800)); CString = (const char *)cocos2d::CCString::getCString((__int64)v7); v9 = strlen(CString); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v10 = v9; if ( v9 >= 0x17 ) { v53 = 26; if ( (v9 | 7) != 0x17 ) v53 = (v9 | 7) + 1; v11 = operator new(v53); a1->__r_.__value_.__r.__words[2] = (std::string::size_type)v11; a1->__r_.__value_.__r.__words[0] = v53 | 1; a1->__r_.__value_.__l.__size_ = v10; } else { a1->__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v9); v11 = a1->__r_.__value_.__s.__data_; if ( !v9 ) { *v11 = 0; if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_15: v12 = *(_DWORD **)(a2 + 664); v13 = v12[383]; v14 = a1; if ( v13 > 0 ) { v15 = sub_10088E820("\nPractice Attempts: %i", v13); v16 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v15); std::string::append(a1, v16); v12 = *(_DWORD **)(a2 + 664); } v17 = sub_10088E820("\nTotal Jumps: %i", v12[202] - v12[203]); v18 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v17); std::string::append(a1, v18); if ( (int)GJGameLevel::getNormalPercent(*(_QWORD *)(a2 + 664)) > 0 && (int)GJGameLevel::getNormalPercent(*(_QWORD *)(a2 + 664)) <= 99 ) { NormalPercent = GJGameLevel::getNormalPercent(*(_QWORD *)(a2 + 664)); v20 = sub_10088E820("\nBest: %i%%", NormalPercent); v21 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v20); std::string::append(a1, v21); } v22 = *(_QWORD *)(a2 + 664); v23 = *(_DWORD *)(v22 + 1296); if ( v23 > 0 ) { GameToolbox::msToTimeString(&v63, v23, 0); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) v24 = v63.__r_.__value_.__l.__data_; else v24 = v63.__r_.__value_.__s.__data_; v55 = sub_10088E820("\nBest Time: %s", v24); v56 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v55); std::string::append(a1, v56); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v63.__r_.__value_.__l.__data_); v22 = *(_QWORD *)(a2 + 664); } v57 = *(_DWORD *)(v22 + 1336); if ( v57 ) { GameToolbox::pointsToString((size_t *)&v63, v57); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) v58 = v63.__r_.__value_.__l.__data_; else v58 = v63.__r_.__value_.__s.__data_; v59 = sub_10088E820("\nBest Points: %s", v58); v60 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v59); std::string::append(a1, v60); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v63.__r_.__value_.__l.__data_); } return v14; } LABEL_14: operator delete(v63.__r_.__value_.__l.__data_); goto LABEL_15; } } memmove(v11, CString, v10); v11[v10] = 0; if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_15; goto LABEL_14; } v5 = *(_QWORD *)(a2 + 664); if ( (*(_BYTE *)(v5 + 344) & 1) != 0 ) { sub_10001AD30(&v63, *(const void **)(v5 + 360), *(_QWORD *)(v5 + 352)); v5 = *(_QWORD *)(a2 + 664); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_7; } else { v63 = *(std::string *)(v5 + 344); if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_7: v6 = v63.__r_.__value_.__s.__data_; goto LABEL_25; } } v6 = v63.__r_.__value_.__l.__data_; LABEL_25: v25 = sub_10088E820("%s\nTotal Attempts: %i", v6, *(_DWORD *)(v5 + 796) - *(_DWORD *)(v5 + 800)); v26 = (const char *)cocos2d::CCString::getCString((__int64)v25); v27 = strlen(v26); if ( v27 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v28 = v27; if ( v27 >= 0x17 ) { v54 = 26; if ( (v27 | 7) != 0x17 ) v54 = (v27 | 7) + 1; v29 = operator new(v54); a1->__r_.__value_.__r.__words[2] = (std::string::size_type)v29; a1->__r_.__value_.__r.__words[0] = v54 | 1; a1->__r_.__value_.__l.__size_ = v28; LABEL_46: memmove(v29, v26, v28); v29[v28] = 0; if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_30; goto LABEL_29; } a1->__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v27); v29 = a1->__r_.__value_.__s.__data_; if ( v27 ) goto LABEL_46; *v29 = 0; if ( (*(_BYTE *)&v63.__r_.__value_.__s.0 & 1) != 0 ) LABEL_29: operator delete(v63.__r_.__value_.__l.__data_); LABEL_30: v30 = *(_DWORD **)(a2 + 664); v31 = v30[383]; v14 = a1; if ( v31 > 0 ) { v32 = sub_10088E820("\nPractice Attempts: %i", v31); v33 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v32); std::string::append(a1, v33); v30 = *(_DWORD **)(a2 + 664); } v34 = v30[202]; v35 = v30[203]; v36 = GJGameLevel::getNormalPercent((__int64)v30); v37 = sub_10088E820( "\nTotal Jumps: %i\nNormal: %i%%\nPractice: %i%%", v34 - v35, v36, *(_DWORD *)(*(_QWORD *)(a2 + 664) + 888LL)); v38 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v37); std::string::append(a1, v38); v39 = GJGameLevel::getNormalPercent(*(_QWORD *)(a2 + 664)); v40 = *(_DWORD **)(a2 + 664); v41 = v40[219] - v40[220]; if ( v39 != v41 ) { v42 = sub_10088E820("\nLeaderboard: %i%%", v41); v43 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v42); std::string::append(a1, v43); v40 = *(_DWORD **)(a2 + 664); } v44 = v40[205]; v45 = v44 <= v40[206]; v46 = v44 - v40[206]; if ( !v45 ) { v47 = sub_10088E820("\nClicks (best att.): %i", v46); v48 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v47); std::string::append(a1, v48); v40 = *(_DWORD **)(a2 + 664); } v49 = v40[208]; v45 = v49 <= v40[209]; v50 = v49 - v40[209]; if ( !v45 ) { v51 = sub_10088E820("\nTime (best att.): %is", v50); v52 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v51); std::string::append(a1, v52); } return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source