{"type": "func", "start": 6443187216, "end": 6443187262, "name": "sub_1800B3C10", "pseudocode": "// \n// sub_1800B3C10 from 0x1800b3c10 to 0x1800b3c3e (46 bytes)\n// \n// 1 xrefs:\n// > sub_1800398D0 @ 0x180039955\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_1800B3C10(_DWORD *a1, int a2)\n{\n  int v2; // eax\n  int v3; // r8d\n  int v4; // eax\n\n  v2 = a1[8];\n  v3 = a2 - a1[94];\n  a1[94] = a2;\n  if ( v2 == -1 )\n    return 0;\n  v4 = v2 - v3;\n  a1[8] = v4;\n  if ( (unsigned int)(a2 + v4) <= a1[9] )\n    return 0;\n  else\n    return 28;\n}", "assembly": "; \n; sub_1800B3C10 from 0x1800b3c10 to 0x1800b3c3e (46 bytes)\n; \n; 1 xrefs:\n; > sub_1800398D0 @ 0x180039955\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     eax, [rcx+20h]                                                 ; +0x0, 0x1800b3c10\nmov     r8d, edx                                                       ; +0x3, 0x1800b3c13\nsub     r8d, [rcx+178h]                                                ; +0x6, 0x1800b3c16\nmov     [rcx+178h], edx                                                ; +0xd, 0x1800b3c1d\ncmp     eax, 0FFFFFFFFh                                                ; +0x13, 0x1800b3c23\njz      short loc_1800B3C3B                                            ; +0x16, 0x1800b3c26\nsub     eax, r8d                                                       ; +0x18, 0x1800b3c28\nmov     [rcx+20h], eax                                                 ; +0x1b, 0x1800b3c2b\nadd     eax, edx                                                       ; +0x1e, 0x1800b3c2e\ncmp     eax, [rcx+24h]                                                 ; +0x20, 0x1800b3c30\njbe     short loc_1800B3C3B                                            ; +0x23, 0x1800b3c33\nmov     eax, 1Ch                                                       ; +0x25, 0x1800b3c35\nretn                                                                   ; +0x2a, 0x1800b3c3a\nxor     eax, eax                                                       ; +0x2b, 0x1800b3c3b\nretn                                                                   ; +0x2d, 0x1800b3c3d", "xrefs": ["sub_1800398D0 @ 0x180039955"], "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"}