// // LevelBrowserLayer::getSearchTitle from 0x100485fb0 to 0x10048650a (1370 bytes) // // 1 xrefs: // > LevelBrowserLayer::setupLevelBrowser @ 0x100485df4 // // 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:30:42 +0000 // std::string *__fastcall LevelBrowserLayer::getSearchTitle( std::string *this, const std::string::value_type *CString, __m128 a3) { __int64 v4; // rax const std::string::value_type *v5; // r14 unsigned int v6; // ecx int v7; // edx __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax std::string::value_type *v11; // rdi unsigned int v12; // r15d char *v13; // r12 __int64 v14; // rax const std::string::value_type *v15; // rsi __int64 v16; // rax __int64 v17; // rax int v18; // r15d __int64 v19; // rax __int64 v20; // rax __int64 v21; // rax const std::string::value_type *v22; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // r15 __int64 v27; // rax __int64 SavedMapPack; // rax __int64 v29; // rax __int64 v30; // rax __int64 v31; // rax unsigned __int64 v32; // rcx char v33; // al std::string::size_type size; // rdx unsigned __int64 v35; // rsi __int64 v36; // rax __int64 v37; // rax const std::string::value_type *v38; // rsi __int64 v39; // rax const std::string::value_type *v40; // rax char v41; // [rsp+0h] [rbp-60h] std::string v42; // [rsp+8h] [rbp-58h] BYREF std::string::value_type __s[16]; // [rsp+20h] [rbp-40h] BYREF char *data; // [rsp+30h] [rbp-30h] this->__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(this->__r_.__value_.__s.__data_, "Online Levels"); v4 = *((_QWORD *)CString + 83); if ( !v4 ) return this; v5 = CString; v6 = *(_DWORD *)(v4 + 316) - 98; if ( v6 < 6 ) { v7 = 55; if ( _bittest(&v7, v6) ) { CString = (char *)dword_100A0B8E0 + dword_100A0B8E0[v6]; std::string::assign(this, CString); v8 = *((_QWORD *)v5 + 83); if ( *(int *)(v8 + 420) <= 0 ) goto LABEL_11; v9 = GameLevelManager::sharedState(*(double *)a3.i64); GameLevelManager::getFolderName( __s, v9, *(unsigned int *)(*((_QWORD *)v5 + 83) + 420LL), *(_DWORD *)(*((_QWORD *)v5 + 83) + 316LL) == 98); if ( (__s[0] & 1) != 0 ) { if ( *(_QWORD *)&__s[8] ) { LABEL_44: v24 = sub_10088E820(" (%i: %s)", v41); goto LABEL_46; } } else if ( __s[0] ) { goto LABEL_44; } v24 = sub_10088E820(" (%i)", v41); LABEL_46: CString = (const std::string::value_type *)cocos2d::CCString::getCString(v24); std::string::append(this, CString); if ( (__s[0] & 1) != 0 ) operator delete(data); goto LABEL_10; } } if ( *(_DWORD *)(v4 + 432) == 1 ) { CString = "Online Lists"; std::string::assign(this, "Online Lists"); } LABEL_10: v8 = *((_QWORD *)v5 + 83); if ( !v8 ) return this; LABEL_11: if ( (*(_BYTE *)(v8 + 320) & 1) != 0 ) { CString = *(const std::string::value_type **)(v8 + 336); sub_10001AD30(__s, CString, *(_QWORD *)(v8 + 328)); } else { v10 = v8 + 320; data = *(char **)(v10 + 16); a3 = *(__m128 *)v10; *(_OWORD *)__s = *(_OWORD *)v10; } if ( (__s[0] & 1) != 0 ) { v13 = data; v12 = atoi(data); v11 = v13; operator delete(v13); } else { v11 = &__s[1]; v12 = atoi(&__s[1]); } v14 = *((_QWORD *)v5 + 83); switch ( *(_DWORD *)(v14 + 316) ) { case 5: if ( *(_DWORD *)(v14 + 432) == 1 ) { v25 = GJAccountManager::sharedState((__int64)v11, (__int64)CString); if ( v12 == *(_DWORD *)(v25 + 352) - *(_DWORD *)(v25 + 356) ) { v15 = "My Online Lists"; goto LABEL_19; } } v30 = GameManager::sharedState(); if ( v12 == *(_DWORD *)(v30 + 660) - *(_DWORD *)(v30 + 664) ) { v15 = "My Online Levels"; goto LABEL_19; } v31 = GameLevelManager::sharedState(*(double *)a3.i64); GameLevelManager::userNameForUserID(__s, v31, v12); v32 = (unsigned __int8)__s[0] >> 1; v33 = __s[0] & 1; size = *(_QWORD *)&__s[8]; v35 = *(_QWORD *)&__s[8]; if ( (__s[0] & 1) == 0 ) v35 = (unsigned __int8)__s[0] >> 1; if ( v35 <= 1 ) { GameLevelManager::sharedState(*(double *)a3.i64); v36 = GameLevelManager::sharedState(*(double *)a3.i64); GameLevelManager::accountIDForUserID(v36, v12); GameLevelManager::tryGetUsername(&v42); if ( (__s[0] & 1) != 0 ) operator delete(data); data = v42.__r_.__value_.__l.__data_; a3.i64[0] = v42.__r_.__value_.__r.__words[0]; *(_OWORD *)__s = *(_OWORD *)&v42.__r_.__value_.__l.0; size = v42.__r_.__value_.__l.__size_; v33 = *(_BYTE *)&v42.__r_.__value_.__s.0 & 1; v32 = *(_BYTE *)&v42.__r_.__value_.__l.0 >> 1; } if ( v33 ) v32 = size; if ( v32 >= 3 ) { v37 = GameLevelManager::sharedState(*(double *)a3.i64); GameLevelManager::userNameForUserID(&v42, v37, v12); v39 = sub_10088E820("%ss Levels", v41); v40 = (const std::string::value_type *)cocos2d::CCString::getCString(v39); std::string::assign(this, v40); if ( (*(_BYTE *)&v42.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v42.__r_.__value_.__l.__data_); v33 = __s[0] & 1; } if ( v33 ) goto LABEL_80; break; case 6: case 0x10: case 0x11: case 0x15: case 0x16: case 0x17: case 0x19: case 0x1A: case 0x1C: case 0x1D: case 0x20: case 0x21: case 0x22: v15 = " "; goto LABEL_19; case 9: v15 = "Map Packs"; goto LABEL_19; case 0xA: v26 = GameLevelManager::sharedState(*(double *)a3.i64); v27 = GameLevelManager::sharedState(*(double *)a3.i64); SavedMapPack = GameLevelManager::getSavedMapPack(v26, *(unsigned int *)(v27 + 1484)); if ( SavedMapPack ) { if ( (*(_BYTE *)(SavedMapPack + 344) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(SavedMapPack + 360), *(_QWORD *)(SavedMapPack + 352)); } else { v29 = SavedMapPack + 344; data = *(char **)(v29 + 16); *(_OWORD *)__s = *(_OWORD *)v29; } v38 = (__s[0] & 1) != 0 ? data : &__s[1]; std::string::assign(this, v38); if ( (__s[0] & 1) != 0 ) LABEL_80: operator delete(data); } break; case 0xE: v15 = "Find Users"; goto LABEL_19; case 0x1F: v15 = "Hyped"; goto LABEL_19; case 0x65: v15 = "Smart Templates"; LABEL_19: std::string::assign(this, v15); break; default: break; } v16 = *((_QWORD *)v5 + 83); if ( (*(_BYTE *)(v16 + 320) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(v16 + 336), *(_QWORD *)(v16 + 328)); } else { v17 = v16 + 320; data = *(char **)(v17 + 16); *(_OWORD *)__s = *(_OWORD *)v17; } if ( (__s[0] & 1) != 0 ) { if ( !*(_QWORD *)&__s[8] ) { LABEL_37: operator delete(data); return this; } } else if ( !__s[0] ) { return this; } v18 = *(_DWORD *)(*((_QWORD *)v5 + 83) + 316LL); if ( (unsigned int)(v18 - 98) > 4 || v18 == 101 ) { if ( (__s[0] & 1) != 0 ) operator delete(data); if ( v18 != 103 ) return this; } else if ( (__s[0] & 1) != 0 ) { operator delete(data); } if ( (*(_BYTE *)&this->__r_.__value_.__s.0 & 1) != 0 ) { v19 = *((_QWORD *)v5 + 83); if ( (*(_BYTE *)(v19 + 320) & 1) != 0 ) { LABEL_33: sub_10001AD30(__s, *(const void **)(v19 + 336), *(_QWORD *)(v19 + 328)); goto LABEL_36; } } else { v19 = *((_QWORD *)v5 + 83); if ( (*(_BYTE *)(v19 + 320) & 1) != 0 ) goto LABEL_33; } v20 = v19 + 320; data = *(char **)(v20 + 16); *(_OWORD *)__s = *(_OWORD *)v20; LABEL_36: v21 = sub_10088E820("%s (%s)", v41); v22 = (const std::string::value_type *)cocos2d::CCString::getCString(v21); std::string::assign(this, v22); if ( (__s[0] & 1) != 0 ) goto LABEL_37; return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source