//
// ProfilePage::onUnblockUser from 0x140557650 to 0x140557838 (488 bytes)
//
// 2 xrefs:
// > ProfilePage::setupAccountButtons @ 0x140552778
// > ??> @ 0x14092bed4
//
// 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:34:11 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall ProfilePage::onUnblockUser(__int64 a1)
{
const char *v2; // rdx
cocos2d::CCString *v3; // rax
const char *CString; // rax
size_t v5; // rbx
size_t v6; // r8
int v7; // esi
void **v8; // rdx
__int64 v9; // rax
cocos2d::CCObject *v10; // rbx
void *v11; // rcx
__int128 v12; // [rsp+58h] [rbp-51h] BYREF
__int64 v13; // [rsp+68h] [rbp-41h]
__int64 v14; // [rsp+70h] [rbp-39h]
_BYTE v15[32]; // [rsp+80h] [rbp-29h] BYREF
void *Block[2]; // [rsp+A0h] [rbp-9h] BYREF
__int128 v17; // [rsp+B0h] [rbp+7h]
_QWORD v18[4]; // [rsp+C0h] [rbp+17h] BYREF
sub_14003F4F0((__int64)v18, *(_QWORD *)(a1 + 728) + 320LL);
v2 = (const char *)v18;
if ( v18[3] > 0xFu )
v2 = (const char *)v18[0];
v3 = cocos2d::CCString::createWithFormat("Are you sure you want to unblock %s?", v2);
CString = cocos2d::CCString::getCString(v3);
*(_OWORD *)Block = 0;
v17 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003D230(Block, CString, v6);
sub_14003D310((__int64)v18);
v7 = a1 + 664;
if ( !a1 )
v7 = 0;
v8 = Block;
if ( *((_QWORD *)&v17 + 1) > 0xFu )
v8 = (void **)Block[0];
v12 = 0;
v13 = 0;
v14 = 0;
do
++v5;
while ( *((_BYTE *)v8 + v5) );
sub_14003D230(&v12, v8, v5);
v9 = sub_14003F4F0((__int64)v15, (__int64)&v12);
v10 = FLAlertLayer::create(
v7,
(int)"Unblock user",
v9,
(__int64)"Back",
(__int64)"Unblock",
1133903872,
0,
0,
1065353216);
sub_14003D310((__int64)&v12);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 64LL))(v10, 4);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v10 + 1064LL))(v10);
if ( *((_QWORD *)&v17 + 1) > 0xFu )
{
v11 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v17 + 1) + 1LL) >= 0x1000 )
{
v11 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v11);
}
}