// // MenuLayer::updateUserProfileButton from 0x140473e20 to 0x140473f98 (376 bytes) // // 4 xrefs: // > GJAccountManager::linkToAccount @ 0x1403097f1 // > GJAccountManager::unlinkFromAccount @ 0x140309a9f // > MenuLayer::init @ 0x1404737d2 // > @ 0x140928214 // // 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:32:40 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall MenuLayer::updateUserProfileButton(__int64 a1) { __int64 v2; // rax __int64 v3; // rcx unsigned __int8 v4; // bl __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rax _QWORD *v9; // rdx void *v10; // [rsp+20h] [rbp-38h] _QWORD v11[4]; // [rsp+28h] [rbp-30h] BYREF v2 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) <= 0 ) goto LABEL_6; v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } if ( GameManager::getGameVariable(v3, "0219") ) LABEL_6: v4 = 0; else v4 = 1; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 336LL))(*(_QWORD *)(a1 + 464), v4); v5 = *(_QWORD *)(a1 + 472); if ( v5 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, v4); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 336LL))(*(_QWORD *)(a1 + 456), v4); v6 = *(_QWORD *)(a1 + 448); if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, v4); v7 = *(_QWORD *)(a1 + 480); if ( v7 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, v4 ^ 1u); if ( v4 ) { v8 = GJAccountManager::sharedState(); sub_14003F4F0((__int64)v11, v8 + 328); v9 = v11; if ( v11[3] > 0xFu ) v9 = (_QWORD *)v11[0]; (**(void (__fastcall ***)(__int64, _QWORD *))(*(_QWORD *)(a1 + 456) + 360LL))(*(_QWORD *)(a1 + 456) + 360LL, v9); sub_14003D310((__int64)v11); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 456), 70.0, 0.69999999, 0.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source