// // sub_10066A240 from 0x10066a240 to 0x10066a2e0 (160 bytes) // // 2 xrefs: // > SFXBrowser::onExitFolder @ 0x10042e08a // > SFXBrowser::setupSFXBrowser @ 0x100430272 // // 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:35:00 +0000 // __int64 __fastcall sub_10066A240(__int64 a1, int a2, unsigned int a3) { __int64 v4; // r12 __int64 result; // rax unsigned int v6; // r13d __int64 v7; // rax int v8; // ecx int v9; // ecx v4 = *(_QWORD *)(a1 + 64); result = 0; if ( v4 != 0 && (int)a3 > 0 ) { if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 64)) ) { v6 = 0; while ( 1 ) { v7 = sub_1007FEFE0(v4, v6); v8 = *(_DWORD *)(a1 + 140); if ( !v8 ) break; if ( v8 == 4 ) { v9 = *(_DWORD *)(v7 + 76); } else { v9 = *(_DWORD *)(v7 + 76); if ( v9 <= 0 ) break; } LABEL_9: if ( v9 == a2 ) return (unsigned int)(int)(float)(int)(v6 / a3); if ( ++v6 >= (unsigned int)sub_1007FEF90(v4) ) goto LABEL_11; } v9 = *(_DWORD *)(v7 + 56); goto LABEL_9; } LABEL_11: v6 = 0; return (unsigned int)(int)(float)(int)(v6 / a3); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source