{"type": "func", "start": 6442556336, "end": 6442556699, "name": "DS_Dictionary::getAllKeys", "pseudocode": "// \n// DS_Dictionary::getAllKeys from 0x180019bb0 to 0x180019d1b (363 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae9a4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 *__fastcall DS_Dictionary::getAllKeys(__int64 a1, __int64 *a2)\n{\n  _BYTE *v3; // rax\n  size_t v4; // r8\n  _OWORD *v5; // rdx\n  unsigned __int64 v6; // rdx\n  void *v7; // rcx\n  __int64 v8; // rax\n  __int64 v10; // [rsp+20h] [rbp-58h] BYREF\n  int v11; // [rsp+28h] [rbp-50h]\n  __int64 *v12; // [rsp+30h] [rbp-48h]\n  _BYTE v13[8]; // [rsp+38h] [rbp-40h] BYREF\n  _BYTE v14[8]; // [rsp+40h] [rbp-38h] BYREF\n  __int128 v15; // [rsp+48h] [rbp-30h] BYREF\n  __int128 v16; // [rsp+58h] [rbp-20h]\n\n  v12 = a2;\n  *a2 = 0;\n  a2[1] = 0;\n  a2[2] = 0;\n  v11 = 1;\n  sub_180080CF0(*(_QWORD *)(a1 + 216) - 8LL, &v10);\n  for ( ; sub_18007F4E0(&v10); v10 = *(_QWORD *)sub_180081AB0(v8, v14) )\n  {\n    v3 = (_BYTE *)sub_18007FB70(&v10);\n    v15 = 0;\n    v16 = 0u;\n    v4 = -1;\n    do\n      ++v4;\n    while ( v3[v4] );\n    sub_18000CE60(&v15, v3, v4);\n    v5 = (_OWORD *)a2[1];\n    if ( v5 == (_OWORD *)a2[2] )\n    {\n      sub_18000D000(a2, (__int64)v5, (__int64)&v15);\n      v6 = *((_QWORD *)&v16 + 1);\n    }\n    else\n    {\n      *v5 = v15;\n      v5[1] = v16;\n      v6 = 15;\n      LOBYTE(v15) = 0;\n      a2[1] += 32;\n    }\n    if ( v6 > 0xF )\n    {\n      v7 = (void *)v15;\n      if ( v6 + 1 >= 0x1000 )\n      {\n        v7 = *(void **)(v15 - 8);\n        if ( (unsigned __int64)(v15 - (_QWORD)v7 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free_0(v7);\n    }\n    v8 = sub_180081AB0(&v10, v13);\n  }\n  return a2;\n}", "assembly": "; \n; DS_Dictionary::getAllKeys from 0x180019bb0 to 0x180019d1b (363 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae9a4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180019bb0\npush    rdi                                                            ; +0x5, 0x180019bb5\nsub     rsp, 70h                                                       ; +0x6, 0x180019bb6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180019bba\nxor     rax, rsp                                                       ; +0x11, 0x180019bc1\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x180019bc4\nmov     rbx, rdx                                                       ; +0x19, 0x180019bc9\nmov     [rsp+78h+var_48], rdx                                          ; +0x1c, 0x180019bcc\nxor     edi, edi                                                       ; +0x21, 0x180019bd1\nmov     [rsp+78h+var_50], edi                                          ; +0x23, 0x180019bd3\nmov     [rdx], rdi                                                     ; +0x27, 0x180019bd7\nmov     [rdx+8], rdi                                                   ; +0x2a, 0x180019bda\nmov     [rdx+10h], rdi                                                 ; +0x2e, 0x180019bde\nmov     [rsp+78h+var_50], 1                                            ; +0x32, 0x180019be2\nmov     rcx, [rcx+0D8h]                                                ; +0x3a, 0x180019bea\nsub     rcx, 8                                                         ; +0x41, 0x180019bf1\nlea     rdx, [rsp+78h+var_58]                                          ; +0x45, 0x180019bf5\ncall    sub_180080CF0                                                  ; +0x4a, 0x180019bfa\nlea     rcx, [rsp+78h+var_58]                                          ; +0x4f, 0x180019bff\ncall    sub_18007F4E0                                                  ; +0x54, 0x180019c04\ntest    rax, rax                                                       ; +0x59, 0x180019c09\njz      loc_180019CF6                                                  ; +0x5c, 0x180019c0c\nlea     rcx, [rsp+78h+var_58]                                          ; +0x62, 0x180019c12\ncall    sub_18007FB70                                                  ; +0x67, 0x180019c17\nxorps   xmm0, xmm0                                                     ; +0x6c, 0x180019c1c\nmovups  [rsp+78h+var_30], xmm0                                         ; +0x6f, 0x180019c1f\nmov     qword ptr [rsp+78h+var_20], rdi                                ; +0x74, 0x180019c24\nmov     qword ptr [rsp+78h+var_20+8], rdi                              ; +0x79, 0x180019c29\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x7e, 0x180019c2e\ninc     r8                                                             ; +0x85, 0x180019c35\ncmp     byte ptr [rax+r8], 0                                           ; +0x88, 0x180019c38\njnz     short loc_180019C35                                            ; +0x8d, 0x180019c3d\nmov     rdx, rax                                                       ; +0x8f, 0x180019c3f\nlea     rcx, [rsp+78h+var_30]                                          ; +0x92, 0x180019c42\ncall    sub_18000CE60                                                  ; +0x97, 0x180019c47\nnop                                                                    ; +0x9c, 0x180019c4c\nmov     rdx, [rbx+8]                                                   ; +0x9d, 0x180019c4d\ncmp     rdx, [rbx+10h]                                                 ; +0xa1, 0x180019c51\njz      short loc_180019C79                                            ; +0xa5, 0x180019c55\nmovups  xmm0, [rsp+78h+var_30]                                         ; +0xa7, 0x180019c57\nmovups  xmmword ptr [rdx], xmm0                                        ; +0xac, 0x180019c5c\nmovups  xmm1, [rsp+78h+var_20]                                         ; +0xaf, 0x180019c5f\nmovups  xmmword ptr [rdx+10h], xmm1                                    ; +0xb4, 0x180019c64\nmov     edx, 0Fh                                                       ; +0xb8, 0x180019c68\nmov     byte ptr [rsp+78h+var_30], 0                                   ; +0xbd, 0x180019c6d\nadd     qword ptr [rbx+8], 20h ; ' '                                   ; +0xc2, 0x180019c72\njmp     short loc_180019C8B                                            ; +0xc7, 0x180019c77\nlea     r8, [rsp+78h+var_30]                                           ; +0xc9, 0x180019c79\nmov     rcx, rbx                                                       ; +0xce, 0x180019c7e\ncall    sub_18000D000                                                  ; +0xd1, 0x180019c81\nmov     rdx, qword ptr [rsp+78h+var_20+8]                              ; +0xd6, 0x180019c86\ncmp     rdx, 0Fh                                                       ; +0xdb, 0x180019c8b\njbe     short loc_180019CBF                                            ; +0xdf, 0x180019c8f\ninc     rdx                                                            ; +0xe1, 0x180019c91\nmov     rcx, qword ptr [rsp+78h+var_30]                                ; +0xe4, 0x180019c94\nmov     rax, rcx                                                       ; +0xe9, 0x180019c99\ncmp     rdx, 1000h                                                     ; +0xec, 0x180019c9c\njb      short loc_180019CBA                                            ; +0xf3, 0x180019ca3\nadd     rdx, 27h ; '''                                                 ; +0xf5, 0x180019ca5\nmov     rcx, [rcx-8]; Block                                            ; +0xf9, 0x180019ca9\nsub     rax, rcx                                                       ; +0xfd, 0x180019cad\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x100, 0x180019cb0\ncmp     rax, 1Fh                                                       ; +0x104, 0x180019cb4\nja      short loc_180019D14                                            ; +0x108, 0x180019cb8\ncall    j_j_free_0                                                     ; +0x10a, 0x180019cba\nlea     rdx, [rsp+78h+var_40]                                          ; +0x10f, 0x180019cbf\nlea     rcx, [rsp+78h+var_58]                                          ; +0x114, 0x180019cc4\ncall    sub_180081AB0                                                  ; +0x119, 0x180019cc9\nmov     rcx, rax                                                       ; +0x11e, 0x180019cce\nlea     rdx, [rsp+78h+var_38]                                          ; +0x121, 0x180019cd1\ncall    sub_180081AB0                                                  ; +0x126, 0x180019cd6\nmov     rcx, [rax]                                                     ; +0x12b, 0x180019cdb\nmov     [rsp+78h+var_58], rcx                                          ; +0x12e, 0x180019cde\nlea     rcx, [rsp+78h+var_58]                                          ; +0x133, 0x180019ce3\ncall    sub_18007F4E0                                                  ; +0x138, 0x180019ce8\ntest    rax, rax                                                       ; +0x13d, 0x180019ced\njnz     loc_180019C12                                                  ; +0x140, 0x180019cf0\nmov     rax, rbx                                                       ; +0x146, 0x180019cf6\nmov     rcx, [rsp+78h+var_10]                                          ; +0x149, 0x180019cf9\nxor     rcx, rsp; StackCookie                                          ; +0x14e, 0x180019cfe\ncall    __security_check_cookie                                        ; +0x151, 0x180019d01\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x156, 0x180019d06\nadd     rsp, 70h                                                       ; +0x15e, 0x180019d0e\npop     rdi                                                            ; +0x162, 0x180019d12\nretn                                                                   ; +0x163, 0x180019d13\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x164, 0x180019d14\ndb 0CCh                                                                ; +0x16a, 0x180019d1a", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae9a4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}