//
// sub_10042F250 from 0x10042f250 to 0x10042f351 (257 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x10042d7dd
//
// 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:30:21 +0000
//
void __fastcall sub_10042F250(__int64 a1)
{
__int64 v1; // r14
int v2; // r15d
__int64 v3; // rax
__int64 v4; // rbx
_WORD v5[8]; // [rsp+8h] [rbp-48h] BYREF
void *__p; // [rsp+18h] [rbp-38h]
__int128 *v7; // [rsp+20h] [rbp-30h] BYREF
__int128 v8; // [rsp+28h] [rbp-28h] BYREF
if ( *(_QWORD *)(GameManager::sharedState() + 552)
&& *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) )
{
v1 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL);
v8 = 0;
v7 = &v8;
v2 = *(_DWORD *)(v1 + 632);
v3 = GameManager::sharedState();
if ( v2 == *(_DWORD *)(v3 + 660) - *(_DWORD *)(v3 + 664) && &v7 != (__int128 **)(v1 + 640) )
sub_1000E0F70(&v7, *(_QWORD **)(v1 + 640), (_QWORD *)(v1 + 648));
v5[0] = 0;
v4 = SFXFolderPickerPopup::create(2, v5, &v7, a1 + 704, 0);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
sub_10001ADF0((__int64)&v7, (_QWORD *)v8);
}
}