{"type": "func", "start": 6442763184, "end": 6442763213, "name": "sub_18004C3B0", "pseudocode": "// \n// sub_18004C3B0 from 0x18004c3b0 to 0x18004c3cd (29 bytes)\n// \n// 3 xrefs:\n// > sub_180050C10 @ 0x180050cda\n// > sub_180053230 @ 0x1800532e5\n// > sub_180053530 @ 0x1800535e6\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_18004C3B0(__int64 a1, int a2)\n{\n  int v2; // r8d\n  int v3; // edx\n\n  v2 = *(_DWORD *)(a1 + 8);\n  if ( v2 < 0 )\n    return 0xFFFFFFFFLL;\n  v3 = *(_DWORD *)(a1 + 12) + a2;\n  if ( v3 > v2 )\n    return 0xFFFFFFFFLL;\n  *(_DWORD *)(a1 + 12) = v3;\n  return 0;\n}", "assembly": "; \n; sub_18004C3B0 from 0x18004c3b0 to 0x18004c3cd (29 bytes)\n; \n; 3 xrefs:\n; > sub_180050C10 @ 0x180050cda\n; > sub_180053230 @ 0x1800532e5\n; > sub_180053530 @ 0x1800535e6\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\nmov     r8d, [rcx+8]                                                   ; +0x0, 0x18004c3b0\ntest    r8d, r8d                                                       ; +0x4, 0x18004c3b4\njs      short loc_18004C3C7                                            ; +0x7, 0x18004c3b7\nadd     edx, [rcx+0Ch]                                                 ; +0x9, 0x18004c3b9\ncmp     edx, r8d                                                       ; +0xc, 0x18004c3bc\njg      short loc_18004C3C7                                            ; +0xf, 0x18004c3bf\nmov     [rcx+0Ch], edx                                                 ; +0x11, 0x18004c3c1\nxor     eax, eax                                                       ; +0x14, 0x18004c3c4\nretn                                                                   ; +0x16, 0x18004c3c6\nmov     eax, 0FFFFFFFFh                                                ; +0x17, 0x18004c3c7\nretn                                                                   ; +0x1c, 0x18004c3cc", "xrefs": ["sub_180050C10 @ 0x180050cda", "sub_180053230 @ 0x1800532e5", "sub_180053530 @ 0x1800535e6"], "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"}