// // LevelBadgePopup::loadLevelsFinished from 0x10093bb70 to 0x10093bd60 (496 bytes) // // 2 xrefs: // > sub_10093C000 @ 0x10093c00c // > @ 0x100bc3d40 // // 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:38:29 +0000 // int __fastcall LevelBadgePopup::loadLevelsFinished(__int64 a1, __int64 a2, const char *a3) { size_t v5; // rax unsigned int v6; // ecx const void *v7; // rdi __int64 v8; // rdi signed int v9; // r15d _DWORD *v10; // rax __int64 v11; // r14 __int64 v12; // r15 const char *v13; // rsi char *v14; // rax __int128 v16; // [rsp+8h] [rbp-48h] BYREF void *v17; // [rsp+18h] [rbp-38h] __int128 v18; // [rsp+20h] [rbp-30h] BYREF void *__p; // [rsp+30h] [rbp-20h] if ( a3 ) { v5 = strlen(a3); v6 = *(unsigned __int8 *)(a1 + 696); if ( (v6 & 1) != 0 ) { if ( v5 != *(_QWORD *)(a1 + 704) ) return v5; if ( v5 == -1 ) sub_100056810(); v7 = *(const void **)(a1 + 712); } else { if ( v5 != v6 >> 1 ) return v5; v7 = (const void *)(a1 + 697); } LODWORD(v5) = memcmp(v7, a3, v5); if ( (_DWORD)v5 ) return v5; } if ( *(_QWORD *)(GameLevelManager::sharedState() + 1224) == a1 + 664 ) *(_QWORD *)(GameLevelManager::sharedState() + 1224) = 0; v8 = *(_QWORD *)(a1 + 720); if ( v8 ) { LoadingCircle::fadeAndRemove(v8); *(_QWORD *)(a1 + 720) = 0; } if ( a2 ) { v9 = 0; while ( v9 < (int)sub_1007FEF90(a2) ) { v10 = (_DWORD *)sub_1007FEFE0(a2, v9); if ( *(_BYTE *)(a1 + 676) == 1 ) { ++v9; if ( v10[86] == *(_DWORD *)(a1 + 672) ) { LABEL_19: LODWORD(v5) = sub_10093BDC0(a1, v10); return v5; } } else { ++v9; if ( v10[82] - v10[83] == *(_DWORD *)(a1 + 672) ) goto LABEL_19; } } } v11 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); v12 = *(unsigned __int8 *)(a1 + 676); v13 = "Level not found"; if ( *(_BYTE *)(a1 + 676) ) v13 = "List not found"; LOBYTE(v16) = 2 * (v12 ^ 0xF); memcpy((char *)&v16 + 1, v13, v12 ^ 0xF); ((_BYTE *)&v16 - v12)[16] = 0; LOWORD(v18) = 0; v14 = TextAlertPopup::create(&v16, 0x96u, &v18, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v14, 1000); if ( (v18 & 1) != 0 ) operator delete(__p); if ( (v16 & 1) != 0 ) operator delete(v17); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); LODWORD(v5) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source