// // ProfilePage::onUpdate from 0x140551c60 to 0x1405523bd (1885 bytes) // // 3 xrefs: // > ProfilePage::uploadActionFinished @ 0x140558e62 // > ProfilePage::init @ 0x140551672 // > @ 0x14092be08 // // 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:34:08 +0000 // // Hidden C++ exception states: #wind=19 void __fastcall ProfilePage::onUpdate(__int64 a1) { bool v2; // zf __int64 v3; // rcx __int64 v4; // rcx __int64 v5; // rax int v6; // ebx __int64 v7; // rcx __int64 v8; // rax int v9; // r15d __int64 v10; // r14 char v11; // di int v12; // ebx cocos2d::CCString *v13; // rax const char *CString; // rax size_t v15; // r8 void **v16; // rdx void *v17; // rcx void *v18; // rcx __int64 v19; // rax int v20; // ebx __int64 v21; // rcx __int64 v22; // rcx __int64 v23; // rcx __int64 v24; // rcx __int64 v25; // rcx __int64 v26; // rcx __int64 v27; // rcx __int64 v28; // rcx __int64 v29; // rcx __int64 v30; // rcx __int64 v31; // rax __int64 *v32; // rdi __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rdx __int64 v36; // rbx __int64 v37; // rcx __int64 v38; // rdx void *v39; // [rsp+30h] [rbp-40h] BYREF void *v40; // [rsp+38h] [rbp-38h] BYREF void *Block[2]; // [rsp+40h] [rbp-30h] BYREF __int64 v42; // [rsp+50h] [rbp-20h] unsigned __int64 v43; // [rsp+58h] [rbp-18h] v2 = *(_BYTE *)(a1 + 740) == 0; v3 = *(_QWORD *)&qword_14090BFB0; if ( v2 ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v40 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v40); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v3 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetCommentTimersForAccountID(v3, *(_DWORD *)(a1 + 736)); LOBYTE(v38) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), v38); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 800) + 336LL))(*(_QWORD *)(a1 + 800), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), 0); ProfilePage::setupCommentsBrowser(a1, 0); v36 = a1 + 688; v37 = *(_QWORD *)&qword_14090BFB0; if ( *(_QWORD *)&qword_14090BFB0 ) goto LABEL_58; v40 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v40); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); LABEL_57: v37 = *(_QWORD *)&qword_14090BFB0; LABEL_58: *(_QWORD *)(v37 + 1480) = v36; GameLevelManager::getGJUserInfo((cocos2d::CCActionManager **)v37, *(_DWORD *)(a1 + 736)); return; } if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v3 = *(_QWORD *)&qword_14090BFB0; } if ( (unsigned int)GameLevelManager::getTimeLeft(v3, "upd_profile", 5.0) - 1 > 4 ) { v4 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v4 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::makeTimeStamp(v4, "upd_profile"); v5 = GJAccountManager::sharedState(); v6 = *(_DWORD *)(v5 + 360) - *(_DWORD *)(v5 + 364); v7 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v7 = *(_QWORD *)&qword_14090BFB0; } cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(v7 + 1232), v6); v8 = GJAccountManager::sharedState(); v9 = *(_DWORD *)(v8 + 360) - *(_DWORD *)(v8 + 364); v10 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v10 = *(_QWORD *)&qword_14090BFB0; } v11 = 1; v12 = 0; while ( 1 ) { v13 = cocos2d::CCString::createWithFormat("a_%i_%i", v9, v12); CString = cocos2d::CCString::getCString(v13); *(_OWORD *)Block = 0; v42 = 0; v43 = 0; v15 = -1; do ++v15; while ( CString[v15] ); sub_14003D230(Block, CString, v15); v16 = Block; if ( v43 > 0xF ) v16 = (void **)Block[0]; if ( GameLevelManager::getStoredOnlineLevels(v10, v16) ) cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(v10 + 1152), Block); else v11 = 0; if ( ++v12 > 100 ) break; if ( v43 > 0xF ) { v17 = Block[0]; if ( v43 + 1 >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) goto LABEL_29; } j_j_free(v17); } if ( !v11 ) goto LABEL_31; } if ( v43 > 0xF ) { v18 = Block[0]; if ( v43 + 1 >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) LABEL_29: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } LABEL_31: v19 = GJAccountManager::sharedState(); v20 = *(_DWORD *)(v19 + 360) - *(_DWORD *)(v19 + 364); v21 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v21 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetCommentTimersForAccountID(v21, v20); v22 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v22 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::invalidateMessages(v22, 1u, 0); v23 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v23 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::invalidateMessages(v23, 0, 0); v24 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v24 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::invalidateRequests(v24, 1u, 0); v25 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v25 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::invalidateRequests(v25, 0, 0); v26 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v26 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetStoredUserList(v26, 0); v27 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v27 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetStoredUserList(v27, 1); v28 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v28 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetStoredUserList(v28, 3); v29 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v29 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::resetStoredUserList(v29, 4); if ( *(_QWORD *)(a1 + 728) ) { v31 = cocos2d::CCDirector::sharedDirector(v30); cocos2d::CCDirector::getWinSize(v31, &v39); v32 = *(__int64 **)(*(_QWORD *)(a1 + 872) + 544LL); v33 = *v32; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v40, (float)((float)(*(float *)&v39 * 0.5) - 220.0) + 10.0, (float)((float)((float)(*((float *)&v39 + 1) * 0.5) - 145.0) + 10.0) + 1.0); (*(void (__fastcall **)(__int64 *, __int64))(v33 + 184))(v32, v34); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 872) + 544LL) + 160LL))(*(_QWORD *)(*(_QWORD *)(a1 + 872) + 544LL)); } (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 776) + 336LL))(*(_QWORD *)(a1 + 776), 0); LOBYTE(v35) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), v35); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), 0); v36 = a1 + 688; v37 = *(_QWORD *)&qword_14090BFB0; if ( *(_QWORD *)&qword_14090BFB0 ) goto LABEL_58; v40 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v40); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); goto LABEL_57; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source