// // sub_180035510 from 0x180035510 to 0x1800357be (686 bytes) // // 5 xrefs: // > sub_180034270 @ 0x18003439f // > @ 0x1801803e8 // > @ 0x1801803f8 // > @ 0x18018040c // > @ 0x1801f7b60 // // 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_180035510(__int64 a1) { __int64 result; // rax __int64 v3; // rdx __int64 v4; // rcx int v5; // [rsp+40h] [rbp-C0h] BYREF int v6; // [rsp+44h] [rbp-BCh] BYREF _BYTE v7[512]; // [rsp+50h] [rbp-B0h] BYREF result = sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0); if ( !(_DWORD)result ) { if ( (unsigned int)sub_180033FC0(a1, v7, 512, nullptr) || (unsigned int)sub_1800B7FF0(v7, "[playlist]", 10) ) { return 19; } else { while ( !(unsigned int)sub_180033FC0(a1, v7, 512, nullptr) ) { if ( (unsigned int)sub_1800B7FF0("File", v7, 4) ) { if ( (unsigned int)sub_1800B7FF0("Title", v7, 5) ) { if ( (unsigned int)sub_1800B7FF0("Length", v7, 6) ) { if ( (!(unsigned int)sub_1800B7FF0("NumberOfEntries", v7, 15) || !(unsigned int)sub_1800B7FF0("Version", v7, 7)) && (unsigned int)sub_180033FC0(a1, v7, 512, nullptr) ) { return 0; } } else { v6 = 0; if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) ) return 0; if ( (unsigned __int64)v5 >= 0x200 ) _report_rangecheckfailure(v4, v3); v7[v5] = 0; v6 = unknown_libname_28(v7); sub_180012590(a1, 8, (int)"LENGTH", (int)&v6, 4, 1, 0); } } else { if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) ) return 0; sub_180012590(a1, 8, (int)"TITLE", (int)v7, v5 + 1, 3, 0); } } else { if ( (unsigned int)sub_180033FC0(a1, v7, 512, &v5) ) return 0; sub_180012590(a1, 8, (int)"FILE", (int)v7, v5 + 1, 3, 0); } } return 0; } } return result; }