{"type": "func", "start": 6442511424, "end": 6442511574, "name": "sub_18000EC40", "pseudocode": "// \n// sub_18000EC40 from 0x18000ec40 to 0x18000ecd6 (150 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c7d8\n// > <???> @ 0x18016ca50\n// > <???> @ 0x1801f6cd8\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_18000EC40(_DWORD *a1, _DWORD *a2, _DWORD *a3)\n{\n  __int64 result; // rax\n  char v7; // [rsp+30h] [rbp+8h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_DWORD *, char *))(*(_QWORD *)a1 + 152LL))(a1, &v7);\n  if ( !(_DWORD)result )\n  {\n    if ( (v7 & 0x10) != 0 )\n    {\n      if ( a2 )\n      {\n        *a2 = a1[32];\n        a2[1] = a1[33];\n        a2[2] = a1[34];\n      }\n      if ( a3 )\n      {\n        *a3 = a1[35];\n        a3[1] = a1[36];\n        a3[2] = a1[37];\n      }\n      return 0;\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_18000EC40 from 0x18000ec40 to 0x18000ecd6 (150 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c7d8\n; > <???> @ 0x18016ca50\n; > <???> @ 0x1801f6cd8\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, 0x18000ec40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18000ec45\npush    rdi                                                            ; +0xa, 0x18000ec4a\nsub     rsp, 20h                                                       ; +0xb, 0x18000ec4b\nmov     rax, [rcx]                                                     ; +0xf, 0x18000ec4f\nmov     rsi, rdx                                                       ; +0x12, 0x18000ec52\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x15, 0x18000ec55\nmov     rdi, r8                                                        ; +0x1a, 0x18000ec5a\nmov     rbx, rcx                                                       ; +0x1d, 0x18000ec5d\ncall    qword ptr [rax+98h]                                            ; +0x20, 0x18000ec60\ntest    eax, eax                                                       ; +0x26, 0x18000ec66\njnz     short loc_18000ECC6                                            ; +0x28, 0x18000ec68\ntest    [rsp+28h+arg_0], 10h                                           ; +0x2a, 0x18000ec6a\njnz     short loc_18000EC86                                            ; +0x2f, 0x18000ec6f\nmov     eax, 28h ; '('                                                 ; +0x31, 0x18000ec71\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x36, 0x18000ec76\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x3b, 0x18000ec7b\nadd     rsp, 20h                                                       ; +0x40, 0x18000ec80\npop     rdi                                                            ; +0x44, 0x18000ec84\nretn                                                                   ; +0x45, 0x18000ec85\ntest    rsi, rsi                                                       ; +0x46, 0x18000ec86\njz      short loc_18000ECA5                                            ; +0x49, 0x18000ec89\nmov     eax, [rbx+80h]                                                 ; +0x4b, 0x18000ec8b\nmov     [rsi], eax                                                     ; +0x51, 0x18000ec91\nmov     eax, [rbx+84h]                                                 ; +0x53, 0x18000ec93\nmov     [rsi+4], eax                                                   ; +0x59, 0x18000ec99\nmov     eax, [rbx+88h]                                                 ; +0x5c, 0x18000ec9c\nmov     [rsi+8], eax                                                   ; +0x62, 0x18000eca2\ntest    rdi, rdi                                                       ; +0x65, 0x18000eca5\njz      short loc_18000ECC4                                            ; +0x68, 0x18000eca8\nmov     eax, [rbx+8Ch]                                                 ; +0x6a, 0x18000ecaa\nmov     [rdi], eax                                                     ; +0x70, 0x18000ecb0\nmov     eax, [rbx+90h]                                                 ; +0x72, 0x18000ecb2\nmov     [rdi+4], eax                                                   ; +0x78, 0x18000ecb8\nmov     eax, [rbx+94h]                                                 ; +0x7b, 0x18000ecbb\nmov     [rdi+8], eax                                                   ; +0x81, 0x18000ecc1\nxor     eax, eax                                                       ; +0x84, 0x18000ecc4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x86, 0x18000ecc6\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8b, 0x18000eccb\nadd     rsp, 20h                                                       ; +0x90, 0x18000ecd0\npop     rdi                                                            ; +0x94, 0x18000ecd4\nretn                                                                   ; +0x95, 0x18000ecd5", "xrefs": ["<???> @ 0x18016c7d8", "<???> @ 0x18016ca50", "<???> @ 0x1801f6cd8"], "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"}