{"type": "func", "start": 6443296592, "end": 6443296692, "name": "sub_1800CE750", "pseudocode": "// \n// sub_1800CE750 from 0x1800ce750 to 0x1800ce7b4 (100 bytes)\n// \n// 2 xrefs:\n// > sub_1800E5F70 @ 0x1800e6024\n// > sub_1800E6060 @ 0x1800e6280\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_1800CE750(__int64 a1, char a2)\n{\n  unsigned __int64 v2; // rax\n  unsigned __int64 v4; // r10\n  unsigned __int64 v5; // r8\n  int v6; // ecx\n  int v7; // eax\n  unsigned int v8; // ecx\n  unsigned int v9; // r8d\n  __int64 v10; // rax\n\n  v2 = *(_QWORD *)(a1 + 80);\n  v4 = v2 >> 29;\n  v5 = v2 >> 17;\n  if ( !a2 )\n    v2 = *(unsigned int *)(a1 + 468);\n  v6 = (unsigned __int16)(v2 >> 1);\n  v7 = 1;\n  v8 = v6 + 1;\n  v9 = (((_DWORD)v4 << 12) | v5 & 0xFFF) << 16;\n  if ( v8 < 0xFFFF )\n    v7 = v8;\n  v10 = (2 * (v7 | v9)) | 1LL;\n  *(_QWORD *)(a1 + 80) = v10;\n  if ( a2 )\n    *(_DWORD *)(a1 + 468) = v10;\n  return 0;\n}", "assembly": "; \n; sub_1800CE750 from 0x1800ce750 to 0x1800ce7b4 (100 bytes)\n; \n; 2 xrefs:\n; > sub_1800E5F70 @ 0x1800e6024\n; > sub_1800E6060 @ 0x1800e6280\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     rax, [rcx+50h]                                                 ; +0x0, 0x1800ce750\nmov     r9, rcx                                                        ; +0x4, 0x1800ce754\nmov     r10, rax                                                       ; +0x7, 0x1800ce757\nmov     r8, rax                                                        ; +0xa, 0x1800ce75a\nshr     r10, 1Dh                                                       ; +0xd, 0x1800ce75d\nshr     r8, 11h                                                        ; +0x11, 0x1800ce761\ntest    dl, dl                                                         ; +0x15, 0x1800ce765\njnz     short loc_1800CE76F                                            ; +0x17, 0x1800ce767\nmov     eax, [rcx+1D4h]                                                ; +0x19, 0x1800ce769\nshr     rax, 1                                                         ; +0x1f, 0x1800ce76f\nand     r8d, 0FFFh                                                     ; +0x22, 0x1800ce772\nmovzx   ecx, ax                                                        ; +0x29, 0x1800ce779\nmov     eax, 1                                                         ; +0x2c, 0x1800ce77c\nshl     r10d, 0Ch                                                      ; +0x31, 0x1800ce781\ninc     ecx                                                            ; +0x35, 0x1800ce785\nor      r8d, r10d                                                      ; +0x37, 0x1800ce787\nshl     r8d, 10h                                                       ; +0x3a, 0x1800ce78a\ncmp     ecx, 0FFFFh                                                    ; +0x3e, 0x1800ce78e\ncmovb   eax, ecx                                                       ; +0x44, 0x1800ce794\nor      r8d, eax                                                       ; +0x47, 0x1800ce797\nlea     eax, [r8+r8]                                                   ; +0x4a, 0x1800ce79a\nor      rax, 1                                                         ; +0x4e, 0x1800ce79e\nmov     [r9+50h], rax                                                  ; +0x52, 0x1800ce7a2\ntest    dl, dl                                                         ; +0x56, 0x1800ce7a6\njz      short loc_1800CE7B1                                            ; +0x58, 0x1800ce7a8\nmov     [r9+1D4h], eax                                                 ; +0x5a, 0x1800ce7aa\nxor     eax, eax                                                       ; +0x61, 0x1800ce7b1\nretn                                                                   ; +0x63, 0x1800ce7b3", "xrefs": ["sub_1800E5F70 @ 0x1800e6024", "sub_1800E6060 @ 0x1800e6280"], "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"}