{"type": "func", "start": 6443196208, "end": 6443196250, "name": "sub_1800B5F30", "pseudocode": "// \n// sub_1800B5F30 from 0x1800b5f30 to 0x1800b5f5a (42 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18016e788\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_1800B5F30(__int64 a1, __int64 a2, int a3, _DWORD *a4)\n{\n  int v4; // r10d\n  unsigned int v5; // eax\n  unsigned int v6; // edx\n  bool v7; // cf\n\n  v4 = *(_DWORD *)(a1 + 496);\n  v5 = *(_DWORD *)(a1 + 32);\n  v6 = v4 + a3;\n  v7 = v5 < v4 + a3;\n  if ( v5 < v4 + a3 )\n  {\n    a3 = v5 - v4;\n    v7 = v5 < v6;\n  }\n  *a4 = a3;\n  *(_DWORD *)(a1 + 496) += a3;\n  return v7 ? 0x1F : 0;\n}", "assembly": "; \n; sub_1800B5F30 from 0x1800b5f30 to 0x1800b5f5a (42 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18016e788\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     r10d, [rcx+1F0h]                                               ; +0x0, 0x1800b5f30\nmov     eax, [rcx+20h]                                                 ; +0x7, 0x1800b5f37\nlea     edx, [r10+r8]                                                  ; +0xa, 0x1800b5f3a\ncmp     eax, edx                                                       ; +0xe, 0x1800b5f3e\njnb     short loc_1800B5F4A                                            ; +0x10, 0x1800b5f40\nmov     r8d, eax                                                       ; +0x12, 0x1800b5f42\nsub     r8d, r10d                                                      ; +0x15, 0x1800b5f45\ncmp     eax, edx                                                       ; +0x18, 0x1800b5f48\nsbb     eax, eax                                                       ; +0x1a, 0x1800b5f4a\nmov     [r9], r8d                                                      ; +0x1c, 0x1800b5f4c\nadd     [rcx+1F0h], r8d                                                ; +0x1f, 0x1800b5f4f\nand     eax, 1Fh                                                       ; +0x26, 0x1800b5f56\nretn                                                                   ; +0x29, 0x1800b5f59", "xrefs": ["<???> @ 0x18016e788"], "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"}