{"type": "func", "start": 6442773760, "end": 6442773984, "name": "sub_18004ED00", "pseudocode": "// \n// sub_18004ED00 from 0x18004ed00 to 0x18004ede0 (224 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x180166e60\n// > <???> @ 0x180166ea0\n// > <???> @ 0x180166ee0\n// > <???> @ 0x1801819a4\n// > <???> @ 0x1801819d8\n// > <???> @ 0x1801f8814\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__int64 __fastcall sub_18004ED00(__int64 a1, __int64 a2)\n{\n  int v3; // ebp\n  int v5; // edi\n  __int64 v6; // rsi\n  __int64 v7; // rdx\n  __int64 v8; // rdi\n  __int64 result; // rax\n\n  if ( a2 )\n  {\n    v3 = 0;\n    v5 = 0;\n    if ( *(int *)(a2 + 8) > 0 )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = *(_QWORD *)(v6 + *(_QWORD *)(a2 + 32));\n        if ( v7 )\n          sub_180033C90(a1, v7);\n        ++v5;\n        v6 += 8;\n      }\n      while ( v5 < *(_DWORD *)(a2 + 8) );\n    }\n    sub_180033C90(a1, *(_QWORD *)(a2 + 32));\n    if ( *(int *)(a2 + 40) > 0 )\n    {\n      v8 = 0;\n      do\n      {\n        sub_180033C90(a1, *(_QWORD *)(*(_QWORD *)(a2 + 48) + v8));\n        ++v3;\n        v8 += 8;\n      }\n      while ( v3 < *(_DWORD *)(a2 + 40) );\n    }\n    sub_180033C90(a1, *(_QWORD *)(a2 + 48));\n    *(_OWORD *)a2 = 0;\n    *(_OWORD *)(a2 + 16) = 0;\n    *(_OWORD *)(a2 + 32) = 0;\n    *(_OWORD *)(a2 + 48) = 0;\n    *(_QWORD *)(a2 + 64) = 0;\n    return sub_180033C90(a1, a2);\n  }\n  return result;\n}", "assembly": "; \n; sub_18004ED00 from 0x18004ed00 to 0x18004ede0 (224 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x180166e60\n; > <???> @ 0x180166ea0\n; > <???> @ 0x180166ee0\n; > <???> @ 0x1801819a4\n; > <???> @ 0x1801819d8\n; > <???> @ 0x1801f8814\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\ntest    rdx, rdx                                                       ; +0x0, 0x18004ed00\njz      locret_18004EDDF                                               ; +0x3, 0x18004ed03\nmov     [rsp+arg_18], rbx                                              ; +0x9, 0x18004ed09\npush    r14                                                            ; +0xe, 0x18004ed0e\nsub     rsp, 20h                                                       ; +0x10, 0x18004ed10\nmov     [rsp+28h+arg_0], rbp                                           ; +0x14, 0x18004ed14\nmov     rbx, rdx                                                       ; +0x19, 0x18004ed19\nxor     ebp, ebp                                                       ; +0x1c, 0x18004ed1c\nmov     [rsp+28h+arg_10], rdi                                          ; +0x1e, 0x18004ed1e\nmov     r14, rcx                                                       ; +0x23, 0x18004ed23\nmov     edi, ebp                                                       ; +0x26, 0x18004ed26\ncmp     [rdx+8], ebp                                                   ; +0x28, 0x18004ed28\njle     short loc_18004ED65                                            ; +0x2b, 0x18004ed2b\nmov     [rsp+28h+arg_8], rsi                                           ; +0x2d, 0x18004ed2d\nmov     esi, ebp                                                       ; +0x32, 0x18004ed32\nnop     dword ptr [rax+00h]                                            ; +0x34, 0x18004ed34\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x38, 0x18004ed38\nmov     rax, [rbx+20h]                                                 ; +0x40, 0x18004ed40\nmov     rdx, [rsi+rax]                                                 ; +0x44, 0x18004ed44\ntest    rdx, rdx                                                       ; +0x48, 0x18004ed48\njz      short loc_18004ED55                                            ; +0x4b, 0x18004ed4b\nmov     rcx, r14                                                       ; +0x4d, 0x18004ed4d\ncall    sub_180033C90                                                  ; +0x50, 0x18004ed50\ninc     edi                                                            ; +0x55, 0x18004ed55\nadd     rsi, 8                                                         ; +0x57, 0x18004ed57\ncmp     edi, [rbx+8]                                                   ; +0x5b, 0x18004ed5b\njl      short loc_18004ED40                                            ; +0x5e, 0x18004ed5e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x60, 0x18004ed60\nmov     rdx, [rbx+20h]                                                 ; +0x65, 0x18004ed65\nmov     rcx, r14                                                       ; +0x69, 0x18004ed69\ncall    sub_180033C90                                                  ; +0x6c, 0x18004ed6c\ncmp     [rbx+28h], ebp                                                 ; +0x71, 0x18004ed71\njle     short loc_18004ED9B                                            ; +0x74, 0x18004ed74\nmov     rdi, rbp                                                       ; +0x76, 0x18004ed76\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x18004ed79\nmov     rdx, [rbx+30h]                                                 ; +0x80, 0x18004ed80\nmov     rcx, r14                                                       ; +0x84, 0x18004ed84\nmov     rdx, [rdx+rdi]                                                 ; +0x87, 0x18004ed87\ncall    sub_180033C90                                                  ; +0x8b, 0x18004ed8b\ninc     ebp                                                            ; +0x90, 0x18004ed90\nlea     rdi, [rdi+8]                                                   ; +0x92, 0x18004ed92\ncmp     ebp, [rbx+28h]                                                 ; +0x96, 0x18004ed96\njl      short loc_18004ED80                                            ; +0x99, 0x18004ed99\nmov     rdx, [rbx+30h]                                                 ; +0x9b, 0x18004ed9b\nmov     rcx, r14                                                       ; +0x9f, 0x18004ed9f\ncall    sub_180033C90                                                  ; +0xa2, 0x18004eda2\nxorps   xmm0, xmm0                                                     ; +0xa7, 0x18004eda7\nxor     eax, eax                                                       ; +0xaa, 0x18004edaa\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xac, 0x18004edac\nmov     rdx, rbx                                                       ; +0xaf, 0x18004edaf\nmov     rcx, r14                                                       ; +0xb2, 0x18004edb2\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0xb5, 0x18004edb5\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0xb9, 0x18004edb9\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0xbd, 0x18004edbd\nmov     [rbx+40h], rax                                                 ; +0xc1, 0x18004edc1\ncall    sub_180033C90                                                  ; +0xc5, 0x18004edc5\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xca, 0x18004edca\nmov     rbp, [rsp+28h+arg_0]                                           ; +0xcf, 0x18004edcf\nmov     rbx, [rsp+28h+arg_18]                                          ; +0xd4, 0x18004edd4\nadd     rsp, 20h                                                       ; +0xd9, 0x18004edd9\npop     r14                                                            ; +0xdd, 0x18004eddd\nretn                                                                   ; +0xdf, 0x18004eddf", "xrefs": ["<???> @ 0x180166e60", "<???> @ 0x180166ea0", "<???> @ 0x180166ee0", "<???> @ 0x1801819a4", "<???> @ 0x1801819d8", "<???> @ 0x1801f8814"], "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"}