// // sub_100958510 from 0x100958510 to 0x1009586de (462 bytes) // // 4 xrefs: // > sub_1009586F0 @ 0x1009586f5 // > sub_100958700 @ 0x10095870c // > sub_100958720 @ 0x100958729 // > sub_100958740 @ 0x100958753 // // 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:41 +0000 // __int64 __fastcall sub_100958510(__int64 a1) { __int64 v2; // rax _QWORD *v3; // r15 __int64 v4; // r15 __int64 v5; // r14 void *v6; // rdi _QWORD *v8; // rax __int64 v9; // rsi _QWORD *v10; // rcx _QWORD *v11; // rax bool v12; // zf *(_QWORD *)a1 = off_100BC9E40; *(_QWORD *)(a1 + 320) = off_100BCA3B8; *(_QWORD *)(a1 + 328) = &off_100BCA428; *(_QWORD *)(a1 + 336) = off_100BCA440; *(_QWORD *)(a1 + 344) = off_100BCA460; *(_QWORD *)(a1 + 352) = off_100BCA488; *(_QWORD *)(a1 + 408) = off_100BCA4B8; *(_QWORD *)(a1 + 432) = off_100BCA538; *(_QWORD *)(a1 + 544) = off_100BCA558; *(_QWORD *)(a1 + 664) = &off_100BCA5A0; *(_QWORD *)(a1 + 672) = off_100BCA5B8; v2 = MusicDownloadManager::sharedState(); MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 672); v3 = *(_QWORD **)(a1 + 816); if ( v3 != (_QWORD *)(a1 + 824) ) { do { v8 = cocos2d::CCTextureCache::sharedTextureCache(); if ( (v3[4] & 1) != 0 ) v9 = v3[6]; else v9 = (__int64)v3 + 33; cocos2d::CCTextureCache::removeTextureForKey((__int64)v8, v9); v10 = (_QWORD *)v3[1]; if ( v10 ) { do { v11 = v10; v10 = (_QWORD *)*v10; } while ( v10 ); } else { do { v11 = (_QWORD *)v3[2]; v12 = *v11 == (_QWORD)v3; v3 = v11; } while ( !v12 ); } v3 = v11; } while ( v11 != (_QWORD *)(a1 + 824) ); } sub_1001EAE60(a1 + 816, *(_QWORD **)(a1 + 824)); sub_1001EAE60(a1 + 792, *(_QWORD **)(a1 + 800)); if ( (*(_BYTE *)(a1 + 768) & 1) != 0 ) operator delete(*(void **)(a1 + 784)); v4 = *(_QWORD *)(a1 + 680); if ( v4 ) { v5 = *(_QWORD *)(a1 + 688); v6 = *(void **)(a1 + 680); if ( v5 != v4 ) { do { v5 -= 80; sub_10066B830(v5); } while ( v5 != v4 ); v6 = *(void **)(a1 + 680); } *(_QWORD *)(a1 + 688) = v4; operator delete(v6); } return sub_1004936F0(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source