// // ProfilePage::onCopyName from 0xa5d8d8 to 0xa5dbac (724 bytes) // // 3 xrefs: // > @ 0xe1190 // > ProfilePage::loadPageFromUserInfo @ 0xa5aad8 // > @ 0x1546c08 // // 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:00:12 +0000 // __int64 __fastcall ProfilePage::onCopyName(ProfilePage *this, cocos2d::CCObject *a2) { GameLevelManager *v3; // x0 cocos2d::CCDictionary **v4; // x0 size_t v5; // x0 void (__fastcall *v6)(ProfilePage *, __int64, __int64); // x23 __int64 v7; // x0 int v9; // w0 __int64 v10; // x0 __int64 v11; // x2 __int64 v12; // x4 size_t v13; // x5 __int64 v14; // [xsp+40h] [xbp+40h] BYREF size_t v15; // [xsp+48h] [xbp+48h] void *v16; // [xsp+50h] [xbp+50h] __int64 v17; // [xsp+58h] [xbp+58h] BYREF size_t v18; // [xsp+60h] [xbp+60h] void *v19; // [xsp+68h] [xbp+68h] __int64 v20; // [xsp+70h] [xbp+70h] BYREF size_t v21; // [xsp+78h] [xbp+78h] void *v22; // [xsp+80h] [xbp+80h] __int64 v23[2]; // [xsp+88h] [xbp+88h] BYREF void *v24; // [xsp+98h] [xbp+98h] __int64 v25[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v26; // [xsp+B0h] [xbp+B0h] v3 = *((GameLevelManager **)this + 91); if ( !v3 ) return _stack_chk_guard; v4 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v3); GameLevelManager::tryGetUsername(&v14, v4, *(_DWORD *)(*((_QWORD *)this + 91) + 376LL)); if ( (v14 & 1) != 0 ) { v5 = v15; if ( v15 ) goto LABEL_4; } else { v9 = (int)(unsigned __int8)v14 >> 1; if ( v9 ) goto LABEL_22; } v10 = *((_QWORD *)this + 91); v17 = 0; v11 = v10 + 320; v18 = 0; LOBYTE(v10) = *(_BYTE *)(v10 + 320); v19 = nullptr; if ( (v10 & 1) != 0 ) { std::string::__init(&v17, *(void **)(v11 + 16), *(_QWORD *)(v11 + 8)); if ( (v14 & 1) == 0 ) goto LABEL_19; LABEL_25: *(_BYTE *)v16 = 0; v15 = 0; goto LABEL_20; } v12 = *(_QWORD *)v11; v13 = *(_QWORD *)(v11 + 8); v19 = *(void **)(v11 + 16); v17 = v12; v18 = v13; if ( (v14 & 1) != 0 ) goto LABEL_25; LABEL_19: LOWORD(v14) = 0; LABEL_20: std::string::reserve(&v14, 0); v15 = v18; v14 = v17; v16 = v19; if ( (v17 & 1) != 0 ) { v5 = v15; LABEL_4: if ( v5 ) goto LABEL_5; LABEL_23: std::string::assign(&v14, &byte_1191DE0); v20 = 0; v21 = 0; v22 = nullptr; if ( (v14 & 1) == 0 ) goto LABEL_6; LABEL_24: std::string::__init(&v20, v16, v15); goto LABEL_7; } v9 = (int)(unsigned __int8)v17 >> 1; LABEL_22: if ( !v9 ) goto LABEL_23; LABEL_5: v20 = 0; v21 = 0; v22 = nullptr; if ( (v14 & 1) != 0 ) goto LABEL_24; LABEL_6: v20 = v14; v21 = v15; v22 = v16; LABEL_7: PlatformToolbox::copyToClipboard((__int64)&v20); if ( (v20 & 1) != 0 ) operator delete(v22); v6 = *(void (__fastcall **)(ProfilePage *, __int64, __int64))(*(_QWORD *)this + 464LL); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init(v23, "Copied to clipboard", 0x13u); v25[0] = 0; v25[1] = 0; v26 = nullptr; std::string::__init(v25, &byte_11B8890, 0); v7 = TextAlertPopup::create((char *)v23, 150, (char *)v25, 0.5, 0.6); v6(this, v7, 100); if ( (v25[0] & 1) != 0 ) operator delete(v26); if ( (v23[0] & 1) != 0 ) operator delete(v24); if ( (v14 & 1) != 0 ) operator delete(v16); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source