//
// sub_1403BE440 from 0x1403be440 to 0x1403be654 (532 bytes)
//
// 2 xrefs:
// > sub_1403BE400 @ 0x1403be40f
// > ??> @ 0x1406d770c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1403BE440(_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rsi
_QWORD *v4; // r15
_QWORD *v5; // r14
_QWORD *v6; // rbp
__int64 v7; // rax
cocos2d::CCObject *v8; // rcx
cocos2d::CCObject *v9; // rcx
cocos2d::CCObject *v10; // rcx
cocos2d::CCObject *v11; // rcx
_QWORD *v12; // rax
void *v13; // rax
*a1 = &ProfilePage::`vftable';
a1[40] = &ProfilePage::`vftable';
a1[41] = &ProfilePage::`vftable';
a1[42] = &ProfilePage::`vftable';
a1[43] = &ProfilePage::`vftable';
a1[44] = &ProfilePage::`vftable';
a1[51] = &ProfilePage::`vftable';
a1[54] = &ProfilePage::`vftable';
a1[79] = &ProfilePage::`vftable';
v2 = a1 + 80;
a1[80] = &ProfilePage::`vftable';
v3 = a1 + 81;
a1[81] = &ProfilePage::`vftable';
v4 = a1 + 82;
a1[82] = &ProfilePage::`vftable';
v5 = a1 + 83;
a1[83] = &ProfilePage::`vftable';
a1[84] = &ProfilePage::`vftable';
v6 = a1 + 85;
a1[85] = &ProfilePage::`vftable';
v7 = a1[104];
if ( v7 )
*(_QWORD *)(v7 + 632) = 0;
v8 = (cocos2d::CCObject *)a1[99];
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = (cocos2d::CCObject *)a1[86];
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = (cocos2d::CCObject *)a1[100];
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = (cocos2d::CCObject *)a1[103];
if ( v11 )
cocos2d::CCObject::release(v11);
v12 = (_QWORD *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v13 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v12 = (_QWORD *)qword_1406C2EC0;
}
if ( (_QWORD *)v12[92] == v2 )
v12[92] = 0;
if ( (_QWORD *)v12[93] == v3 )
v12[93] = 0;
if ( (_QWORD *)v12[101] == v5 )
v12[101] = 0;
if ( (_QWORD *)v12[100] == v4 )
v12[100] = 0;
if ( (_QWORD *)v12[97] == v6 )
v12[97] = 0;
sub_14003A830((__int64)(a1 + 88));
FLAlertLayer::dFLAlertLayer((__int64)a1);
}