//
// AccountBanPopup::onFreeze from 0x1400a8760 to 0x1400a88e2 (386 bytes)
//
// 2 xrefs:
// > AccountBanPopup::init @ 0x1400a7187
// > ??> @ 0x1409132a4
//
// 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:09 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall AccountBanPopup::onFreeze(__int64 a1)
{
__int64 v2; // rax
int v3; // eax
const char *v4; // rdx
unsigned __int64 v5; // rcx
cocos2d::CCString *v6; // rax
char *CString; // rax
size_t v8; // r8
_BYTE *v9; // r8
int v10; // eax
int v11; // ecx
int v12; // ebx
_BYTE *v13; // rdx
int v14; // ecx
int v15; // [rsp+20h] [rbp-58h] BYREF
__int128 v16; // [rsp+28h] [rbp-50h] BYREF
_BYTE *v17; // [rsp+38h] [rbp-40h]
_OWORD v18[2]; // [rsp+40h] [rbp-38h] BYREF
v2 = *(_QWORD *)(a1 + 1128);
if ( v2 )
v3 = *(_DWORD *)(v2 + 384);
else
v3 = 0;
v18[0] = 0;
v18[1] = _mm_load_si128((const __m128i *)&Size);
LOBYTE(v18[0]) = 0;
v4 = (const char *)(a1 + 1040);
v5 = *(_QWORD *)(a1 + 1064);
if ( v3 == 12 )
{
if ( v5 > 0xF )
v4 = *(const char **)v4;
v6 = cocos2d::CCString::createWithFormat(
"Apply all bans to %s permanently?\nCovers comments, uploads and messages.",
v4);
}
else
{
if ( v5 > 0xF )
v4 = *(const char **)v4;
v6 = cocos2d::CCString::createWithFormat(
"Apply all bans to %s for %s?\nCovers comments, uploads and messages.",
v4,
off_140702D30[v3]);
}
CString = (char *)cocos2d::CCString::getCString(v6);
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_1400405A0((void **)v18, CString, v8);
v16 = 0;
v9 = nullptr;
v17 = nullptr;
v10 = 0;
v15 = 0;
v11 = 0;
v12 = 0;
v13 = nullptr;
while ( 1 )
{
if ( v13 == v9 )
{
sub_140069B30((const void **)&v16, v13, &v15);
v11 = v12;
v13 = *((_BYTE **)&v16 + 1);
}
else
{
*(_DWORD *)v13 = v10;
v13 = (_BYTE *)(*((_QWORD *)&v16 + 1) + 4LL);
*((_QWORD *)&v16 + 1) += 4LL;
}
v10 = v11 + 1;
v15 = v10;
++v11;
v12 = v10;
if ( v10 >= 8 )
break;
v9 = v17;
}
v14 = a1 + 1024;
if ( !a1 )
v14 = 0;
sub_1400A6720(v14, 7, (__int64)v18, (__int64)&v16);
sub_140069730((__int64)&v16);
sub_14003D310((__int64)v18);
}