// // LocalLevelManager::importLevelsFromPaths from 0x100261614 to 0x10026184c (568 bytes) // // 2 xrefs: // > LocalLevelManager::filesPicked @ 0x100261930 // > sub_100531F3C @ 0x100531fc0 // // This function is hookable on this platform (idp: arm, 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 11:01:39 +0000 // __int64 __fastcall LocalLevelManager::importLevelsFromPaths(__int64 a1, __int64 **a2, int a3) { __int64 *v3; // x23 __int64 *v4; // x24 __int64 v7; // x19 __int64 *v8; // x0 __int64 v9; // x0 __int64 v10; // x22 char *CString; // x0 char *v12; // x0 char *v13; // x22 void *v14; // x28 __int64 v15; // x0 int v16; // w8 int v17; // w8 std::string v19; // [xsp+0h] [xbp-A0h] BYREF void *__p[2]; // [xsp+20h] [xbp-80h] BYREF __int64 v21; // [xsp+30h] [xbp-70h] void *v22[2]; // [xsp+38h] [xbp-68h] BYREF char v23; // [xsp+4Fh] [xbp-51h] v3 = *a2; v4 = a2[1]; if ( *a2 == v4 ) return 0; v7 = 0; do { v8 = v3; if ( *((char *)v3 + 23) < 0 ) v8 = (__int64 *)*v3; v9 = cocos2d::CCString::createWithContentsOfFile(v8); if ( v9 ) { v10 = v9; if ( *(_BYTE *)cocos2d::CCString::getCString(v9) ) { CString = (char *)cocos2d::CCString::getCString(v10); sub_100009900(__p, CString); cocos2d::ZipUtils::decompressString(v22, __p, 0, 11); if ( SHIBYTE(v21) < 0 ) operator delete(__p[0]); v12 = (char *)sub_1000D47B4((__int64)v22); v13 = v12; if ( !v12 ) goto LABEL_29; if ( v12[415] < 0 ) { v12 = (char *)sub_1000097D0(__p, *((void **)v12 + 49), *((_QWORD *)v12 + 50)); } else { *(_OWORD *)__p = *(_OWORD *)(v12 + 392); v21 = *((_QWORD *)v12 + 51); } if ( v21 >= 0 ) v14 = (void *)SHIBYTE(v21); else v14 = __p[1]; if ( (SHIBYTE(v21) & 0x8000000000000000LL) != 0 ) { operator delete(__p[0]); if ( !v14 ) goto LABEL_29; } else if ( !v14 ) { LABEL_29: if ( v23 < 0 ) operator delete(v22[0]); goto LABEL_31; } if ( v13[1463] < 0 ) { **((_BYTE **)v13 + 180) = 0; *((_QWORD *)v13 + 181) = 0; } else { v13[1440] = 0; v13[1463] = 0; } *((_DWORD *)v13 + 285) = 2; v15 = GameManager::sharedState(v12); if ( *(char *)(v15 + 655) < 0 ) sub_1000097D0(&v19, *(void **)(v15 + 632), *(_QWORD *)(v15 + 640)); else v19 = *(std::string *)(v15 + 632); std::string::operator=((std::string *)(v13 + 416), &v19); if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v19.__r_.__value_.__l.__data_); *((_DWORD *)v13 + 84) = 0; v16 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *((_DWORD *)v13 + 83) = v16; *((_DWORD *)v13 + 82) = v16; *((_DWORD *)v13 + 197) = 1; *((_WORD *)v13 + 392) = 0; v17 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *((_DWORD *)v13 + 195) = v17; *((_DWORD *)v13 + 194) = v17; sub_1000CEB6C(v13); *((_DWORD *)v13 + 229) = a3; sub_1002E7640(*(_QWORD *)(a1 + 360), v13, 0); v7 = (unsigned int)(v7 + 1); goto LABEL_29; } } LABEL_31: v3 += 3; } while ( v3 != v4 ); if ( (int)v7 > 0 ) LocalLevelManager::updateLevelOrder(a1); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source