// // AccountBanPopup::banStateText from 0xc906c8 to 0xc908dc (532 bytes) // // 2 xrefs: // > AccountBanPopup::refreshBanRows @ 0xc90948 // > @ 0x41e00 // // 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:05:47 +0000 // __int64 *__usercall AccountBanPopup::banStateText@(AccountBanPopup *this@, __int64 *a2@) { const char *v3; // x1 char *v4; // x2 cocos2d::CCString *v5; // x0 const char *CString; // x0 const char *v7; // x22 size_t v8; // x0 size_t v9; // x20 _BYTE *v10; // x3 unsigned __int64 v12; // x0 __int64 v13; // x21 __int64 v14; // x0 const char *v15; // x1 char *v16; // x2 cocos2d::CCString *v17; // x0 const char *v18; // x0 size_t v19; // x0 unsigned __int64 v20; // x1 char *v21; // [xsp+38h] [xbp+38h] if ( (int)this < 0 ) { *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Permanent", 9u); return a2; } if ( (_DWORD)this ) { v3 = (const char *)(unsigned int)((int)this / 86400); if ( (int)this / 86400 ) { if ( (_DWORD)v3 == 1 ) v4 = &byte_11B8890; else v4 = "s"; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i day%s left", v3, v4); CString = (const char *)cocos2d::CCString::getCString(v5); *a2 = 0; a2[1] = 0; v7 = CString; a2[2] = 0; v8 = strlen(CString); v9 = v8; if ( v8 > 0xFFFFFFFFFFFFFFEFLL ) sub_630758(); if ( v8 > 0x16 ) { v12 = (v8 + 16) & 0xFFFFFFFFFFFFFFF0LL; v13 = v12 | 1; v14 = operator new(v12); *a2 = v13; v10 = (_BYTE *)v14; a2[2] = v14; a2[1] = v9; } else { *(_BYTE *)a2 = 2 * v8; v10 = (char *)a2 + 1; if ( !v8 ) { LABEL_9: v10[v9] = 0; return a2; } } v10 = memcpy(v10, v7, v9); goto LABEL_9; } v15 = (const char *)(unsigned int)((int)this / 3600); if ( (_DWORD)v15 ) { if ( (_DWORD)v15 == 1 ) v16 = &byte_11B8890; else v16 = "s"; v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i hour%s left", v15, v16); } else { v20 = 1; if ( (int)this > 119 ) v20 = (unsigned int)((int)this / 60); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i min left", (const char *)v20); } v18 = (const char *)cocos2d::CCString::getCString(v17); *a2 = 0; a2[1] = 0; a2[2] = 0; v21 = (char *)v18; v19 = strlen(v18); std::string::__init(a2, v21, v19); return a2; } else { *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, &byte_11B8890, 0); return a2; } }