// // ThreadViewPopup::expandShareTokens from 0x7520f8 to 0x752378 (640 bytes) // // 4 xrefs: // > ThreadRequestPopup::init @ 0x758372 // > InvitesPopup::buildRows @ 0x759484 // > ThreadViewPopup::measureBody @ 0x75b26e // > ThreadViewPopup::mountVirtualRow @ 0x75f70c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:58:52 +0000 // int *__fastcall ThreadViewPopup::expandShareTokens(int *a1, unsigned __int8 *a2, int a3) { int v6; // r5 int v7; // r1 unsigned int i; // r6 int v9; // r3 int v10; // r1 unsigned int v11; // r3 unsigned __int8 *v12; // r3 int v13; // r3 unsigned __int8 *v14; // r3 unsigned int v15; // r2 int v16; // r11 int v17; // r3 unsigned int v18; // r5 int v19; // r1 unsigned int v20; // r3 unsigned int v21; // r0 unsigned __int8 *v22; // r3 int v23; // r8 _BOOL4 v24; // r8 unsigned __int8 *v25; // r3 unsigned __int8 *v26; // r0 unsigned __int8 *v27; // r0 const char *v28; // r0 char *v29; // r0 cocos2d::CCString *v30; // r0 const char *CString; // r6 size_t v32; // r0 int v33; // r2 int v34; // r3 _DWORD *v35; // r6 int v36; // r3 int v37; // r3 int v38; // r1 int v39; // r2 int v40; // r3 char *v41; // r1 size_t v42; // r2 __int64 v44; // [sp+8h] [bp-44h] int v45; // [sp+28h] [bp-24h] BYREF size_t v46; // [sp+2Ch] [bp-20h] char *v47; // [sp+30h] [bp-1Ch] int v48; // [sp+34h] [bp-18h] BYREF int v49; // [sp+38h] [bp-14h] int v50; // [sp+3Ch] [bp-10h] int v51; // [sp+40h] [bp-Ch] *a1 = 0; a1[1] = 0; a1[2] = 0; v6 = *a2; if ( (v6 & 1) != 0 ) v7 = *((_DWORD *)a2 + 1); else v7 = v6 >> 1; std::string::reserve(a1, v7 + 16); for ( i = 0; ; i = v18 ) { v9 = *a2; v10 = v9 & 1; v11 = (v9 & 1) != 0 ? *((_DWORD *)a2 + 1) : v9 >> 1; if ( i >= v11 ) break; if ( i && (!v10 ? (v12 = a2 + 1) : (v12 = *((unsigned __int8 **)a2 + 2)), (v13 = v12[i - 1], (unsigned int)(v13 - 48) <= 9) || (v13 & 0xFFFFFFDF) - 65 <= 0x19 || v13 == 95) || (!v10 ? (v14 = a2 + 1) : (v14 = *((unsigned __int8 **)a2 + 2)), v14[i] != 108 || *(_DWORD *)(a3 + 4) - *(_DWORD *)a3 > 79) ) { LABEL_35: if ( (*a2 & 1) != 0 ) v25 = *((unsigned __int8 **)a2 + 2); else v25 = a2 + 1; std::string::push_back(a1, v25[i]); v18 = i + 1; continue; } if ( !std::string::compare(a2, i, 2u, "l_", 2u) ) { v15 = i + 2; v16 = 0; } else { if ( std::string::compare(a2, i, 3u, "li_", 3u) ) goto LABEL_35; v15 = i + 3; v16 = 1; } if ( v15 == -1 ) goto LABEL_35; v17 = *a2; v18 = v15; v19 = v17 & 1; v20 = v17 >> 1; while ( 1 ) { v21 = v19 ? *((_DWORD *)a2 + 1) : v20; if ( v18 >= v21 || v18 == v15 + 10 ) break; v26 = v19 ? *((unsigned __int8 **)a2 + 2) : a2 + 1; if ( v26[v18] <= 0x2Fu ) break; v27 = v19 ? *((unsigned __int8 **)a2 + 2) : a2 + 1; if ( v27[v18] > 0x39u ) break; ++v18; } if ( v19 ) { if ( v18 >= *((_DWORD *)a2 + 1) ) goto LABEL_55; v22 = *((unsigned __int8 **)a2 + 2); } else { if ( v18 >= v20 ) { LABEL_55: v24 = 1; goto LABEL_34; } v22 = a2 + 1; } v23 = v22[v18]; v24 = (unsigned int)(v23 - 48) > 9 && (v23 & 0xFFFFFFDF) - 65 > 0x19 && v23 != 95; LABEL_34: if ( v18 <= v15 ) goto LABEL_35; std::string::basic_string(&v45, a2, v15, v18 - v15); v28 = (v45 & 1) != 0 ? v47 : (char *)&v45 + 1; v44 = atoll(v28); std::string::~string((int)&v45); if ( !v24 || (unsigned __int64)(v44 - 1) > 0x7FFFFFFE ) goto LABEL_35; if ( v16 ) v29 = "List %lli"; else v29 = "Level %lli"; v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v29, nullptr, v44, a2); CString = (const char *)cocos2d::CCString::getCString(v30); v45 = 0; v46 = 0; v47 = nullptr; v32 = strlen(CString); std::string::__init(&v45, CString, v32); v34 = *(unsigned __int8 *)a1; LOBYTE(v51) = v16; v35 = *(_DWORD **)(a3 + 4); if ( (v34 & 1) != 0 ) v36 = a1[1]; else v36 = v34 >> 1; v48 = v36; if ( (v45 & 1) != 0 ) v37 = v46; else v37 = (int)(unsigned __int8)v45 >> 1; v49 = v37; v50 = v44; if ( v35 == *(_DWORD **)(a3 + 8) ) { std::vector::__push_back_slow_path( (void **)a3, &v48, v33); } else { if ( v35 ) { v38 = v49; v39 = v50; v40 = v51; *v35 = v48; v35[1] = v38; v35[2] = v39; v35[3] = v40; } *(_DWORD *)(a3 + 4) += 16; } if ( (v45 & 1) != 0 ) { v41 = v47; v42 = v46; } else { v42 = (int)(unsigned __int8)v45 >> 1; v41 = (char *)&v45 + 1; } std::string::append(a1, v41, v42); std::string::~string((int)&v45); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source