// // ProfilePage::setupPageInfo from 0x5fba54 to 0x5fbc46 (498 bytes) // // 1 xrefs: // > `non-virtual thunk to'ProfilePage::setupPageInfo @ 0x5fbc60 // // 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:54:36 +0000 // unsigned int __fastcall ProfilePage::setupPageInfo(ProfilePage *a1, int a2, char *a3) { unsigned int result; // r0 bool v6; // nf size_t v7; // r0 cocos2d::CCArray *v8; // r0 cocos2d::CCArray *v9; // r0 int v10; // r5 cocos2d::CCArray *v11; // r7 int v12; // r3 unsigned __int8 *v13; // r4 unsigned __int8 *v14; // r5 unsigned __int8 *first_of; // r0 bool v16; // zf int v17; // r4 int v18; // r5 unsigned int v19; // r6 char *v20; // r1 size_t v21; // r0 cocos2d::CCObject *v22; // r0 unsigned __int8 *v23; // r12 unsigned int v24; // r4 unsigned __int8 *v25; // r4 unsigned __int8 *v26; // r0 cocos2d::CCString *v27; // r0 cocos2d::CCString *v28; // r0 cocos2d::CCString *v29; // r0 unsigned __int8 *v30; // [sp+14h] [bp-30h] int v31; // [sp+18h] [bp-2Ch] BYREF unsigned int v32; // [sp+1Ch] [bp-28h] unsigned __int8 *v33; // [sp+20h] [bp-24h] int v34[3]; // [sp+24h] [bp-20h] BYREF int v35[3]; // [sp+30h] [bp-14h] BYREF result = ProfilePage::isCorrect(a1, a3, (int)a3, _stack_chk_guard); if ( !result ) return result; v6 = (*(_BYTE *)a2 & 1) != 0; if ( (*(_BYTE *)a2 & 1) == 0 ) ++a2; v31 = 0; if ( v6 ) a2 = *(_DWORD *)(a2 + 8); v32 = 0; v33 = nullptr; v7 = strlen((const char *)a2); v8 = (cocos2d::CCArray *)std::string::__init(&v31, (const void *)a2, v7); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); v10 = (unsigned __int8)v31; v11 = v9; if ( (v31 & 1) == 0 ) { v12 = (int)(unsigned __int8)v31 >> 1; if ( !v12 ) { v17 = -1; goto LABEL_17; } v13 = (unsigned __int8 *)&v31 + 1; LABEL_8: v14 = &v13[v12]; first_of = std::__find_first_of_ce( v13, &v13[v12], (int)":", (int)"", (int (__fastcall *)(_DWORD, int))std::char_traits::eq); v16 = first_of == v14; v10 = (unsigned __int8)v31; if ( v16 ) v17 = -1; else v17 = first_of - v13; if ( (v31 & 1) != 0 ) goto LABEL_14; LABEL_17: v18 = v10 >> 1; goto LABEL_18; } v12 = v32; v13 = v33; if ( v32 ) goto LABEL_8; v17 = -1; LABEL_14: v18 = v32; LABEL_18: v19 = 0; while ( 1 ) { std::string::basic_string(v34, (unsigned __int8 *)&v31, v19, v17 - v19); if ( (v34[0] & 1) != 0 ) { if ( v34[1] || v19 != v18 ) { v20 = (char *)v34[2]; LABEL_28: v30 = (unsigned __int8 *)v20; memset(v35, 0, sizeof(v35)); v21 = strlen(v20); std::string::__init(v35, v30, v21); v22 = (cocos2d::CCObject *)cocos2d::CCString::create(v35); cocos2d::CCArray::addObject(v11, v22); std::string::~string((int)v35); } } else if ( LOBYTE(v34[0]) >> 1 || v19 != v18 ) { v20 = (char *)v34 + 1; goto LABEL_28; } if ( v17 == -1 ) break; v19 = v17 + 1; if ( (v31 & 1) != 0 ) { v23 = v33; v24 = v32; } else { v24 = (int)(unsigned __int8)v31 >> 1; v23 = (unsigned __int8 *)&v31 + 1; } if ( v19 >= v24 || (v25 = &v23[v24], v30 = v23, v26 = std::__find_first_of_ce( &v23[v19], v25, (int)":", (int)"", (int (__fastcall *)(_DWORD, int))std::char_traits::eq), v26 == v25) ) { v17 = -1; } else { v17 = v26 - v30; } std::string::~string((int)v34); } std::string::~string((int)v34); std::string::~string((int)&v31); result = cocos2d::CCArray::count(v11); if ( result > 2 ) { v27 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 0); *((_DWORD *)a1 + 154) = cocos2d::CCString::intValue(v27); v28 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 1u); *((_DWORD *)a1 + 155) = cocos2d::CCString::intValue(v28); v29 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 2u); *((_DWORD *)a1 + 156) = cocos2d::CCString::intValue(v29); return ProfilePage::updatePageArrows(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source