// // MenuLayer::updateUserProfileButton from 0x3f9e3c to 0x3f9f4a (270 bytes) // // 2 xrefs: // > MenuLayer::init @ 0x3facc2 // > GameManager::accountStatusChanged @ 0x414cfe // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:19 +0000 // GJAccountManager *__fastcall MenuLayer::updateUserProfileButton(cocos2d::CCLabelBMFont **this) { GameManager *v2; // r0 GameManager *v3; // r0 int v4; // r4 int v5; // r0 int v6; // r0 GJAccountManager *result; // r0 int v8; // r9 void (__fastcall *v9)(int, char *); // r8 int v10; // r0 int v11; // r1 char *v12; // r2 char *v13; // r1 int v14; // [sp+0h] [bp-14h] BYREF int v15; // [sp+4h] [bp-10h] char *v16; // [sp+8h] [bp-Ch] v2 = (GameManager *)GJAccountManager::sharedState((GJAccountManager *)this); if ( *((_DWORD *)v2 + 70) - *((_DWORD *)v2 + 71) <= 0 ) { v4 = 0; } else { v3 = (GameManager *)GameManager::sharedState(v2); v4 = (unsigned __int8)GameManager::offlineModeEnabled(v3) ^ 1; } (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 86) + 172))(*(this + 86), v4); v5 = (int)*(this + 87); if ( v5 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 172))(v5, v4); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 85) + 172))(*(this + 85), v4); v6 = (int)*(this + 84); if ( v6 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v4); result = *(this + 88); if ( result ) result = (GJAccountManager *)(*(int (__fastcall **)(GJAccountManager *, int))(*(_DWORD *)result + 172))( result, v4 ^ 1); if ( v4 ) { v8 = (int)*(this + 85); v9 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v8 + 464); v10 = GJAccountManager::sharedState(result); v14 = 0; v15 = 0; v16 = nullptr; if ( (*(_BYTE *)(v10 + 268) & 1) != 0 ) { std::string::__init(&v14, *(const void **)(v10 + 276), *(_DWORD *)(v10 + 272)); } else { v11 = *(_DWORD *)(v10 + 272); v12 = *(char **)(v10 + 276); v14 = *(_DWORD *)(v10 + 268); v15 = v11; v16 = v12; } if ( (v14 & 1) != 0 ) v13 = v16; else v13 = (char *)&v14 + 1; v9(v8, v13); std::string::~string((int)&v14); return (GJAccountManager *)cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 85), 70.0, 0.7, 0.0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source