// // FriendRequestPopup::onBlock from 0x1403a2c60 to 0x1403a2ecb (619 bytes) // // 2 xrefs: // > FriendRequestPopup::loadFromGJFriendRequest @ 0x1403a2658 // > @ 0x140923654 // // 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:31:17 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall FriendRequestPopup::onBlock(__int64 a1) { __int64 v2; // rcx const char *v3; // rdx 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 *v12; // [rsp+50h] [rbp-49h] void *v13; // [rsp+58h] [rbp-41h] __int128 v14; // [rsp+60h] [rbp-39h] BYREF __int64 v15; // [rsp+70h] [rbp-29h] __int64 v16; // [rsp+78h] [rbp-21h] _BYTE v17[32]; // [rsp+80h] [rbp-19h] BYREF void *Block[2]; // [rsp+A0h] [rbp+7h] BYREF __int64 v19; // [rsp+B0h] [rbp+17h] unsigned __int64 v20; // [rsp+B8h] [rbp+1Fh] _QWORD v21[4]; // [rsp+C0h] [rbp+27h] BYREF v2 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v12 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v12); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v2 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::tryGetUsername(v2, (__int64)v21, *(_DWORD *)(*(_QWORD *)(a1 + 696) + 324LL)); v3 = (const char *)v21; if ( v21[3] > 0xFu ) v3 = (const char *)v21[0]; v4 = cocos2d::CCString::createWithFormat( "Are you sure you want to block %s?\n" "They will no longer be able to:\n" "-View your profile.\n" "-Send you a friend request.\n" "-Send you messages, and all older messages from them will be deleted.", v3); CString = cocos2d::CCString::getCString(v4); *(_OWORD *)Block = 0; v19 = 0; v20 = 0; v6 = -1; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(Block, CString, v7); v8 = Block; if ( v20 > 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 + 680, "Confirm Block", v10, (__int64)"Back", (__int64)"Block", 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"); (*(void (__fastcall **)(__int64 *, __int64))(*v9 + 64))(v9, 1); (*(void (__fastcall **)(__int64 *))(*v9 + 1064))(v9); if ( v20 > 0xF ) { v11 = Block[0]; if ( v20 + 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((__int64)v21); }