//
// sub_100440CF0 from 0x100440cf0 to 0x100440da3 (179 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009388a0
//
// 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
//
bool __fastcall sub_100440CF0(__int64 a1, __int64 a2, int a3, int a4)
{
unsigned int v4; // ebx
SFXFolderObject *v5; // r14
SFXSearchResult *v6; // r12
v4 = a3 - 23;
if ( (unsigned int)(a3 - 23) < 2 && a4 == 1 )
{
v5 = *(SFXFolderObject **)(a2 + 560);
if ( v5->m_folder )
{
v6 = SFXSearchResult::create(*(_DWORD *)(a1 + 136));
SFXSearchResult::setActiveFolder(v6, v5);
((void (__fastcall *)(SFXSearchResult *, _QWORD))v6->updateObjects)(v6, *(unsigned int *)(a1 + 152));
v6->m_startIndex = 0;
SFXBrowser::setupList((SFXBrowser *)(a1 - 640), v6);
}
else
{
*(_DWORD *)(a1 + 136) = v5->m_sfxID;
*(_BYTE *)(a1 + 149) = 1;
CustomListView::reloadAll(*(CustomListView **)(*(_QWORD *)(a1 + 40) + 544LL));
}
}
return v4 < 2;
}