//
// sub_1005BD5B0 from 0x1005bd5b0 to 0x1005bd684 (212 bytes)
//
// 1 xrefs:
// > AutoSaveSettingsLayer::init @ 0x1005bd07f
//
// 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:32:45 +0000
//
void __fastcall sub_1005BD5B0(__int64 a1)
{
char *v1; // rax
__int128 v2; // [rsp+0h] [rbp-50h] BYREF
void *v3; // [rsp+10h] [rbp-40h]
_BYTE v4[8]; // [rsp+18h] [rbp-38h] BYREF
__int64 v5; // [rsp+20h] [rbp-30h]
void *__p; // [rsp+28h] [rbp-28h]
__int128 v7[2]; // [rsp+30h] [rbp-20h] BYREF
AutoSaveSettingsLayer::getCustomBackupDirectory(v4);
if ( (v4[0] & 1) != 0 )
{
if ( !v5 )
goto LABEL_6;
}
else if ( !(v4[0] >> 1) )
{
LABEL_6:
sub_1005BDE20();
goto LABEL_7;
}
if ( sub_1004F5380((__int64)v4) )
goto LABEL_6;
strcpy((char *)v7, "&Directory not found");
LOWORD(v2) = 0;
v1 = TextAlertPopup::create(v7, 0x96u, &v2, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v1, 100);
if ( (v2 & 1) != 0 )
operator delete(v3);
if ( (v7[0] & 1) != 0 )
operator delete(*(void **)&v7[1]);
LABEL_7:
if ( (v4[0] & 1) != 0 )
operator delete(__p);
}