// // sub_100870400 from 0x100870400 to 0x100870701 (769 bytes) // // 1 xrefs: // > FRequestProfilePage::init @ 0x10086f84c // // 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:36:50 +0000 // void __fastcall sub_100870400(__int64 a1) { __int64 v2; // rax __int64 CString; // rsi __int64 v4; // rdi __int64 StoredOnlineLevels; // rax unsigned int *v6; // rax __int64 *v7; // r14 unsigned __int64 v8; // r15 __int64 v9; // r12 __int64 v10; // rax __int64 v11; // r13 __int64 v12; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v13; // cl std::string::size_type size; // rax int v15; // r15d bool v16; // zf std::string::size_type v17; // rcx __int64 v18; // r14 __int64 v19; // rax __int64 v20; // rax int v21; // ecx bool v22; // cc int v23; // ecx __int64 v24; // r14 char *v25; // rax __int64 v26; // rax const char *v27; // rsi __int64 v28; // rax unsigned int *v29; // rax __int64 v30; // rcx unsigned __int64 v31; // rax unsigned __int64 v32; // rcx __int128 v33; // [rsp+0h] [rbp-80h] BYREF void *__p; // [rsp+10h] [rbp-70h] __int128 v35; // [rsp+18h] [rbp-68h] BYREF void *v36; // [rsp+28h] [rbp-58h] std::string v37; // [rsp+30h] [rbp-50h] BYREF int v38; // [rsp+54h] [rbp-2Ch] if ( !*(_BYTE *)(a1 + 880) && !*(_BYTE *)(a1 + 704) ) { v2 = GameLevelManager::sharedState(); if ( (*(_BYTE *)(a1 + 712) & 1) != 0 ) { CString = *(_QWORD *)(a1 + 728); v4 = v2; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)CString); if ( !StoredOnlineLevels ) return; } else { CString = a1 + 713; v4 = v2; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)CString); if ( !StoredOnlineLevels ) return; } memset(&v37, 0, sizeof(v37)); v6 = *(unsigned int **)(StoredOnlineLevels + 56); if ( *v6 ) { v7 = *((__int64 **)v6 + 2); v8 = (unsigned __int64)&v7[*v6 - 1]; v38 = 0; while ( 1 ) { v9 = *v7; if ( !*v7 ) { LABEL_20: v13 = v37.__r_.__value_.__s.0; size = v37.__r_.__value_.__l.__size_; v15 = v38; goto LABEL_22; } if ( *(_BYTE *)(v9 + 725) == 1 && *(_BYTE *)(v9 + 724) == 1 ) { v10 = GameLevelManager::sharedState(); CString = *(unsigned int *)(v9 + 376); v4 = v10; v11 = GameLevelManager::friendRequestFromAccountID(v10, CString); if ( v11 ) break; } LABEL_9: if ( (unsigned __int64)++v7 > v8 ) goto LABEL_20; } if ( (*(_BYTE *)&v37.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v37.__r_.__value_.__l.__size_ ) goto LABEL_19; } else if ( !(*(_BYTE *)&v37.__r_.__value_.__l.0 >> 1) ) { LABEL_19: v12 = sub_10088E820("%i", v33); v4 = (__int64)&v37; CString = cocos2d::CCString::getCString(v12); std::string::append(&v37, (const std::string::value_type *)CString); *(_BYTE *)(v11 + 376) = 1; *(_BYTE *)(v9 + 724) = 0; ++v38; goto LABEL_9; } std::string::append(&v37, ","); goto LABEL_19; } size = 0; v13 = 0; v15 = 0; LABEL_22: v16 = (*(_BYTE *)&v13 & 1) == 0; v17 = *(unsigned __int8 *)&v13 >> 1; if ( !v16 ) v17 = size; if ( v17 ) { CString = (__int64)&v37; v4 = GameLevelManager::sharedState(); sub_10057B5C0(v4, (__int64)&v37); } if ( v15 > 0 ) { v18 = GameLevelManager::sharedState(); v19 = GJAccountManager::sharedState(v4, CString); v20 = GameLevelManager::userInfoForAccountID(v18, *(_DWORD *)(v19 + 352) - *(_DWORD *)(v19 + 356)); if ( v20 ) { v21 = *(_DWORD *)(v20 + 696); v22 = v21 <= v15; v23 = v21 - v15; if ( v22 ) v23 = 0; *(_DWORD *)(v20 + 696) = v23; } } v24 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); LOBYTE(v35) = 28; strcpy((char *)&v35 + 1, "Marked as read"); LOWORD(v33) = 0; v25 = TextAlertPopup::create(&v35, 0x96u, &v33, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v24 + 464LL))(v24, v25, 1000); if ( (v33 & 1) != 0 ) operator delete(__p); if ( (v35 & 1) != 0 ) operator delete(v36); v26 = GameLevelManager::sharedState(); if ( (*(_BYTE *)(a1 + 712) & 1) != 0 ) v27 = *(const char **)(a1 + 728); else v27 = (const char *)(a1 + 713); v28 = GameLevelManager::getStoredOnlineLevels(v26, v27); if ( v28 ) { v29 = *(unsigned int **)(v28 + 56); v30 = *v29; if ( *v29 ) { v31 = *((_QWORD *)v29 + 2); v32 = v31 + 8 * v30 - 8; do { if ( !*(_QWORD *)v31 ) break; *(_BYTE *)(*(_QWORD *)v31 + 725LL) = 0; v31 += 8LL; } while ( v31 <= v32 ); } } sub_100870A20(a1); CustomListView::reloadAll(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 544LL), (__int64)v27, COERCE_DOUBLE(1056964608)); if ( (*(_BYTE *)&v37.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v37.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source