{"type": "func", "start": 5369536704, "end": 5369537045, "name": "AutoBackupPopup::reloadFiles", "pseudocode": "// \n// AutoBackupPopup::reloadFiles from 0x1400ca0c0 to 0x1400ca215 (341 bytes)\n// \n// 3 xrefs:\n// > AutoBackupPopup::init @ 0x1400ca064\n// > AutoBackupPopup::backupsChanged @ 0x1400ca860\n// > <???> @ 0x140913fa0\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 11:26:22 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall AutoBackupPopup::reloadFiles(__int64 a1)\n{\n  __int128 *p_Src; // rax\n  __int128 *v3; // rax\n  void *v4; // rcx\n  __int128 Src; // [rsp+38h] [rbp-50h] BYREF\n  __int64 v7; // [rsp+48h] [rbp-40h]\n  unsigned __int64 v8; // [rsp+50h] [rbp-38h]\n  void *Block[2]; // [rsp+58h] [rbp-30h]\n  __m128i si128; // [rsp+68h] [rbp-20h]\n\n  AutoSaveSettingsLayer::getBackupDirectory(&Src);\n  if ( v7 )\n  {\n    p_Src = &Src;\n    if ( v8 > 0xF )\n      p_Src = (__int128 *)Src;\n    if ( *((_BYTE *)p_Src + v7 - 1) != 47 )\n    {\n      v3 = &Src;\n      if ( v8 > 0xF )\n        v3 = (__int128 *)Src;\n      if ( *((_BYTE *)v3 + v7 - 1) != 92 )\n        sub_140044D80(&Src, \"/\", 1u);\n    }\n  }\n  sub_140059C40(a1 + 800, (__int64)&Src);\n  sub_14003D310((__int64)&Src);\n  *(_OWORD *)Block = 0;\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  sub_1400CCDF0((void *)(a1 + 800));\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v4);\n  }\n  return AutoBackupPopup::assignRevs(a1);\n}", "assembly": "; \n; AutoBackupPopup::reloadFiles from 0x1400ca0c0 to 0x1400ca215 (341 bytes)\n; \n; 3 xrefs:\n; > AutoBackupPopup::init @ 0x1400ca064\n; > AutoBackupPopup::backupsChanged @ 0x1400ca860\n; > <???> @ 0x140913fa0\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 11:26:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400ca0c0\npush    rdi                                                            ; +0x5, 0x1400ca0c5\nsub     rsp, 80h                                                       ; +0x6, 0x1400ca0c6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400ca0cd\nxor     rax, rsp                                                       ; +0x14, 0x1400ca0d4\nmov     [rsp+88h+var_10], rax                                          ; +0x17, 0x1400ca0d7\nmov     rdi, rcx                                                       ; +0x1c, 0x1400ca0dc\nmov     [rsp+88h+var_58], 0                                            ; +0x1f, 0x1400ca0df\nlea     rcx, [rsp+88h+Src]                                             ; +0x27, 0x1400ca0e7\ncall    AutoSaveSettingsLayer__getBackupDirectory                      ; +0x2c, 0x1400ca0ec\nmov     [rsp+88h+var_58], 1                                            ; +0x31, 0x1400ca0f1\nmov     rcx, [rsp+88h+var_40]                                          ; +0x39, 0x1400ca0f9\ntest    rcx, rcx                                                       ; +0x3e, 0x1400ca0fe\njz      short loc_1400CA14C                                            ; +0x41, 0x1400ca101\nlea     rax, [rsp+88h+Src]                                             ; +0x43, 0x1400ca103\nmov     rdx, qword ptr [rsp+88h+Src]                                   ; +0x48, 0x1400ca108\nmov     r9, [rsp+88h+var_38]                                           ; +0x4d, 0x1400ca10d\ncmp     r9, 0Fh                                                        ; +0x52, 0x1400ca112\ncmova   rax, rdx                                                       ; +0x56, 0x1400ca116\ncmp     byte ptr [rcx+rax-1], 2Fh ; '/'                                ; +0x5a, 0x1400ca11a\njz      short loc_1400CA14C                                            ; +0x5f, 0x1400ca11f\nlea     rax, [rsp+88h+Src]                                             ; +0x61, 0x1400ca121\ncmp     r9, 0Fh                                                        ; +0x66, 0x1400ca126\ncmova   rax, rdx                                                       ; +0x6a, 0x1400ca12a\ncmp     byte ptr [rcx+rax-1], 5Ch ; '\\'                                ; +0x6e, 0x1400ca12e\njz      short loc_1400CA14C                                            ; +0x73, 0x1400ca133\nmov     r8d, 1; Size                                                   ; +0x75, 0x1400ca135\nlea     rdx, asc_140725510; \"/\"                                        ; +0x7b, 0x1400ca13b\nlea     rcx, [rsp+88h+Src]; Src                                        ; +0x82, 0x1400ca142\ncall    sub_140044D80                                                  ; +0x87, 0x1400ca147\nlea     rdx, [rsp+88h+Src]                                             ; +0x8c, 0x1400ca14c\nlea     rcx, [rdi+320h]                                                ; +0x91, 0x1400ca151\ncall    sub_140059C40                                                  ; +0x98, 0x1400ca158\nnop                                                                    ; +0x9d, 0x1400ca15d\nlea     rcx, [rsp+88h+Src]                                             ; +0x9e, 0x1400ca15e\ncall    sub_14003D310                                                  ; +0xa3, 0x1400ca163\nxorps   xmm0, xmm0                                                     ; +0xa8, 0x1400ca168\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xab, 0x1400ca16b\nmovdqa  xmm1, cs:Size                                                  ; +0xb0, 0x1400ca170\nmovdqu  [rsp+88h+var_20], xmm1                                         ; +0xb8, 0x1400ca178\nmov     byte ptr [rsp+88h+Block], 0                                    ; +0xbe, 0x1400ca17e\nlea     rdx, [rdi+340h]                                                ; +0xc3, 0x1400ca183\nlea     r8, [rsp+88h+Block]                                            ; +0xca, 0x1400ca18a\nlea     rcx, [rdi+320h]; Src                                           ; +0xcf, 0x1400ca18f\ncall    sub_1400CCDF0                                                  ; +0xd6, 0x1400ca196\nnop                                                                    ; +0xdb, 0x1400ca19b\nmov     rdx, qword ptr [rsp+88h+var_20+8]                              ; +0xdc, 0x1400ca19c\ncmp     rdx, 0Fh                                                       ; +0xe1, 0x1400ca1a1\njbe     short loc_1400CA1EF                                            ; +0xe5, 0x1400ca1a5\ninc     rdx                                                            ; +0xe7, 0x1400ca1a7\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0xea, 0x1400ca1aa\nmov     rax, rcx                                                       ; +0xef, 0x1400ca1af\ncmp     rdx, 1000h                                                     ; +0xf2, 0x1400ca1b2\njb      short loc_1400CA1EA                                            ; +0xf9, 0x1400ca1b9\nadd     rdx, 27h ; '''                                                 ; +0xfb, 0x1400ca1bb\nmov     rcx, [rcx-8]                                                   ; +0xff, 0x1400ca1bf\nsub     rax, rcx                                                       ; +0x103, 0x1400ca1c3\nsub     rax, 8                                                         ; +0x106, 0x1400ca1c6\ncmp     rax, 1Fh                                                       ; +0x10a, 0x1400ca1ca\njbe     short loc_1400CA1EA                                            ; +0x10e, 0x1400ca1ce\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x110, 0x1400ca1d0\nxor     r9d, r9d; LineNo                                               ; +0x119, 0x1400ca1d9\nxor     r8d, r8d; FileName                                             ; +0x11c, 0x1400ca1dc\nxor     edx, edx; FunctionName                                         ; +0x11f, 0x1400ca1df\nxor     ecx, ecx; Expression                                           ; +0x121, 0x1400ca1e1\ncall    cs:_invoke_watson                                              ; +0x123, 0x1400ca1e3\nalign 2                                                                ; +0x129, 0x1400ca1e9\ncall    j_j_free                                                       ; +0x12a, 0x1400ca1ea\nmov     rcx, rdi                                                       ; +0x12f, 0x1400ca1ef\ncall    AutoBackupPopup__assignRevs                                    ; +0x132, 0x1400ca1f2\nmov     rcx, [rsp+88h+var_10]                                          ; +0x137, 0x1400ca1f7\nxor     rcx, rsp; StackCookie                                          ; +0x13c, 0x1400ca1fc\ncall    __security_check_cookie                                        ; +0x13f, 0x1400ca1ff\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x144, 0x1400ca204\nadd     rsp, 80h                                                       ; +0x14c, 0x1400ca20c\npop     rdi                                                            ; +0x153, 0x1400ca213\nretn                                                                   ; +0x154, 0x1400ca214", "xrefs": ["AutoBackupPopup::init @ 0x1400ca064", "AutoBackupPopup::backupsChanged @ 0x1400ca860", "<???> @ 0x140913fa0"], "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"}