// // AutoBackupOptionsPopup::FLAlert_Clicked from 0x100983470 to 0x100983900 (1168 bytes) // // 2 xrefs: // > sub_100983990 @ 0x10098399c // > @ 0x100bd38f8 // // 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:39:01 +0000 // void __fastcall AutoBackupOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3) { __int64 v3; // rbx char v4; // al int v5; // eax int v6; // r14d const char *v7; // rdx char *v8; // rax const char *CString; // r14 size_t v10; // rax size_t v11; // r15 char *v12; // r12 std::error_code *data; // rsi char *v14; // r13 char *v15; // r15 __int64 v16; // r14 unsigned __int64 v17; // rcx std::__fs::filesystem::path *v18; // rbx unsigned int v19; // eax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v20; // dl std::string::size_type size; // rax unsigned int v22; // ecx size_t v23; // rbx unsigned __int64 v24; // r15 size_t v25; // r12 char v26; // r15 std::__fs::filesystem::path *v27; // r13 size_t v28; // rbx char *v29; // r13 size_t v30; // rbx char *v31; // rax void *v32; // rdi void (__fastcall ***v33)(_QWORD); // rdi __int128 v34; // [rsp+8h] [rbp-D8h] BYREF void *v35; // [rsp+18h] [rbp-C8h] size_t v36; // [rsp+20h] [rbp-C0h] __int64 v37; // [rsp+28h] [rbp-B8h] unsigned __int64 v38; // [rsp+30h] [rbp-B0h] char *v39; // [rsp+38h] [rbp-A8h] __int128 v40; // [rsp+40h] [rbp-A0h] BYREF void *v41; // [rsp+50h] [rbp-90h] unsigned int v42; // [rsp+58h] [rbp-88h] int v43; // [rsp+5Ch] [rbp-84h] __int128 __dst; // [rsp+60h] [rbp-80h] BYREF std::__fs::filesystem::path *v45; // [rsp+70h] [rbp-70h] void *v46[2]; // [rsp+80h] [rbp-60h] BYREF void *__p; // [rsp+90h] [rbp-50h] std::string v48; // [rsp+A0h] [rbp-40h] BYREF if ( !a3 ) return; v3 = a1; sub_1005BDF10((__int64)&v48); if ( (*(_BYTE *)&v48.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v48.__r_.__value_.__l.__size_ ) goto LABEL_10; v4 = *(_BYTE *)(v48.__r_.__value_.__r.__words[2] + v48.__r_.__value_.__l.__size_ - 1); if ( v4 == 47 ) goto LABEL_10; } else { if ( !*(_BYTE *)&v48.__r_.__value_.__s.0 ) goto LABEL_10; v4 = *((_BYTE *)&v48.__r_.__value_.__l.0 + (*(_BYTE *)&v48.__r_.__value_.__l.0 >> 1)); if ( v4 == 47 ) goto LABEL_10; } if ( v4 != 92 ) std::string::append(&v48, "/"); LABEL_10: if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 ) { v5 = sub_1005BE030(); LOWORD(v46[0]) = 0; v6 = sub_100981DA0(&v48, v5, (unsigned __int8 *)v46, 0); if ( ((__int64)v46[0] & 1) != 0 ) operator delete(__p); v7 = "s"; if ( v6 == 1 ) v7 = ""; v8 = sub_10088E820("Removed %i backup%s", v6, v7); CString = (const char *)cocos2d::CCString::getCString((__int64)v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v30 = 26; if ( (v10 | 7) != 0x17 ) v30 = (v10 | 7) + 1; v12 = (char *)operator new(v30); v41 = v12; *(_QWORD *)&v40 = v30 | 1; *((_QWORD *)&v40 + 1) = v11; } else { LOBYTE(v40) = 2 * v10; v12 = (char *)&v40 + 1; if ( !v10 ) goto LABEL_60; } memmove(v12, CString, v11); LABEL_60: v12[v11] = 0; LOWORD(v34) = 0; v31 = TextAlertPopup::create(&v40, 0x96u, &v34, 0.5, 0.60000002); v3 = a1; (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v31, 100); if ( (v34 & 1) != 0 ) operator delete(v35); if ( (v40 & 1) != 0 ) operator delete(v41); goto LABEL_70; } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 ) { *(_OWORD *)v46 = 0; __p = nullptr; LOWORD(__dst) = 0; data = (std::error_code *)v46; sub_10097F2B0(&v48, v46, (unsigned __int8 *)&__dst); v37 = a1; if ( (__dst & 1) != 0 ) operator delete(v45); v14 = (char *)v46[0]; v15 = (char *)v46[1]; if ( v46[1] == v46[0] ) { LABEL_64: if ( v14 ) { v32 = v14; if ( v15 != v14 ) { do { v15 -= 128; sub_1009865F0(v46, v15); } while ( v15 != v14 ); v32 = v46[0]; } v46[1] = v14; operator delete(v32); } v3 = v37; goto LABEL_70; } v16 = 32; v17 = 0; while ( 1 ) { v19 = (unsigned __int8)v14[v16 - 8]; if ( (v19 & 1) != 0 ) { if ( *(_QWORD *)&v14[v16] ) { LABEL_31: v20 = v48.__r_.__value_.__s.0; if ( (*(_BYTE *)&v48.__r_.__value_.__s.0 & 1) != 0 ) size = v48.__r_.__value_.__l.__size_; else size = *(_BYTE *)&v48.__r_.__value_.__l.0 >> 1; v38 = v17; v22 = (unsigned __int8)v14[v16 - 32]; v42 = v22; if ( (v22 & 1) != 0 ) v23 = *(_QWORD *)&v14[v16 - 24]; else v23 = v22 >> 1; v24 = v23 + size; if ( v23 + size >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v25 = size; v39 = v14; if ( v24 > 0x16 ) { v43 = (int)v48.__r_.__value_.__l.0; v36 = v23; v28 = (v24 | 7) + 1; if ( (v24 | 7) == 0x17 ) v28 = 26; v27 = (std::__fs::filesystem::path *)operator new(v28); *(_QWORD *)&__dst = v28 | 1; v45 = v27; *((_QWORD *)&__dst + 1) = v24; v26 = v28 | 1; v23 = v36; v20 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)v43; } else { __dst = 0; v45 = nullptr; v26 = 2 * v24; LOBYTE(__dst) = v26; v27 = nullptr; } if ( (v26 & 1) == 0 ) v27 = (std::__fs::filesystem::path *)((char *)&__dst + 1); if ( v25 ) { data = (std::error_code *)((char *)&v48.__r_.__value_.__l.0 + 1); if ( (*(_BYTE *)&v20 & 1) != 0 ) data = (std::error_code *)v48.__r_.__value_.__l.__data_; memmove(v27, data, v25); } v29 = (char *)v27 + v25; if ( v23 ) { if ( (v42 & 1) != 0 ) data = *(std::error_code **)&v39[v16 - 16]; else data = (std::error_code *)&v39[v16 - 31]; memmove(v29, data, v23); } v29[v23] = 0; if ( (__dst & 1) != 0 ) { v18 = v45; remove(v45, data); operator delete(v18); } else { remove((const std::__fs::filesystem::path *)((char *)&__dst + 1), data); } v17 = v38; v14 = (char *)v46[0]; v15 = (char *)v46[1]; } } else if ( v19 >> 1 ) { goto LABEL_31; } ++v17; v16 += 128; if ( v17 >= (v15 - v14) >> 7 ) goto LABEL_64; } } LABEL_70: sub_100982A20(v3); v33 = *(void (__fastcall ****)(_QWORD))(v3 + 1024); if ( v33 ) (**v33)(v33); if ( (*(_BYTE *)&v48.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v48.__r_.__value_.__l.__data_); }