// // ProfilePage::createUnfriendAlert from 0x140558fe0 to 0x140559200 (544 bytes) // // 2 xrefs: // > ProfilePage::onFriend @ 0x140557390 // > @ 0x14092bfac // // 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:12 +0000 // // Hidden C++ exception states: #wind=4 __int64 *__fastcall ProfilePage::createUnfriendAlert(__int64 a1, __int64 a2) { __int64 v2; // rdi cocos2d::CCString *v4; // rax const char *CString; // rax size_t v6; // rbx size_t v7; // r8 void **v8; // rdx __int64 *v9; // rbx __int64 v10; // rax void *v11; // rcx void *v13; // [rsp+58h] [rbp-90h] __int128 v14; // [rsp+60h] [rbp-88h] BYREF __int64 v15; // [rsp+70h] [rbp-78h] __int64 v16; // [rsp+78h] [rbp-70h] char v17[32]; // [rsp+80h] [rbp-68h] BYREF __int64 v18; // [rsp+A0h] [rbp-48h] void *Block[2]; // [rsp+A8h] [rbp-40h] BYREF __int64 v20; // [rsp+B8h] [rbp-30h] unsigned __int64 v21; // [rsp+C0h] [rbp-28h] v2 = a2; v18 = a2; if ( *(_QWORD *)(a2 + 24) > 0xFu ) a2 = *(_QWORD *)a2; v4 = cocos2d::CCString::createWithFormat( "Are you sure you want to remove %s from your friends list?\n" "Your direct messages with them will close.", (const char *)a2); CString = cocos2d::CCString::getCString(v4); *(_OWORD *)Block = 0; v20 = 0; v21 = 0; v6 = -1; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(Block, CString, v7); v8 = Block; if ( v21 > 0xF ) v8 = (void **)Block[0]; v14 = 0; v15 = 0; v16 = 0; do ++v6; while ( *((_BYTE *)v8 + v6) ); sub_14003D230(&v14, v8, v6); v13 = operator new(0x298u); v9 = (__int64 *)FLAlertLayer::FLAlertLayer((__int64)v13); if ( v9 ) { v10 = sub_14003F4F0((__int64)v17, (__int64)&v14); if ( FLAlertLayer::init( (cocos2d::CCLayerColor *)v9, a1, "Unfriend", v10, (__int64)"Back", (__int64)"Unfriend", 380.0, 0, 0, 1.0) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9); } else { (*(void (__fastcall **)(__int64 *, __int64))(*v9 + 8))(v9, 1); v9 = nullptr; } } sub_14003D310((__int64)&v14); ButtonSprite::updateBGImage(v9[77], "GJ_button_06.png"); if ( v21 > 0xF ) { v11 = Block[0]; if ( v21 + 1 >= 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); } sub_14003D310(v2); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source