// // ReportPopup::createForFriendRequest from 0xd0235c to 0xd0265c (768 bytes) // // 2 xrefs: // > FriendRequestPopup::onReport @ 0xa1dd40 // > @ 0xf2758 // // This function is hookable on this platform (idp: arm, 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 13:06:54 +0000 // __int64 __fastcall ReportPopup::createForFriendRequest(ReportPopup *this, GJFriendRequest *a2) { int v3; // w21 __int64 v4; // x0 char v5; // w0 __int64 *v6; // x24 __int64 v7; // x0 __int64 v8; // x1 _BOOL4 v9; // w22 GameLevelManager *v10; // x0 cocos2d::CCDictionary **v11; // x0 char *v12; // x1 size_t v13; // x2 char v14; // w0 __int64 v15; // x0 __int64 v16; // x1 const ReportPopupConfig *v17; // x1 __int64 v18; // x19 __int64 v20[3]; // [xsp+48h] [xbp+48h] BYREF __int64 v21; // [xsp+60h] [xbp+60h] BYREF __int64 v22; // [xsp+68h] [xbp+68h] int v23[2]; // [xsp+70h] [xbp+70h] void *v24; // [xsp+78h] [xbp+78h] BYREF char *v25; // [xsp+80h] [xbp+80h] __int64 v26; // [xsp+90h] [xbp+90h] BYREF __int64 v27; // [xsp+98h] [xbp+98h] void *v28; // [xsp+A0h] [xbp+A0h] BYREF size_t v29; // [xsp+A8h] [xbp+A8h] void *v30; // [xsp+B0h] [xbp+B0h] __int64 v31; // [xsp+B8h] [xbp+B8h] BYREF __int64 v32; // [xsp+C0h] [xbp+C0h] void *v33; // [xsp+C8h] [xbp+C8h] __int64 v34; // [xsp+D0h] [xbp+D0h] __int64 v35[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v36; // [xsp+E8h] [xbp+E8h] void *v37; // [xsp+F0h] [xbp+F0h] BYREF char *v38; // [xsp+F8h] [xbp+F8h] __int64 v39; // [xsp+100h] [xbp+100h] if ( !this ) return 0; v3 = *((_DWORD *)this + 80); v4 = GJAccountManager::sharedState(_stack_chk_guard); if ( v3 == *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356) ) return 0; v5 = *((_BYTE *)this + 328); v26 = 0; v6 = (__int64 *)((char *)this + 328); v27 = 0; v28 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v26, *((void **)this + 43), *((_QWORD *)this + 42)); } else { v7 = *v6; v8 = *((_QWORD *)this + 42); v28 = *((void **)this + 43); v26 = v7; v27 = v8; } if ( (v26 & 1) != 0 ) { v9 = v27 == 0; operator delete(v28); } else { v9 = (int)(unsigned __int8)v26 >> 1 == 0; } if ( v9 ) return 0; v10 = (GameLevelManager *)*((unsigned int *)this + 79); LODWORD(v27) = 0; v28 = nullptr; v29 = 0; v30 = nullptr; v31 = 0; v32 = 0; v33 = nullptr; v34 = 0; v35[0] = 0; v35[1] = 0; v36 = nullptr; v37 = nullptr; v38 = nullptr; v39 = 0; LODWORD(v26) = 6; HIDWORD(v26) = (_DWORD)v10; v11 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v10); GameLevelManager::tryGetUsername(v20, v11, *((_DWORD *)this + 80)); if ( ((unsigned __int8)v28 & 1) != 0 ) { *(_BYTE *)v30 = 0; v29 = 0; } else { LOWORD(v28) = 0; } std::string::reserve((__int64 *)&v28, 0); v28 = (void *)v20[0]; v29 = v20[1]; v30 = (void *)v20[2]; if ( (v20[0] & 1) != 0 ) { v12 = (char *)v30; v13 = v29; } else { v13 = LOBYTE(v20[0]) >> 1; v12 = (char *)&v28 + 1; } std::string::assign(v35, v12, v13); v14 = *((_BYTE *)this + 328); v21 = 0; v22 = 0; *(_QWORD *)v23 = 0; if ( (v14 & 1) != 0 ) { std::string::__init(&v21, *((void **)this + 43), *((_QWORD *)this + 42)); } else { v15 = *v6; v16 = *((_QWORD *)this + 42); *(_QWORD *)v23 = *((_QWORD *)this + 43); v21 = v15; v22 = v16; } if ( (v31 & 1) != 0 ) { *(_BYTE *)v33 = 0; v32 = 0; } else { LOWORD(v31) = 0; } std::string::reserve(&v31, 0); v33 = *(void **)v23; v31 = v21; v32 = v22; ReportPopup::reasonIndicesForType((__int64 *)&v24, (ReportPopup *)&byte_6); sub_CFDC50((__int64)&v37, &v24); if ( v24 ) { if ( v25 != v24 ) v25 += 4 * ~((unsigned __int64)(v25 - 4 - (_BYTE *)v24) >> 2); operator delete(v24); } v18 = ReportPopup::create((ReportPopup *)&v26, v17); if ( v37 ) { if ( v37 != v38 ) v38 += 4 * ~((unsigned __int64)(v38 - 4 - (_BYTE *)v37) >> 2); operator delete(v37); } if ( (v35[0] & 1) != 0 ) { operator delete(v36); if ( (v31 & 1) == 0 ) goto LABEL_26; } else if ( (v31 & 1) == 0 ) { goto LABEL_26; } operator delete(v33); LABEL_26: if ( ((unsigned __int8)v28 & 1) != 0 ) operator delete(v30); return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source