// // MenuLayer::updateUserProfileButton from 0x10037c790 to 0x10037c8e8 (344 bytes) // // 2 xrefs: // > GameManager::accountStatusChanged @ 0x10036e481 // > MenuLayer::init @ 0x10037c01b // // 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 12:29:06 +0000 // __int64 __fastcall MenuLayer::updateUserProfileButton(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rax unsigned __int8 v5; // r14 __int64 v6; // rdi __int64 v7; // rsi __int64 result; // rax __int64 v9; // rdi __int64 v10; // rdi __int64 v11; // r14 __int64 v12; // rax __int64 v13; // rax char *v14; // rsi __int128 v15; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v3 = GJAccountManager::sharedState(a1, a2); if ( *(_DWORD *)(v3 + 352) <= *(_DWORD *)(v3 + 356) ) { v5 = 0; } else { v4 = GameManager::sharedState(); v5 = GameManager::offlineModeEnabled(v4) ^ 1; } (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 344LL))(*(_QWORD *)(a1 + 464), v5); v6 = *(_QWORD *)(a1 + 472); if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v5); v7 = v5; result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), v5); v9 = *(_QWORD *)(a1 + 448); if ( v9 ) { v7 = v5; result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, v5); } v10 = *(_QWORD *)(a1 + 480); if ( v10 ) { v7 = v5 ^ 1u; result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 344LL))(v10, v7); } if ( v5 ) { v11 = *(_QWORD *)(a1 + 456); v12 = GJAccountManager::sharedState(v10, v7); if ( (*(_BYTE *)(v12 + 328) & 1) != 0 ) { sub_10001AD30(&v15, *(const void **)(v12 + 344), *(_QWORD *)(v12 + 336)); if ( (v15 & 1) == 0 ) goto LABEL_13; } else { v13 = v12 + 328; __p = *(void **)(v13 + 16); v15 = *(_OWORD *)v13; if ( (v15 & 1) == 0 ) { LABEL_13: v14 = (char *)&v15 + 1; LABEL_16: (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v11 + 928LL))(v11, v14); if ( (v15 & 1) != 0 ) operator delete(__p); return cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 456), 70.0, 0.69999999, 0.0); } } v14 = (char *)__p; goto LABEL_16; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source