// // ProfilePage::setupAccountButtons from 0x1008a1c20 to 0x1008a21b2 (1426 bytes) // // 2 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x10089f507 // > ProfilePage::loadPageFromUserInfo @ 0x1008a120a // // 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:37:15 +0000 // void __fastcall ProfilePage::setupAccountButtons(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rsi double v5; // xmm0_8 int v6; // r12d void *v7; // r14 char *v8; // r15 __int64 v9; // xmm0_8 __int64 v10; // rcx char *v11; // r12 void *v12; // r12 __int64 v13; // rax char v14; // al __int64 v15; // rcx int v16; // edx char *v17; // r12 void *v18; // r12 __int64 v19; // rax char v20; // al int v21; // edx unsigned int v22; // edx char *v23; // rdi char *v24; // r12 void *v25; // r12 void *v26; // r12 double v27; // xmm0_8 char *v28; // r12 __int64 v29; // rax void *v30; // r15 __int64 v31; // rax __int64 (__fastcall *v32)(); // r15 const char *v33; // rdi __int64 v34; // rax char *v35; // r13 __int64 v36; // rax __int64 v37; // rax void *v38; // r15 __int64 v39; // r15 __int64 v40; // rbx char v41; // r12 __int64 v42; // rax unsigned __int64 v43; // [rsp-58h] [rbp-58h] BYREF double v44; // [rsp-50h] [rbp-50h] BYREF unsigned int v45; // [rsp-48h] [rbp-48h] BYREF __int64 v46; // [rsp-40h] [rbp-40h] BYREF unsigned int v47; // [rsp-38h] [rbp-38h] float v48; // [rsp-34h] [rbp-34h] if ( !*(_BYTE *)(a1 + 740) ) { v3 = GJAccountManager::sharedState(a1, a2); if ( *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356) != *(_DWORD *)(a1 + 736) ) { v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v46, v4); *(_QWORD *)&v5 = HIDWORD(v46); *(float *)&v5 = *((float *)&v46 + 1) * 0.5; *(float *)&v47 = *((float *)&v46 + 1) * 0.5; v6 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 688LL); v7 = sub_1007FE900(); v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"accountBtn_blocked_001.png", v5); v9 = 1061158912; (*(void (__fastcall **)(char *, float))(*(_QWORD *)v8 + 160LL))(v8, 0.75); if ( v6 == 2 ) { v10 = *(_QWORD *)(a1 + 728); if ( !*(_BYTE *)(v10 + 722) ) { v11 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_unblock_001.png", COERCE_DOUBLE(1061158912)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.75); v12 = CCMenuItemSpriteExtra::create((__int64)v11, 0, a1, (__int64)ProfilePage::onUnblockUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v12, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v12); sub_1007FEBF0((__int64)v7, (__int64)v12); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v12); v10 = *(_QWORD *)(a1 + 728); if ( (*(_BYTE *)(v10 + 722) & 1) == 0 ) { LABEL_22: *(_QWORD *)&v27 = v47; *(float *)&v47 = *(float *)&v47 + -123.0; *(float *)&v27 = *(float *)&v47; v28 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_reportBtn_001.png", v27); v48 = *(float *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v8 + 328LL))(v8) + 4) * 0.75; v29 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v28 + 328LL))(v28); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v28 + 160LL))(v28, v48 / *(float *)(v29 + 4)); v30 = CCMenuItemSpriteExtra::create((__int64)v28, 0, a1, (__int64)ProfilePage::onReportUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v30, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v30); sub_1007FEBF0((__int64)v7, (__int64)v30); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v30); v31 = GameManager::sharedState(); if ( (unsigned int)GameManager::modUIRank(v31) == 2 ) { v32 = ProfilePage::onAdminPanel; v33 = "modBadge_02_001.png"; } else { v34 = GameManager::sharedState(); if ( (unsigned int)GameManager::modUIRank(v34) != 1 ) { LABEL_27: v39 = *(_QWORD *)(a1 + 552); v40 = *(_QWORD *)(a1 + 584); sub_100278250((float *)&v45, *(float *)&v46 * 0.5, *(float *)&v47); cocos2d::CCNode::convertToWorldSpace(&v44, v40, &v45); cocos2d::CCNode::convertToNodeSpace((double *)&v43, v39, (unsigned int *)&v44); GameToolbox::alignItemsHorisontally((__int64)v7, &v43, 0, (__m128)0x41400000u); return; } v32 = sub_1008A2CB0; v33 = "modBadge_01_001.png"; } v35 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v33, COERCE_DOUBLE(1067030938)); v48 = (*(float (__fastcall **)(char *))(*(_QWORD *)v28 + 168LL))(v28); v36 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v28 + 328LL))(v28); v48 = v48 * *(float *)(v36 + 4); v37 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v35 + 328LL))(v35); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v35 + 160LL))(v35, v48 / *(float *)(v37 + 4)); v38 = CCMenuItemSpriteExtra::create((__int64)v35, 0, a1, (__int64)v32, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v38, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v38); sub_1007FEBF0((__int64)v7, (__int64)v38); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v38); goto LABEL_27; } } LABEL_20: if ( (unsigned int)(*(_DWORD *)(v10 + 680) - 1) >= 2 ) { v26 = CCMenuItemSpriteExtra::create((__int64)v8, 0, a1, (__int64)ProfilePage::onBlockUser, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v26, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v26); sub_1007FEBF0((__int64)v7, (__int64)v26); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v26); } goto LABEL_22; } v13 = GameManager::sharedState(); v14 = sub_10036D800(v13); v15 = *(_QWORD *)(a1 + 728); v16 = *(_DWORD *)(v15 + 436); if ( v16 != 2 ) { if ( v16 != 1 || *(_DWORD *)(v15 + 688) == 1 ) { if ( v14 ) goto LABEL_12; goto LABEL_11; } v41 = v14; v42 = GameManager::sharedState(); if ( !(v41 & 1 | ((unsigned int)(*(_DWORD *)(v42 + 1036) - *(_DWORD *)(v42 + 1032)) < 0xFFFFFFFE)) ) { LABEL_11: v17 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_messages_001.png", COERCE_DOUBLE(1061158912)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.75); v18 = CCMenuItemSpriteExtra::create((__int64)v17, 0, a1, (__int64)ProfilePage::onSendMessage, 0); v9 = 1067030938; CCMenuItemSpriteExtra::setSizeMult((__int64)v18, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v18); sub_1007FEBF0((__int64)v7, (__int64)v18); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v18); } } LABEL_12: v19 = GameManager::sharedState(); v20 = sub_10036D850(v19); v10 = *(_QWORD *)(a1 + 728); if ( *(_DWORD *)(v10 + 440) == 1 ) { v21 = *(_DWORD *)(v10 + 688); if ( v20 & 1 | (v21 == 0) ) goto LABEL_20; v22 = v21 - 1; if ( v22 <= 3 ) { LABEL_15: v23 = (char *)&aUi[*(int *)&aUi[4 * v22]]; LABEL_19: v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v23, *(double *)&v9); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.75); v25 = CCMenuItemSpriteExtra::create((__int64)v24, 0, a1, (__int64)ProfilePage::onFriend, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v25, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v25); sub_1007FEBF0((__int64)v7, (__int64)v25); sub_1007FEBF0(*(_QWORD *)(a1 + 832), (__int64)v25); v10 = *(_QWORD *)(a1 + 728); goto LABEL_20; } } else { if ( v20 ) goto LABEL_20; v22 = *(_DWORD *)(v10 + 688) - 1; if ( v22 <= 3 ) goto LABEL_15; } v23 = "accountBtn_requests_001.png"; goto LABEL_19; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source