{"type": "func", "start": 4304921104, "end": 4304921296, "name": "AutoBackupPopup::reloadFiles", "pseudocode": "// \n// AutoBackupPopup::reloadFiles from 0x10097e210 to 0x10097e2d0 (192 bytes)\n// \n// 3 xrefs:\n// > sub_10097D570 @ 0x10097db84\n// > AutoBackupPopup::backupsChanged @ 0x100980db9\n// > sub_100980DD0 @ 0x100980de3\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:38:58 +0000\n// \n\n__int64 __fastcall AutoBackupPopup::reloadFiles(__int64 a1)\n{\n  char v1; // al\n  std::string v3; // [rsp+8h] [rbp-28h] BYREF\n\n  sub_1005BDF10((__int64)&v3);\n  if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    if ( !v3.__r_.__value_.__l.__size_ )\n      goto LABEL_9;\n    v1 = *(_BYTE *)(v3.__r_.__value_.__r.__words[2] + v3.__r_.__value_.__l.__size_ - 1);\n    if ( v1 == 47 )\n      goto LABEL_9;\n  }\n  else\n  {\n    if ( !*(_BYTE *)&v3.__r_.__value_.__s.0 )\n      goto LABEL_9;\n    v1 = *((_BYTE *)&v3.__r_.__value_.__l.0 + (*(_BYTE *)&v3.__r_.__value_.__l.0 >> 1));\n    if ( v1 == 47 )\n      goto LABEL_9;\n  }\n  if ( v1 != 92 )\n    std::string::append(&v3, \"/\");\nLABEL_9:\n  if ( (*(_BYTE *)(a1 + 800) & 1) != 0 )\n    operator delete(*(void **)(a1 + 816));\n  *(std::string *)(a1 + 800) = v3;\n  *(_WORD *)&v3.__r_.__value_.__l.0 = 0;\n  sub_10097F2B0(a1 + 800, a1 + 824, &v3);\n  if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v3.__r_.__value_.__l.__data_);\n  return sub_100980010(a1);\n}", "assembly": "; \n; AutoBackupPopup::reloadFiles from 0x10097e210 to 0x10097e2d0 (192 bytes)\n; \n; 3 xrefs:\n; > sub_10097D570 @ 0x10097db84\n; > AutoBackupPopup::backupsChanged @ 0x100980db9\n; > sub_100980DD0 @ 0x100980de3\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:38:58 +0000\n; \npush    rbp                                                            ; +0x0, 0x10097e210\nmov     rbp, rsp                                                       ; +0x1, 0x10097e211\npush    r14                                                            ; +0x4, 0x10097e214\npush    rbx                                                            ; +0x6, 0x10097e216\nsub     rsp, 20h                                                       ; +0x7, 0x10097e217\nmov     rbx, rdi                                                       ; +0xb, 0x10097e21b\nlea     rdi, [rbp+var_28]                                              ; +0xe, 0x10097e21e\ncall    sub_1005BDF10                                                  ; +0x12, 0x10097e222\nmovzx   eax, byte ptr [rbp+var_28.__r_.__value_]                       ; +0x17, 0x10097e227\ntest    al, 1                                                          ; +0x1b, 0x10097e22b\njnz     short loc_10097E241                                            ; +0x1d, 0x10097e22d\ntest    rax, rax                                                       ; +0x1f, 0x10097e22f\njz      short loc_10097E26B                                            ; +0x22, 0x10097e232\nshr     eax, 1                                                         ; +0x24, 0x10097e234\nmovzx   eax, byte ptr [rbp+rax+var_28.__r_.__value_]                   ; +0x26, 0x10097e236\ncmp     al, 2Fh ; '/'                                                  ; +0x2b, 0x10097e23b\njnz     short loc_10097E257                                            ; +0x2d, 0x10097e23d\njmp     short loc_10097E26B                                            ; +0x2f, 0x10097e23f\nmov     rax, qword ptr [rbp+var_28.__r_.__value_+8]                    ; +0x31, 0x10097e241\ntest    rax, rax                                                       ; +0x35, 0x10097e245\njz      short loc_10097E26B                                            ; +0x38, 0x10097e248\nmov     rcx, qword ptr [rbp+var_28.__r_.__value_+10h]                  ; +0x3a, 0x10097e24a\nmovzx   eax, byte ptr [rcx+rax-1]                                      ; +0x3e, 0x10097e24e\ncmp     al, 2Fh ; '/'                                                  ; +0x43, 0x10097e253\njz      short loc_10097E26B                                            ; +0x45, 0x10097e255\ncmp     al, 5Ch ; '\\'                                                  ; +0x47, 0x10097e257\njz      short loc_10097E26B                                            ; +0x49, 0x10097e259\nlea     rsi, asc_100A649F8; \"/\"                                        ; +0x4b, 0x10097e25b\nlea     rdi, [rbp+var_28]; this                                        ; +0x52, 0x10097e262\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x56, 0x10097e266\nlea     r14, [rbx+320h]                                                ; +0x5b, 0x10097e26b\ntest    byte ptr [rbx+320h], 1                                         ; +0x62, 0x10097e272\njz      short loc_10097E287                                            ; +0x69, 0x10097e279\nmov     rdi, [rbx+330h]; __p                                           ; +0x6b, 0x10097e27b\ncall    __ZdlPv; operator delete(void *)                               ; +0x72, 0x10097e282\nmov     rax, qword ptr [rbp+var_28.__r_.__value_+10h]                  ; +0x77, 0x10097e287\nmov     [r14+10h], rax                                                 ; +0x7b, 0x10097e28b\nmovups  xmm0, xmmword ptr [rbp+var_28.__r_.__value_]                   ; +0x7f, 0x10097e28f\nmovups  xmmword ptr [r14], xmm0                                        ; +0x83, 0x10097e293\nlea     rsi, [rbx+338h]                                                ; +0x87, 0x10097e297\nmov     word ptr [rbp+var_28.__r_.__value_], 0                         ; +0x8e, 0x10097e29e\nlea     rdx, [rbp+var_28]                                              ; +0x94, 0x10097e2a4\nmov     rdi, r14                                                       ; +0x98, 0x10097e2a8\ncall    sub_10097F2B0                                                  ; +0x9b, 0x10097e2ab\ntest    byte ptr [rbp+var_28.__r_.__value_], 1                         ; +0xa0, 0x10097e2b0\njz      short loc_10097E2BF                                            ; +0xa4, 0x10097e2b4\nmov     rdi, qword ptr [rbp+var_28.__r_.__value_+10h]; __p             ; +0xa6, 0x10097e2b6\ncall    __ZdlPv; operator delete(void *)                               ; +0xaa, 0x10097e2ba\nmov     rdi, rbx                                                       ; +0xaf, 0x10097e2bf\ncall    sub_100980010                                                  ; +0xb2, 0x10097e2c2\nadd     rsp, 20h                                                       ; +0xb7, 0x10097e2c7\npop     rbx                                                            ; +0xbb, 0x10097e2cb\npop     r14                                                            ; +0xbc, 0x10097e2cc\npop     rbp                                                            ; +0xbe, 0x10097e2ce\nretn                                                                   ; +0xbf, 0x10097e2cf", "xrefs": ["sub_10097D570 @ 0x10097db84", "AutoBackupPopup::backupsChanged @ 0x100980db9", "sub_100980DD0 @ 0x100980de3"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}