{"type": "func", "start": 4296394592, "end": 4296394890, "name": "DS_Dictionary::getAllKeys", "pseudocode": "// \n// DS_Dictionary::getAllKeys from 0x10015c760 to 0x10015c88a (298 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::replayPlatformerSaveJournal @ 0x10054d026\n// > sub_10054D820 @ 0x10054d888\n// > sub_10054DDE0 @ 0x10054de49\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:25:06 +0000\n// \n\n__int64 __fastcall DS_Dictionary::getAllKeys(__int64 a1, __int64 a2)\n{\n  const char *v2; // r12\n  size_t v3; // rax\n  size_t v4; // r13\n  char *v5; // rbx\n  size_t v6; // r15\n  _QWORD __dst[2]; // [rsp+0h] [rbp-50h] BYREF\n  void *__p; // [rsp+10h] [rbp-40h]\n  __int64 i; // [rsp+18h] [rbp-38h] BYREF\n  __int64 v11; // [rsp+20h] [rbp-30h]\n\n  *(_OWORD *)a1 = 0;\n  v11 = a1;\n  *(_QWORD *)(a1 + 16) = 0;\n  for ( i = sub_1007185E0(*(_QWORD *)(a2 + 216) - 8LL); sub_100718020(&i); i = sub_1007183B0(__dst) )\n  {\n    v2 = (const char *)sub_1007184B0(&i);\n    v3 = strlen(v2);\n    if ( v3 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100003630();\n    v4 = v3;\n    if ( v3 >= 0x17 )\n    {\n      v6 = (v3 | 7) + 1;\n      if ( (v3 | 7) == 0x17 )\n        v6 = 26;\n      v5 = (char *)operator new(v6);\n      __p = v5;\n      __dst[0] = v6 | 1;\n      __dst[1] = v4;\nLABEL_10:\n      memmove(v5, v2, v4);\n      goto LABEL_11;\n    }\n    LOBYTE(__dst[0]) = 2 * v3;\n    v5 = (char *)__dst + 1;\n    if ( v3 )\n      goto LABEL_10;\nLABEL_11:\n    v5[v4] = 0;\n    sub_1001593B0(v11, (__int64)__dst);\n    if ( (__dst[0] & 1) != 0 )\n      operator delete(__p);\n    __dst[0] = sub_1007183B0(&i);\n  }\n  return v11;\n}", "assembly": "; \n; DS_Dictionary::getAllKeys from 0x10015c760 to 0x10015c88a (298 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::replayPlatformerSaveJournal @ 0x10054d026\n; > sub_10054D820 @ 0x10054d888\n; > sub_10054DDE0 @ 0x10054de49\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:25:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x10015c760\nmov     rbp, rsp                                                       ; +0x1, 0x10015c761\npush    r15                                                            ; +0x4, 0x10015c764\npush    r14                                                            ; +0x6, 0x10015c766\npush    r13                                                            ; +0x8, 0x10015c768\npush    r12                                                            ; +0xa, 0x10015c76a\npush    rbx                                                            ; +0xc, 0x10015c76c\nsub     rsp, 28h                                                       ; +0xd, 0x10015c76d\nxorps   xmm0, xmm0                                                     ; +0x11, 0x10015c771\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x14, 0x10015c774\nmov     [rbp+var_30], rdi                                              ; +0x17, 0x10015c777\nmov     qword ptr [rdi+10h], 0                                         ; +0x1b, 0x10015c77b\nmov     rdi, [rsi+0D8h]                                                ; +0x23, 0x10015c783\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x2a, 0x10015c78a\ncall    sub_1007185E0                                                  ; +0x2e, 0x10015c78e\nmov     [rbp+var_38], rax                                              ; +0x33, 0x10015c793\nlea     rbx, [rbp+var_38]                                              ; +0x37, 0x10015c797\nlea     r14, [rbp+__dst]                                               ; +0x3b, 0x10015c79b\nnop                                                                    ; +0x3f, 0x10015c79f\nmov     rdi, rbx                                                       ; +0x40, 0x10015c7a0\ncall    sub_100718020                                                  ; +0x43, 0x10015c7a3\ntest    rax, rax                                                       ; +0x48, 0x10015c7a8\njz      loc_10015C872                                                  ; +0x4b, 0x10015c7ab\nmov     rdi, rbx                                                       ; +0x51, 0x10015c7b1\ncall    sub_1007184B0                                                  ; +0x54, 0x10015c7b4\nmov     r12, rax                                                       ; +0x59, 0x10015c7b9\nmov     rdi, rax; __s                                                  ; +0x5c, 0x10015c7bc\ncall    _strlen                                                        ; +0x5f, 0x10015c7bf\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x64, 0x10015c7c4\njnb     loc_10015C885                                                  ; +0x68, 0x10015c7c8\nmov     r13, rax                                                       ; +0x6e, 0x10015c7ce\ncmp     rax, 17h                                                       ; +0x71, 0x10015c7d1\njnb     short loc_10015C7F0                                            ; +0x75, 0x10015c7d5\nlea     eax, ds:0[r13*2]                                               ; +0x77, 0x10015c7d7\nmov     byte ptr [rbp+__dst], al                                       ; +0x7f, 0x10015c7df\nlea     rbx, [rbp+__dst+1]                                             ; +0x82, 0x10015c7e2\ntest    r13, r13                                                       ; +0x86, 0x10015c7e6\njnz     short loc_10015C823                                            ; +0x89, 0x10015c7e9\njmp     short loc_10015C831                                            ; +0x8b, 0x10015c7eb\nalign 10h                                                              ; +0x8d, 0x10015c7ed\nmov     rax, r13                                                       ; +0x90, 0x10015c7f0\nor      rax, 7                                                         ; +0x93, 0x10015c7f3\nlea     r15, [rax+1]                                                   ; +0x97, 0x10015c7f7\ncmp     rax, 17h                                                       ; +0x9b, 0x10015c7fb\nmov     eax, 1Ah                                                       ; +0x9f, 0x10015c7ff\ncmovz   r15, rax                                                       ; +0xa4, 0x10015c804\nmov     rdi, r15; __sz                                                 ; +0xa8, 0x10015c808\ncall    __Znwm; operator new(ulong)                                    ; +0xab, 0x10015c80b\nmov     rbx, rax                                                       ; +0xb0, 0x10015c810\nmov     [rbp+__p], rax                                                 ; +0xb3, 0x10015c813\nor      r15, 1                                                         ; +0xb7, 0x10015c817\nmov     [rbp+__dst], r15                                               ; +0xbb, 0x10015c81b\nmov     [rbp+var_48], r13                                              ; +0xbf, 0x10015c81f\nmov     rdi, rbx; __dst                                                ; +0xc3, 0x10015c823\nmov     rsi, r12; __src                                                ; +0xc6, 0x10015c826\nmov     rdx, r13; __len                                                ; +0xc9, 0x10015c829\ncall    _memmove                                                       ; +0xcc, 0x10015c82c\nmov     byte ptr [rbx+r13], 0                                          ; +0xd1, 0x10015c831\nmov     rdi, [rbp+var_30]                                              ; +0xd6, 0x10015c836\nmov     rsi, r14                                                       ; +0xda, 0x10015c83a\ncall    sub_1001593B0                                                  ; +0xdd, 0x10015c83d\ntest    byte ptr [rbp+__dst], 1                                        ; +0xe2, 0x10015c842\nlea     rbx, [rbp+var_38]                                              ; +0xe6, 0x10015c846\njz      short loc_10015C855                                            ; +0xea, 0x10015c84a\nmov     rdi, [rbp+__p]; __p                                            ; +0xec, 0x10015c84c\ncall    __ZdlPv; operator delete(void *)                               ; +0xf0, 0x10015c850\nmov     rdi, rbx                                                       ; +0xf5, 0x10015c855\ncall    sub_1007183B0                                                  ; +0xf8, 0x10015c858\nmov     [rbp+__dst], rax                                               ; +0xfd, 0x10015c85d\nmov     rdi, r14                                                       ; +0x101, 0x10015c861\ncall    sub_1007183B0                                                  ; +0x104, 0x10015c864\nmov     [rbp+var_38], rax                                              ; +0x109, 0x10015c869\njmp     loc_10015C7A0                                                  ; +0x10d, 0x10015c86d\nmov     rax, [rbp+var_30]                                              ; +0x112, 0x10015c872\nadd     rsp, 28h                                                       ; +0x116, 0x10015c876\npop     rbx                                                            ; +0x11a, 0x10015c87a\npop     r12                                                            ; +0x11b, 0x10015c87b\npop     r13                                                            ; +0x11d, 0x10015c87d\npop     r14                                                            ; +0x11f, 0x10015c87f\npop     r15                                                            ; +0x121, 0x10015c881\npop     rbp                                                            ; +0x123, 0x10015c883\nretn                                                                   ; +0x124, 0x10015c884\ncall    sub_100003630                                                  ; +0x125, 0x10015c885", "xrefs": ["GameLevelManager::replayPlatformerSaveJournal @ 0x10054d026", "sub_10054D820 @ 0x10054d888", "sub_10054DDE0 @ 0x10054de49"], "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"}