// // sub_1005BD440 from 0x1005bd440 to 0x1005bd542 (258 bytes) // // 1 xrefs: // > AutoSaveSettingsLayer::init @ 0x1005bcfbf // // 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_1005BD440(std::string *a1) { __int64 v1; // r14 __int64 v2; // rax std::string __str; // [rsp+0h] [rbp-60h] BYREF __int128 v4; // [rsp+20h] [rbp-40h] BYREF void *data; // [rsp+30h] [rbp-30h] char v6; // [rsp+38h] [rbp-28h] BYREF void *v7[4]; // [rsp+39h] [rbp-27h] BYREF memset(&__str, 0, sizeof(__str)); if ( (unsigned __int8)GameToolbox::showFolderDialog( (void (__fastcall *)(_QWORD))"Select Backup Directory", (unsigned __int8 *)&__str, 0.0) ) { std::string::operator=(a1 + 43, &__str); if ( (*(_BYTE *)&a1[43].__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v4, a1[43].__r_.__value_.__l.__data_, a1[43].__r_.__value_.__l.__size_); } else { data = a1[43].__r_.__value_.__l.__data_; v4 = *(_OWORD *)&a1[43].__r_.__value_.__l.0; } v1 = *(_QWORD *)(GameManager::sharedState() + 432); if ( v1 ) { v2 = sub_10088E600(&v4); v6 = 26; strcpy((char *)v7, "autoBackupDir"); cocos2d::CCDictionary::setObject(v1, v2, &v6); if ( (v6 & 1) != 0 ) operator delete(*(void **)((char *)&v7[1] + 7)); } if ( (v4 & 1) != 0 ) operator delete(data); sub_1005BD820(a1); } if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source