// // sub_1005BDF10 from 0x1005bdf10 to 0x1005bdfe3 (211 bytes) // // 8 xrefs: // > sub_1005BDE20 @ 0x1005bde30 // > sub_10097D570 @ 0x10097d58e // > AutoBackupPopup::backupDirectory @ 0x10097dbca // > AutoBackupPopup::reloadFiles @ 0x10097e222 // > sub_100982A20 @ 0x100982a43 // > sub_100982BC0 @ 0x100982be3 // > sub_100982F10 @ 0x100982f3a // > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x100983496 // // 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 // __int64 __fastcall sub_1005BDF10(__int64 a1) { std::string *v1; // rax std::string v3; // [rsp+8h] [rbp-38h] BYREF __int128 v4; // [rsp+20h] [rbp-20h] BYREF void *__p; // [rsp+30h] [rbp-10h] AutoSaveSettingsLayer::getCustomBackupDirectory(&v4); if ( (v4 & 1) != 0 ) { if ( !*((_QWORD *)&v4 + 1) ) goto LABEL_7; } else if ( !((unsigned __int8)v4 >> 1) ) { goto LABEL_7; } if ( sub_1004F5380((__int64)&v4) ) { *(_QWORD *)(a1 + 16) = __p; *(_OWORD *)a1 = v4; return a1; } LABEL_7: sub_1004F5360(&v3); v1 = std::string::append(&v3, "auto_backups"); *(std::string *)a1 = *v1; *(_OWORD *)&v1->__r_.__value_.__l.0 = 0; v1->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v3.__r_.__value_.__l.__data_); if ( (*(_BYTE *)a1 & 1) != 0 ) { mkdir(*(const char **)(a1 + 16), 0x1EDu); if ( (v4 & 1) == 0 ) return a1; goto LABEL_13; } mkdir((const char *)(a1 + 1), 0x1EDu); if ( (v4 & 1) != 0 ) LABEL_13: operator delete(__p); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source