// // InfoLayer::setupCommentsBrowser from 0x100894ad0 to 0x100894ee9 (1049 bytes) // // 4 xrefs: // > InfoLayer::init @ 0x1008930ec // > InfoLayer::loadPage @ 0x10089487a // > InfoLayer::loadCommentsFinished @ 0x10089612f // > sub_100896170 @ 0x10089619c // // 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:06 +0000 // __int64 __fastcall InfoLayer::setupCommentsBrowser(_QWORD *a1, __int64 a2) { __int64 v2; // r14 _QWORD *v3; // rbx __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax int v7; // edx bool v8; // al bool v9; // cl unsigned int *v10; // rdx bool v11; // al __int64 *v12; // rcx unsigned __int64 v13; // rdx __int64 v14; // rax int v15; // edx bool v16; // al bool v17; // cl unsigned int *v18; // rdx bool v19; // al unsigned __int64 v20; // rcx unsigned __int64 v21; // rdx __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax float v26; // xmm1_4 unsigned int *v27; // rax __int64 v28; // rcx __int64 *v29; // rax unsigned __int64 v30; // rcx __int64 **v31; // rdx __int64 **v32; // r8 __int64 v33; // rsi int v34; // edi int v35; // edi __int64 *v36; // r10 int v37; // r9d int v38; // r11d int v39; // r10d __int64 v40; // rax unsigned __int8 GameVariable; // al char *v42; // rax __int64 v43; // rdi const char *v44; // rsi _QWORD *v45; // rax __int64 v46; // r14 float v48; // [rsp+0h] [rbp-30h] BYREF __int64 v49; // [rsp+8h] [rbp-28h] BYREF float v50; // [rsp+10h] [rbp-20h] float v51; // [rsp+14h] [rbp-1Ch] v2 = a2; v3 = a1; if ( a1[97] ) { v4 = cocos2d::CCDirector::sharedDirector(); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4); a2 = a1[97]; cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a2); a1 = (_QWORD *)a1[97]; (*(void (__fastcall **)(_QWORD *))(*a1 + 536LL))(a1); v3[97] = 0; v3[112] = 0; } if ( v3[89] ) { v6 = GJAccountManager::sharedState((__int64)a1, a2); v7 = *(_DWORD *)(v3[89] + 364LL); v8 = *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356) == v7; v9 = v7 > 0; if ( v2 ) { v10 = *(unsigned int **)(v2 + 56); a2 = *v10; if ( *v10 ) { v11 = v9 && v8; v12 = *((__int64 **)v10 + 2); v13 = (unsigned __int64)&v12[a2 - 1]; do { a2 = *v12; if ( !*v12 ) break; *(_BYTE *)(a2 + 434) = v11; ++v12; } while ( (unsigned __int64)v12 <= v13 ); } } } if ( v3[90] ) { v14 = GJAccountManager::sharedState((__int64)a1, a2); v15 = *(_DWORD *)(v3[90] + 340LL); v16 = *(_DWORD *)(v14 + 352) - *(_DWORD *)(v14 + 356) == v15; v17 = v15 > 0; if ( v2 ) { v18 = *(unsigned int **)(v2 + 56); if ( *v18 ) { v19 = v17 && v16; v20 = *((_QWORD *)v18 + 2); v21 = v20 + 8LL * *v18 - 8; do { if ( !*(_QWORD *)v20 ) break; *(_BYTE *)(*(_QWORD *)v20 + 434LL) = v19; v20 += 8LL; } while ( v20 <= v21 ); } } } v22 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v49, v22); v23 = GameManager::sharedState(); if ( !(unsigned __int8)GameManager::getGameVariable(v23, "0089") || (v24 = GameManager::sharedState(), GameManager::commentsRestricted(v24)) || v3[88] && (v25 = GameManager::sharedState(), GameManager::accountPostsRestricted(v25)) ) { if ( !v3[88] ) { v26 = 140.0; v50 = -53.0; v51 = 140.0; if ( v2 ) goto LABEL_21; LABEL_49: v43 = 0; goto LABEL_50; } } v26 = 234.0; v50 = -4.0; v51 = 234.0; if ( !v2 ) goto LABEL_49; LABEL_21: v27 = *(unsigned int **)(v2 + 56); v28 = *v27; if ( *v27 ) { v29 = *((__int64 **)v27 + 2); v30 = (unsigned __int64)&v29[v28 - 1]; v31 = (__int64 **)(v3 + 117); do { v33 = *v29; if ( !*v29 ) break; v34 = *(_DWORD *)(v33 + 436); if ( (unsigned int)(v34 - 3) >= 3 ) { v35 = 0; if ( *(_DWORD *)(v33 + 380) ) { v36 = *v31; if ( *v31 ) goto LABEL_31; } else { v35 = 1; v36 = *v31; if ( *v31 ) { LABEL_31: v37 = *(_DWORD *)(v33 + 368); v32 = (__int64 **)(v3 + 117); do { v38 = *((_DWORD *)v36 + 7); if ( v38 < v35 ) { ++v36; } else if ( v38 <= v35 ) { if ( *((_DWORD *)v36 + 8) >= v37 ) v32 = (__int64 **)v36; v36 += *((_DWORD *)v36 + 8) < v37; } else { v32 = (__int64 **)v36; } v36 = (__int64 *)*v36; } while ( v36 ); if ( v32 != v31 ) { v39 = *((_DWORD *)v32 + 7); if ( v35 >= v39 && (v35 > v39 || v37 >= *((_DWORD *)v32 + 8)) ) goto LABEL_24; } } } } else { v35 = v34 + 3; v36 = *v31; if ( *v31 ) goto LABEL_31; } v32 = (__int64 **)(v3 + 117); LABEL_24: *(_BYTE *)(v33 + 440) = v32 != v31; ++v29; } while ( (unsigned __int64)v29 <= v30 ); } v40 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v40, "0088"); v42 = CustomListView::create(v2, 0, 0, GameVariable | 6u, v51, 340.0, 0.0); v26 = v51; v43 = (__int64)v42; LABEL_50: v3[112] = v43; v44 = "Comments"; if ( *((_BYTE *)v3 + 880) ) v44 = "Mod Comments"; v45 = GJCommentListLayer::create(v43, 340.0, v26, (__int64)v44, 0xFF3E72BF, 0); v3[97] = v45; (*(void (__fastcall **)(_QWORD, _QWORD *))(*(_QWORD *)v3[73] + 456LL))(v3[73], v45); v46 = v3[97]; sub_100278250(&v48, (float)(*(float *)&v49 + -340.0) * 0.5, v50 + (float)((float)(*((float *)&v49 + 1) - v51) * 0.5)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v46 + 184LL))(v46, &v48); return InfoLayer::refreshBulkUI(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source