// // sub_1800CB310 from 0x1800cb310 to 0x1800cb424 (276 bytes) // // 2 xrefs: // > @ 0x18016c738 // > @ 0x1801fe550 // // 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 // __int64 __fastcall sub_1800CB310(__int64 a1, _BYTE *a2) { int v2; // ebx int v3; // esi _QWORD *v6; // rdi _QWORD *v7; // rax int v8; // r8d __int64 result; // rax _QWORD **v10; // rdi int v11; // ebp _QWORD *i; // rax int v13; // ebx __int64 v14; // rsi _QWORD *v15; // rax int j; // ecx _QWORD *v17; // rdx int k; // eax __int64 v19; // [rsp+48h] [rbp+10h] *a2 = 0; v2 = 0; v3 = *(_DWORD *)(a1 + 476); if ( v3 > 0 ) { v6 = (_QWORD *)(a1 + 424); do { v7 = (_QWORD *)*v6; v8 = 0; if ( (_QWORD *)*v6 == v6 ) return 31; while ( v8 != v2 ) { v7 = (_QWORD *)*v7; ++v8; if ( v7 == v6 ) return 31; } FMOD::ChannelControl::isPlaying(*(_QWORD *)(v7[2] + 80LL), a2); if ( *a2 ) return 0; } while ( ++v2 < v3 ); } v10 = (_QWORD **)(a1 + 400); v11 = 0; for ( i = *v10; i != v10; ++v11 ) i = (_QWORD *)*i; v13 = 0; if ( v11 > 0 ) { v14 = v19; while ( 1 ) { v15 = *v10; for ( j = 0; v15 != v10; ++j ) v15 = (_QWORD *)*v15; if ( v13 < 0 || v13 >= j ) break; v17 = *v10; for ( k = 0; k < j; ++k ) { if ( k == v13 ) v14 = v17[2]; v17 = (_QWORD *)*v17; } result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 168LL))(v14, a2); if ( (_DWORD)result ) return result; if ( !*a2 && ++v13 < v11 ) continue; return 0; } return 31; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source