// // AccountBanPopup::banStateText from 0x762a34 to 0x762adc (168 bytes) // // 1 xrefs: // > AccountBanPopup::refreshBanRows @ 0x762b4a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:05 +0000 // AccountBanPopup *__fastcall AccountBanPopup::banStateText(AccountBanPopup *this, int a2) { AccountBanPopup *v3; // r4 size_t v4; // r2 const char *v5; // r1 int v6; // r0 int v7; // r1 __int16 *v8; // r2 char *v9; // r0 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r5 size_t v13; // r0 v3 = this; if ( a2 >= 0 ) { if ( !a2 ) { v4 = 0; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v5 = (const char *)&unk_B6B226; *((_DWORD *)this + 2) = a2; goto LABEL_21; } v6 = a2 / 86400; v7 = a2 / 86400; if ( v6 ) { if ( v6 == 1 ) v8 = (__int16 *)&unk_B6B226; else v8 = &a1i2r3e45s789g[8]; v9 = "%i day%s left"; } else { v7 = a2 / 3600; if ( !(a2 / 3600) ) { if ( a2 <= 119 ) v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i min left", (const char *)&dword_0 + 1); else v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i min left", (const char *)(a2 / 60)); goto LABEL_20; } if ( a2 / 3600 == 1 ) v8 = (__int16 *)&unk_B6B226; else v8 = &a1i2r3e45s789g[8]; v9 = "%i hour%s left"; } v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v9, (const char *)v7, v8); LABEL_20: CString = (const char *)cocos2d::CCString::getCString(v10); *(_DWORD *)v3 = 0; *((_DWORD *)v3 + 1) = 0; *((_DWORD *)v3 + 2) = 0; v12 = CString; v13 = strlen(CString); v5 = v12; v4 = v13; this = v3; goto LABEL_21; } v4 = 9; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v5 = "Permanent"; *((_DWORD *)this + 2) = 0; LABEL_21: std::string::__init((int *)this, v5, v4); return v3; }