// // sub_140426640 from 0x140426640 to 0x1404267a2 (354 bytes) // // 3 xrefs: // > LevelStatsInfoPopup::buildInfoText @ 0x140427ac1 // > LevelStatsInfoPopup::buildInfoText @ 0x140427b42 // > @ 0x1409269b4 // // 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 11:32:11 +0000 // char *__fastcall sub_140426640(char *a1, unsigned int a2) { signed int v5; // r10d int v6; // edx unsigned int v7; // r8d cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 cocos2d::CCString *v11; // rax cocos2d::CCString *v12; // rax if ( (int)a2 > 0 ) { v5 = a2 / 0xE10; v6 = (int)(a2 / 0x3C) % 60; v7 = a2 % 0x3C; if ( v5 <= 0 ) { if ( v6 <= 0 ) { v12 = cocos2d::CCString::createWithFormat("%is", v7); CString = cocos2d::CCString::getCString(v12); v10 = -1; *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 0; *((_QWORD *)a1 + 3) = 0; do ++v10; while ( CString[v10] ); } else { v11 = cocos2d::CCString::createWithFormat("%im %is", v6, v7); CString = cocos2d::CCString::getCString(v11); v10 = -1; *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 0; *((_QWORD *)a1 + 3) = 0; do ++v10; while ( CString[v10] ); } } else { v8 = cocos2d::CCString::createWithFormat("%ih %im %is", v5, v6, v7); CString = cocos2d::CCString::getCString(v8); v10 = -1; *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 0; *((_QWORD *)a1 + 3) = 0; do ++v10; while ( CString[v10] ); } sub_14003D230(a1, CString, v10); return a1; } else { *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 2; *((_QWORD *)a1 + 3) = 15; strcpy(a1, "NA"); return a1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source