// // AutoSaveSettingsLayer::onOpenBackupDir from 0x14009c830 to 0x14009c9c3 (403 bytes) // // 2 xrefs: // > AutoSaveSettingsLayer::init @ 0x14009bc0a // > @ 0x140912f20 // // 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 11:26:05 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall AutoSaveSettingsLayer::onOpenBackupDir(__int64 *a1) { const CHAR *v2; // rcx DWORD FileAttributesA; // eax __int64 v4; // rbx __int64 v5; // rdx __int64 v6; // r8 __int64 v7; // rax const CHAR *v8; // rcx DWORD v9; // eax const CHAR *v10; // r8 __int128 v11; // [rsp+30h] [rbp-29h] BYREF __int64 v12; // [rsp+40h] [rbp-19h] __int64 v13; // [rsp+48h] [rbp-11h] __int128 *v14; // [rsp+50h] [rbp-9h] LPCSTR lpFile[2]; // [rsp+60h] [rbp+7h] BYREF __int64 v16; // [rsp+70h] [rbp+17h] unsigned __int64 v17; // [rsp+78h] [rbp+1Fh] LPCSTR lpFileName[4]; // [rsp+80h] [rbp+27h] BYREF AutoSaveSettingsLayer::getCustomBackupDirectory(lpFileName); if ( !lpFileName[2] ) goto LABEL_7; v2 = (const CHAR *)lpFileName; if ( lpFileName[3] > (LPCSTR)0xF ) v2 = lpFileName[0]; FileAttributesA = GetFileAttributesA(v2); if ( FileAttributesA == -1 || (FileAttributesA & 0x10) == 0 ) { v14 = &v11; v11 = 0; v12 = 0; v13 = 15; LOBYTE(v11) = 0; *(_OWORD *)lpFile = 0; v16 = 0; v17 = 0; lpFile[0] = (LPCSTR)sub_14003D460(0x20u); v16 = 19; v17 = 31; strcpy((char *)lpFile[0], "Directory not found"); v4 = *a1; v7 = TextAlertPopup::create(lpFile, v5, v6, 150, &v11); (*(void (__fastcall **)(__int64 *, __int64, __int64))(v4 + 456))(a1, v7, 100); } else { LABEL_7: AutoSaveSettingsLayer::getBackupDirectory(lpFile); v8 = (const CHAR *)lpFile; if ( v17 > 0xF ) v8 = lpFile[0]; v9 = GetFileAttributesA(v8); if ( v9 != -1 && (v9 & 0x10) != 0 ) { v10 = (const CHAR *)lpFile; if ( v17 > 0xF ) v10 = lpFile[0]; ShellExecuteA(nullptr, "open", v10, nullptr, nullptr, 10); } sub_14003D310((__int64)lpFile); } sub_14003D310((__int64)lpFileName); }