// // sub_100065180 from 0x100065180 to 0x1000652ac (300 bytes) // // 8 xrefs: // > GJMoreGamesLayer::getMoreGamesList @ 0x100064f38 // > GJMoreGamesLayer::getMoreGamesList @ 0x100064f64 // > GJMoreGamesLayer::getMoreGamesList @ 0x100064f90 // > cocos2d::CCFileUtils::init @ 0x100150ab0 // > cocos2d::CCFileUtils::setSearchResolutionsOrder @ 0x100151c28 // > cocos2d::CCFileUtils::addSearchResolutionsOrder @ 0x100151c98 // > sub_1001A64AC @ 0x1001a6688 // > sub_1001A64AC @ 0x1001a66f0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // const void **__fastcall sub_100065180(const void **result, __int128 *a2) { const void **v3; // x19 unsigned __int64 v4; // x9 unsigned __int64 v5; // x10 __int128 v6; // q0 char *v7; // x21 unsigned __int64 v8; // x21 unsigned __int64 v9; // x9 unsigned __int64 v10; // x10 unsigned __int64 v11; // x1 char *v12; // x0 char *v13; // x9 char *v14; // x22 __int128 v15; // q0 size_t v16; // x2 char *v17; // x20 const void *v18; // x8 const void *v19; // x9 _QWORD v20[5]; // [xsp+8h] [xbp-48h] BYREF v3 = result; v4 = (unsigned __int64)result[1]; v5 = (unsigned __int64)result[2]; if ( v4 >= v5 ) { v8 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(v4 - (_QWORD)*result) >> 3); v9 = v8 + 1; if ( v8 + 1 > 0xAAAAAAAAAAAAAAALL ) sub_10000A5F8(); v10 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(v5 - (_QWORD)*result) >> 3); if ( 2 * v10 > v9 ) v9 = 2 * v10; if ( v10 >= 0x555555555555555LL ) v11 = 0xAAAAAAAAAAAAAAALL; else v11 = v9; v20[4] = result; if ( v11 ) v12 = (char *)sub_10001740C((__int64)result, v11); else v12 = nullptr; v13 = &v12[24 * v8]; v14 = &v12[24 * v11]; v15 = *a2; *((_QWORD *)v13 + 2) = *((_QWORD *)a2 + 2); *(_OWORD *)v13 = v15; *((_QWORD *)a2 + 1) = 0; *((_QWORD *)a2 + 2) = 0; *(_QWORD *)a2 = 0; v7 = v13 + 24; v16 = (_BYTE *)v3[1] - (_BYTE *)*v3; v17 = &v13[-v16]; memcpy(&v13[-v16], *v3, v16); v18 = *v3; *v3 = v17; v3[1] = v7; v19 = v3[2]; v3[2] = v14; v20[2] = v18; v20[3] = v19; v20[0] = v18; v20[1] = v18; result = (const void **)sub_100017450((__int64)v20); } else { v6 = *a2; *(_QWORD *)(v4 + 16) = *((_QWORD *)a2 + 2); *(_OWORD *)v4 = v6; *((_QWORD *)a2 + 1) = 0; *((_QWORD *)a2 + 2) = 0; *(_QWORD *)a2 = 0; v7 = (char *)(v4 + 24); } v3[1] = v7; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source