{"type": "func", "start": 6442792928, "end": 6442793032, "name": "sub_1800537E0", "pseudocode": "// \n// sub_1800537E0 from 0x1800537e0 to 0x180053848 (104 bytes)\n// \n// 7 xrefs:\n// > sub_180051410 @ 0x1800516fd\n// > sub_180051410 @ 0x18005174d\n// > sub_180051410 @ 0x18005184e\n// > sub_180051410 @ 0x180051941\n// > sub_180051B90 @ 0x180051c1e\n// > sub_1800523F0 @ 0x1800528c7\n// > <???> @ 0x1801f8b8c\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:53:18 +0000\n// \n\n__int64 __fastcall sub_1800537E0(__int64 *a1, __int64 a2)\n{\n  __int64 v4; // rcx\n  unsigned int (__fastcall *v5)(__int64, __int64, _QWORD); // rax\n\n  v4 = *a1;\n  if ( !v4 )\n    return 4294967167LL;\n  v5 = (unsigned int (__fastcall *)(__int64, __int64, _QWORD))a1[99];\n  if ( !v5 || v5(v4, a2, 0) == -1 )\n    return 4294967168LL;\n  a1[2] = a2;\n  sub_18004C390((__int64)(a1 + 4));\n  return 0;\n}", "assembly": "; \n; sub_1800537E0 from 0x1800537e0 to 0x180053848 (104 bytes)\n; \n; 7 xrefs:\n; > sub_180051410 @ 0x1800516fd\n; > sub_180051410 @ 0x18005174d\n; > sub_180051410 @ 0x18005184e\n; > sub_180051410 @ 0x180051941\n; > sub_180051B90 @ 0x180051c1e\n; > sub_1800523F0 @ 0x1800528c7\n; > <???> @ 0x1801f8b8c\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:53:18 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800537e0\npush    rdi                                                            ; +0x5, 0x1800537e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800537e6\nmov     rbx, rcx                                                       ; +0xa, 0x1800537ea\nmov     rdi, rdx                                                       ; +0xd, 0x1800537ed\nmov     rcx, [rcx]                                                     ; +0x10, 0x1800537f0\ntest    rcx, rcx                                                       ; +0x13, 0x1800537f3\njz      short loc_180053838                                            ; +0x16, 0x1800537f6\nmov     rax, [rbx+318h]                                                ; +0x18, 0x1800537f8\ntest    rax, rax                                                       ; +0x1f, 0x1800537ff\njz      short loc_180053828                                            ; +0x22, 0x180053802\nxor     r8d, r8d                                                       ; +0x24, 0x180053804\ncall    rax                                                            ; +0x27, 0x180053807\ncmp     eax, 0FFFFFFFFh                                                ; +0x29, 0x180053809\njz      short loc_180053828                                            ; +0x2c, 0x18005380c\nlea     rcx, [rbx+20h]                                                 ; +0x2e, 0x18005380e\nmov     [rbx+10h], rdi                                                 ; +0x32, 0x180053812\ncall    sub_18004C390                                                  ; +0x36, 0x180053816\nxor     eax, eax                                                       ; +0x3b, 0x18005381b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3d, 0x18005381d\nadd     rsp, 20h                                                       ; +0x42, 0x180053822\npop     rdi                                                            ; +0x46, 0x180053826\nretn                                                                   ; +0x47, 0x180053827\nmov     eax, 0FFFFFF80h                                                ; +0x48, 0x180053828\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x18005382d\nadd     rsp, 20h                                                       ; +0x52, 0x180053832\npop     rdi                                                            ; +0x56, 0x180053836\nretn                                                                   ; +0x57, 0x180053837\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x58, 0x180053838\nmov     eax, 0FFFFFF7Fh                                                ; +0x5d, 0x18005383d\nadd     rsp, 20h                                                       ; +0x62, 0x180053842\npop     rdi                                                            ; +0x66, 0x180053846\nretn                                                                   ; +0x67, 0x180053847", "xrefs": ["sub_180051410 @ 0x1800516fd", "sub_180051410 @ 0x18005174d", "sub_180051410 @ 0x18005184e", "sub_180051410 @ 0x180051941", "sub_180051B90 @ 0x180051c1e", "sub_1800523F0 @ 0x1800528c7", "<???> @ 0x1801f8b8c"], "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"}