{"type": "func", "start": 6442518080, "end": 6442518133, "name": "sub_180010640", "pseudocode": "// \n// sub_180010640 from 0x180010640 to 0x180010675 (53 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c6e8\n// > <???> @ 0x18016c960\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_180010640(__int64 *a1, __int64 a2)\n{\n  int v2; // r8d\n  unsigned int v4; // eax\n  __int64 v5; // r8\n  __int64 v6; // rax\n\n  v2 = *((_DWORD *)a1 + 18);\n  if ( (_BYTE)a2 == ((v2 & 2) != 0) )\n    return 0;\n  v4 = v2 & 0xFFFFFFFD;\n  v5 = v2 | 2u;\n  if ( !(_BYTE)a2 )\n    v5 = v4;\n  v6 = *a1;\n  *((_DWORD *)a1 + 18) = v5;\n  LOBYTE(v5) = 1;\n  return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64))(v6 + 32))(a1, a2, v5);\n}", "assembly": "; \n; sub_180010640 from 0x180010640 to 0x180010675 (53 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c6e8\n; > <???> @ 0x18016c960\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+48h]                                                 ; +0x0, 0x180010640\nmov     eax, r8d                                                       ; +0x4, 0x180010644\nshr     eax, 1                                                         ; +0x7, 0x180010647\nand     al, 1                                                          ; +0x9, 0x180010649\ncmp     dl, al                                                         ; +0xb, 0x18001064b\njnz     short loc_180010652                                            ; +0xd, 0x18001064d\nxor     eax, eax                                                       ; +0xf, 0x18001064f\nretn                                                                   ; +0x11, 0x180010651\nmovss   xmm1, dword ptr [rcx+30h]                                      ; +0x12, 0x180010652\nmov     eax, r8d                                                       ; +0x17, 0x180010657\nand     eax, 0FFFFFFFDh                                                ; +0x1a, 0x18001065a\nor      r8d, 2                                                         ; +0x1d, 0x18001065d\ntest    dl, dl                                                         ; +0x21, 0x180010661\ncmovz   r8d, eax                                                       ; +0x23, 0x180010663\nmov     rax, [rcx]                                                     ; +0x27, 0x180010667\nmov     [rcx+48h], r8d                                                 ; +0x2a, 0x18001066a\nmov     r8b, 1                                                         ; +0x2e, 0x18001066e\njmp     qword ptr [rax+20h]                                            ; +0x31, 0x180010671", "xrefs": ["<???> @ 0x18016c6e8", "<???> @ 0x18016c960"], "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"}