//
// AccountBanPopup::banStateText from 0x1400a6950 to 0x1400a6af2 (418 bytes)
//
// 2 xrefs:
// > AccountBanPopup::refreshBanRows @ 0x1400a7a37
// > ??> @ 0x140913214
//
// 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:26:08 +0000
//
char *__fastcall AccountBanPopup::banStateText(char *a1, unsigned int a2)
{
unsigned int v5; // edx
const char *v6; // r8
cocos2d::CCString *v7; // rax
const char *CString; // rax
size_t v9; // r8
unsigned int v10; // edx
const char *v11; // r8
cocos2d::CCString *v12; // rax
__int64 v13; // rdx
cocos2d::CCString *v14; // rax
if ( (a2 & 0x80000000) == 0 )
{
if ( a2 )
{
v5 = a2 / 0x15180;
if ( (int)(a2 / 0x15180) < 1 )
{
v10 = a2 / 0xE10;
if ( (int)(a2 / 0xE10) < 1 )
{
v13 = a2 / 0x3C;
if ( (int)v13 < 1 )
v13 = 1;
v14 = cocos2d::CCString::createWithFormat("%i min left", v13);
CString = cocos2d::CCString::getCString(v14);
v9 = -1;
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 0;
do
++v9;
while ( CString[v9] );
}
else
{
v11 = (const char *)&unk_14070D03C;
if ( v10 == 1 )
v11 = &byte_1406ED6E0;
v12 = cocos2d::CCString::createWithFormat("%i hour%s left", v10, v11);
CString = cocos2d::CCString::getCString(v12);
v9 = -1;
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 0;
do
++v9;
while ( CString[v9] );
}
}
else
{
v6 = (const char *)&unk_14070D03C;
if ( v5 == 1 )
v6 = &byte_1406ED6E0;
v7 = cocos2d::CCString::createWithFormat("%i day%s left", v5, v6);
CString = cocos2d::CCString::getCString(v7);
v9 = -1;
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 0;
do
++v9;
while ( CString[v9] );
}
sub_14003D230(a1, CString, v9);
return a1;
}
else
{
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 15;
*a1 = 0;
return a1;
}
}
else
{
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 9;
*((_QWORD *)a1 + 3) = 15;
strcpy(a1, "Permanent");
return a1;
}
}