{"type": "func", "start": 6442511680, "end": 6442511809, "name": "sub_18000ED40", "pseudocode": "// \n// sub_18000ED40 from 0x18000ed40 to 0x18000edc1 (129 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016c7f8\n// > <???> @ 0x18016ca70\n// > <???> @ 0x1801f6ce4\n// > <???> @ 0x1801f6cf0\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 10:52:44 +0000\n// \n\n__int64 __fastcall sub_18000ED40(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)\n{\n  __int64 result; // rax\n  char v9; // [rsp+30h] [rbp+8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_DWORD *, char *))(*(_QWORD *)a1 + 152LL))(a1, &v9);\n  if ( !(_DWORD)result )\n  {\n    if ( (v9 & 0x10) != 0 )\n    {\n      if ( a2 )\n        *a2 = a1[42];\n      if ( a3 )\n        *a3 = a1[43];\n      if ( a4 )\n        *a4 = a1[44];\n      return 0;\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000ED40 from 0x18000ed40 to 0x18000edc1 (129 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016c7f8\n; > <???> @ 0x18016ca70\n; > <???> @ 0x1801f6ce4\n; > <???> @ 0x1801f6cf0\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 10:52:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18000ed40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18000ed45\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18000ed4a\npush    r14                                                            ; +0xf, 0x18000ed4f\nsub     rsp, 20h                                                       ; +0x11, 0x18000ed51\nmov     rax, [rcx]                                                     ; +0x15, 0x18000ed55\nmov     r14, rdx                                                       ; +0x18, 0x18000ed58\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x1b, 0x18000ed5b\nmov     rdi, r9                                                        ; +0x20, 0x18000ed60\nmov     rsi, r8                                                        ; +0x23, 0x18000ed63\nmov     rbx, rcx                                                       ; +0x26, 0x18000ed66\ncall    qword ptr [rax+98h]                                            ; +0x29, 0x18000ed69\ntest    eax, eax                                                       ; +0x2f, 0x18000ed6f\njnz     short loc_18000EDAB                                            ; +0x31, 0x18000ed71\ntest    [rsp+28h+arg_0], 10h                                           ; +0x33, 0x18000ed73\njnz     short loc_18000ED81                                            ; +0x38, 0x18000ed78\nmov     eax, 28h ; '('                                                 ; +0x3a, 0x18000ed7a\njmp     short loc_18000EDAB                                            ; +0x3f, 0x18000ed7f\ntest    r14, r14                                                       ; +0x41, 0x18000ed81\njz      short loc_18000ED8F                                            ; +0x44, 0x18000ed84\nmov     eax, [rbx+0A8h]                                                ; +0x46, 0x18000ed86\nmov     [r14], eax                                                     ; +0x4c, 0x18000ed8c\ntest    rsi, rsi                                                       ; +0x4f, 0x18000ed8f\njz      short loc_18000ED9C                                            ; +0x52, 0x18000ed92\nmov     eax, [rbx+0ACh]                                                ; +0x54, 0x18000ed94\nmov     [rsi], eax                                                     ; +0x5a, 0x18000ed9a\ntest    rdi, rdi                                                       ; +0x5c, 0x18000ed9c\njz      short loc_18000EDA9                                            ; +0x5f, 0x18000ed9f\nmov     eax, [rbx+0B0h]                                                ; +0x61, 0x18000eda1\nmov     [rdi], eax                                                     ; +0x67, 0x18000eda7\nxor     eax, eax                                                       ; +0x69, 0x18000eda9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x6b, 0x18000edab\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x70, 0x18000edb0\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x75, 0x18000edb5\nadd     rsp, 20h                                                       ; +0x7a, 0x18000edba\npop     r14                                                            ; +0x7e, 0x18000edbe\nretn                                                                   ; +0x80, 0x18000edc0", "xrefs": ["<???> @ 0x18016c7f8", "<???> @ 0x18016ca70", "<???> @ 0x1801f6ce4", "<???> @ 0x1801f6cf0"], "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"}