{"type": "func", "start": 6442762304, "end": 6442762378, "name": "sub_18004C040", "pseudocode": "// \n// sub_18004C040 from 0x18004c040 to 0x18004c08a (74 bytes)\n// \n// 7 xrefs:\n// > sub_1800510D0 @ 0x180051325\n// > sub_180051410 @ 0x1800517d6\n// > sub_180051B90 @ 0x180051c07\n// > sub_180051B90 @ 0x180051e7c\n// > sub_180051B90 @ 0x180051e88\n// > sub_180052A90 @ 0x180052ca6\n// > sub_180052E90 @ 0x180052ff9\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_18004C040(__int64 a1, int a2)\n{\n  if ( !a1 || !*(_QWORD *)a1 )\n    return 0xFFFFFFFFLL;\n  *(_DWORD *)(a1 + 356) = -1;\n  *(_QWORD *)(a1 + 12) = 0;\n  *(_QWORD *)(a1 + 44) = 0;\n  *(_DWORD *)(a1 + 52) = 0;\n  *(_QWORD *)(a1 + 340) = 0;\n  *(_DWORD *)(a1 + 348) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_QWORD *)(a1 + 368) = 0;\n  *(_DWORD *)(a1 + 352) = a2;\n  return 0;\n}", "assembly": "; \n; sub_18004C040 from 0x18004c040 to 0x18004c08a (74 bytes)\n; \n; 7 xrefs:\n; > sub_1800510D0 @ 0x180051325\n; > sub_180051410 @ 0x1800517d6\n; > sub_180051B90 @ 0x180051c07\n; > sub_180051B90 @ 0x180051e7c\n; > sub_180051B90 @ 0x180051e88\n; > sub_180052A90 @ 0x180052ca6\n; > sub_180052E90 @ 0x180052ff9\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    rcx, rcx                                                       ; +0x0, 0x18004c040\njz      short loc_18004C084                                            ; +0x3, 0x18004c043\ncmp     qword ptr [rcx], 0                                             ; +0x5, 0x18004c045\njz      short loc_18004C084                                            ; +0x9, 0x18004c049\nxor     eax, eax                                                       ; +0xb, 0x18004c04b\nmov     dword ptr [rcx+164h], 0FFFFFFFFh                               ; +0xd, 0x18004c04d\nmov     [rcx+0Ch], rax                                                 ; +0x17, 0x18004c057\nmov     [rcx+2Ch], rax                                                 ; +0x1b, 0x18004c05b\nmov     [rcx+34h], eax                                                 ; +0x1f, 0x18004c05f\nmov     [rcx+154h], rax                                                ; +0x22, 0x18004c062\nmov     [rcx+15Ch], eax                                                ; +0x29, 0x18004c069\nmov     [rcx+168h], rax                                                ; +0x2f, 0x18004c06f\nmov     [rcx+170h], rax                                                ; +0x36, 0x18004c076\nmov     [rcx+160h], edx                                                ; +0x3d, 0x18004c07d\nretn                                                                   ; +0x43, 0x18004c083\nmov     eax, 0FFFFFFFFh                                                ; +0x44, 0x18004c084\nretn                                                                   ; +0x49, 0x18004c089", "xrefs": ["sub_1800510D0 @ 0x180051325", "sub_180051410 @ 0x1800517d6", "sub_180051B90 @ 0x180051c07", "sub_180051B90 @ 0x180051e7c", "sub_180051B90 @ 0x180051e88", "sub_180052A90 @ 0x180052ca6", "sub_180052E90 @ 0x180052ff9"], "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"}