//
// AutoBackupPopup::reloadFiles from 0x10097e210 to 0x10097e2d0 (192 bytes)
//
// 3 xrefs:
// > sub_10097D570 @ 0x10097db84
// > AutoBackupPopup::backupsChanged @ 0x100980db9
// > sub_100980DD0 @ 0x100980de3
//
// 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:38:58 +0000
//
__int64 __fastcall AutoBackupPopup::reloadFiles(__int64 a1)
{
char v1; // al
std::string v3; // [rsp+8h] [rbp-28h] BYREF
sub_1005BDF10((__int64)&v3);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v3.__r_.__value_.__l.__size_ )
goto LABEL_9;
v1 = *(_BYTE *)(v3.__r_.__value_.__r.__words[2] + v3.__r_.__value_.__l.__size_ - 1);
if ( v1 == 47 )
goto LABEL_9;
}
else
{
if ( !*(_BYTE *)&v3.__r_.__value_.__s.0 )
goto LABEL_9;
v1 = *((_BYTE *)&v3.__r_.__value_.__l.0 + (*(_BYTE *)&v3.__r_.__value_.__l.0 >> 1));
if ( v1 == 47 )
goto LABEL_9;
}
if ( v1 != 92 )
std::string::append(&v3, "/");
LABEL_9:
if ( (*(_BYTE *)(a1 + 800) & 1) != 0 )
operator delete(*(void **)(a1 + 816));
*(std::string *)(a1 + 800) = v3;
*(_WORD *)&v3.__r_.__value_.__l.0 = 0;
sub_10097F2B0(a1 + 800, a1 + 824, &v3);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v3.__r_.__value_.__l.__data_);
return sub_100980010(a1);
}