{"type": "func", "start": 5369547536, "end": 5369547652, "name": "AutoBackupPopup::backupDirectory", "pseudocode": "// \n// AutoBackupPopup::backupDirectory from 0x1400ccb10 to 0x1400ccb84 (116 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::doAutoBackup @ 0x140409705\n// > <???> @ 0x1409140d8\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall AutoBackupPopup::backupDirectory(_QWORD *Src)\n{\n  __int64 v2; // rax\n  _QWORD *v3; // rcx\n  unsigned __int64 v4; // rdx\n  _QWORD *v5; // rcx\n\n  AutoSaveSettingsLayer::getBackupDirectory(Src);\n  v2 = Src[2];\n  if ( v2 )\n  {\n    v3 = Src;\n    v4 = Src[3];\n    if ( v4 > 0xF )\n      v3 = (_QWORD *)*Src;\n    if ( *((_BYTE *)v3 + v2 - 1) != 47 )\n    {\n      v5 = Src;\n      if ( v4 > 0xF )\n        v5 = (_QWORD *)*Src;\n      if ( *((_BYTE *)v5 + v2 - 1) != 92 )\n        sub_140044D80(Src, \"/\", 1u);\n    }\n  }\n  return Src;\n}", "assembly": "; \n; AutoBackupPopup::backupDirectory from 0x1400ccb10 to 0x1400ccb84 (116 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::doAutoBackup @ 0x140409705\n; > <???> @ 0x1409140d8\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:23 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x1400ccb10\npush    rbx                                                            ; +0x5, 0x1400ccb15\nsub     rsp, 30h                                                       ; +0x6, 0x1400ccb16\nmov     rbx, rcx                                                       ; +0xa, 0x1400ccb1a\nmov     [rsp+38h+var_18], 0                                            ; +0xd, 0x1400ccb1d\ncall    AutoSaveSettingsLayer__getBackupDirectory                      ; +0x15, 0x1400ccb25\nmov     [rsp+38h+var_18], 1                                            ; +0x1a, 0x1400ccb2a\nmov     rax, [rbx+10h]                                                 ; +0x22, 0x1400ccb32\ntest    rax, rax                                                       ; +0x26, 0x1400ccb36\njz      short loc_1400CCB7A                                            ; +0x29, 0x1400ccb39\nmov     rcx, rbx                                                       ; +0x2b, 0x1400ccb3b\nmov     rdx, [rbx+18h]                                                 ; +0x2e, 0x1400ccb3e\ncmp     rdx, 0Fh                                                       ; +0x32, 0x1400ccb42\njbe     short loc_1400CCB4B                                            ; +0x36, 0x1400ccb46\nmov     rcx, [rbx]                                                     ; +0x38, 0x1400ccb48\ncmp     byte ptr [rax+rcx-1], 2Fh ; '/'                                ; +0x3b, 0x1400ccb4b\njz      short loc_1400CCB7A                                            ; +0x40, 0x1400ccb50\nmov     rcx, rbx                                                       ; +0x42, 0x1400ccb52\ncmp     rdx, 0Fh                                                       ; +0x45, 0x1400ccb55\njbe     short loc_1400CCB5E                                            ; +0x49, 0x1400ccb59\nmov     rcx, [rbx]                                                     ; +0x4b, 0x1400ccb5b\ncmp     byte ptr [rax+rcx-1], 5Ch ; '\\'                                ; +0x4e, 0x1400ccb5e\njz      short loc_1400CCB7A                                            ; +0x53, 0x1400ccb63\nmov     r8d, 1; Size                                                   ; +0x55, 0x1400ccb65\nlea     rdx, asc_140725510; \"/\"                                        ; +0x5b, 0x1400ccb6b\nmov     rcx, rbx; Src                                                  ; +0x62, 0x1400ccb72\ncall    sub_140044D80                                                  ; +0x65, 0x1400ccb75\nmov     rax, rbx                                                       ; +0x6a, 0x1400ccb7a\nadd     rsp, 30h                                                       ; +0x6d, 0x1400ccb7d\npop     rbx                                                            ; +0x71, 0x1400ccb81\nretn                                                                   ; +0x72, 0x1400ccb82\ndb 0CCh                                                                ; +0x73, 0x1400ccb83", "xrefs": ["LevelEditorLayer::doAutoBackup @ 0x140409705", "<???> @ 0x1409140d8"], "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"}