{"type": "func", "start": 6443329632, "end": 6443329876, "name": "sub_1800D6860", "pseudocode": "// \n// sub_1800D6860 from 0x1800d6860 to 0x1800d6954 (244 bytes)\n// \n// 1 xrefs:\n// > sub_1800D2A40 @ 0x1800d2ae0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:11 +0000\n// \n\n__int64 __fastcall sub_1800D6860(_QWORD *a1, __int64 a2)\n{\n  __int64 result; // rax\n  int v4; // eax\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // r9\n  _QWORD *v8; // rcx\n  __int64 v9; // rcx\n  __int64 v10; // rcx\n  __int64 v11; // rcx\n\n  result = *(unsigned int *)(a2 + 24);\n  if ( (result & 0x400) != 0 )\n  {\n    v4 = result & 0xFFFFFBFF;\n    *(_DWORD *)(a2 + 24) = v4;\n    if ( (v4 & 0x20) != 0 )\n    {\n      v5 = *(_QWORD *)(a2 + 48);\n      result = *(_QWORD *)(a2 + 72);\n      if ( v5 )\n      {\n        *(_QWORD *)(v5 + 72) = result;\n        v6 = *(_QWORD *)(a2 + 72);\n        if ( v6 )\n        {\n          result = *(_QWORD *)(a2 + 48);\n          *(_QWORD *)(v6 + 48) = result;\n        }\n      }\n      else\n      {\n        a1[3] = result;\n        if ( result )\n          *(_QWORD *)(result + 48) = 0;\n      }\n    }\n    else\n    {\n      result = a1[3];\n      v7 = *(_QWORD *)(result + 72);\n      a1[3] = v7;\n      if ( v7 )\n        *(_QWORD *)(v7 + 48) = 0;\n      *(_DWORD *)(result + 24) &= ~0x20u;\n      *(_QWORD *)(result + 72) = 0;\n      *(_OWORD *)result = *(_OWORD *)a2;\n      *(_OWORD *)(result + 16) = *(_OWORD *)(a2 + 16);\n      *(_OWORD *)(result + 32) = *(_OWORD *)(a2 + 32);\n      *(_OWORD *)(result + 48) = *(_OWORD *)(a2 + 48);\n      *(_OWORD *)(result + 64) = *(_OWORD *)(a2 + 64);\n      *(_DWORD *)(result + 24) |= 0x400u;\n      v8 = *(_QWORD **)(result + 48);\n      if ( v8 )\n      {\n        if ( v8[9] == a2 )\n        {\n          v8[9] = result;\n        }\n        else if ( v8[7] == a2 )\n        {\n          v8[7] = result;\n        }\n        else\n        {\n          v8[8] = result;\n        }\n      }\n      else\n      {\n        *a1 = result;\n      }\n      v9 = *(_QWORD *)(result + 72);\n      if ( v9 )\n        *(_QWORD *)(v9 + 48) = result;\n      v10 = *(_QWORD *)(result + 56);\n      if ( v10 )\n        *(_QWORD *)(v10 + 48) = result;\n      v11 = *(_QWORD *)(result + 64);\n      if ( v11 )\n        *(_QWORD *)(v11 + 48) = result;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D6860 from 0x1800d6860 to 0x1800d6954 (244 bytes)\n; \n; 1 xrefs:\n; > sub_1800D2A40 @ 0x1800d2ae0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:11 +0000\n; \nmov     eax, [rdx+18h]                                                 ; +0x0, 0x1800d6860\nmov     r8, rcx                                                        ; +0x3, 0x1800d6863\nbt      eax, 0Ah                                                       ; +0x6, 0x1800d6866\njnb     locret_1800D6953                                               ; +0xa, 0x1800d686a\nbtr     eax, 0Ah                                                       ; +0x10, 0x1800d6870\nmov     [rdx+18h], eax                                                 ; +0x14, 0x1800d6874\ntest    al, 20h                                                        ; +0x17, 0x1800d6877\njz      short loc_1800D68B6                                            ; +0x19, 0x1800d6879\nmov     rcx, [rdx+30h]                                                 ; +0x1b, 0x1800d687b\nmov     rax, [rdx+48h]                                                 ; +0x1f, 0x1800d687f\ntest    rcx, rcx                                                       ; +0x23, 0x1800d6883\njz      short loc_1800D68A2                                            ; +0x26, 0x1800d6886\nmov     [rcx+48h], rax                                                 ; +0x28, 0x1800d6888\nmov     rcx, [rdx+48h]                                                 ; +0x2c, 0x1800d688c\ntest    rcx, rcx                                                       ; +0x30, 0x1800d6890\njz      locret_1800D6953                                               ; +0x33, 0x1800d6893\nmov     rax, [rdx+30h]                                                 ; +0x39, 0x1800d6899\nmov     [rcx+30h], rax                                                 ; +0x3d, 0x1800d689d\nretn                                                                   ; +0x41, 0x1800d68a1\nmov     [r8+18h], rax                                                  ; +0x42, 0x1800d68a2\ntest    rax, rax                                                       ; +0x46, 0x1800d68a6\njz      locret_1800D6953                                               ; +0x49, 0x1800d68a9\nxor     ecx, ecx                                                       ; +0x4f, 0x1800d68af\nmov     [rax+30h], rcx                                                 ; +0x51, 0x1800d68b1\nretn                                                                   ; +0x55, 0x1800d68b5\nmov     rax, [rcx+18h]                                                 ; +0x56, 0x1800d68b6\nmov     r9, [rax+48h]                                                  ; +0x5a, 0x1800d68ba\nmov     [rcx+18h], r9                                                  ; +0x5e, 0x1800d68be\nxor     ecx, ecx                                                       ; +0x62, 0x1800d68c2\ntest    r9, r9                                                         ; +0x64, 0x1800d68c4\njz      short loc_1800D68CD                                            ; +0x67, 0x1800d68c7\nmov     [r9+30h], rcx                                                  ; +0x69, 0x1800d68c9\nand     dword ptr [rax+18h], 0FFFFFFDFh                                ; +0x6d, 0x1800d68cd\nmov     [rax+48h], rcx                                                 ; +0x71, 0x1800d68d1\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x75, 0x1800d68d5\nmovups  xmmword ptr [rax], xmm0                                        ; +0x78, 0x1800d68d8\nmovups  xmm1, xmmword ptr [rdx+10h]                                    ; +0x7b, 0x1800d68db\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x7f, 0x1800d68df\nmovups  xmm0, xmmword ptr [rdx+20h]                                    ; +0x83, 0x1800d68e3\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x87, 0x1800d68e7\nmovups  xmm1, xmmword ptr [rdx+30h]                                    ; +0x8b, 0x1800d68eb\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x8f, 0x1800d68ef\nmovups  xmm0, xmmword ptr [rdx+40h]                                    ; +0x93, 0x1800d68f3\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x97, 0x1800d68f7\nor      dword ptr [rax+18h], 400h                                      ; +0x9b, 0x1800d68fb\nmov     rcx, [rax+30h]                                                 ; +0xa2, 0x1800d6902\ntest    rcx, rcx                                                       ; +0xa6, 0x1800d6906\njz      short loc_1800D6929                                            ; +0xa9, 0x1800d6909\ncmp     [rcx+48h], rdx                                                 ; +0xab, 0x1800d690b\njnz     short loc_1800D6917                                            ; +0xaf, 0x1800d690f\nmov     [rcx+48h], rax                                                 ; +0xb1, 0x1800d6911\njmp     short loc_1800D692C                                            ; +0xb5, 0x1800d6915\ncmp     [rcx+38h], rdx                                                 ; +0xb7, 0x1800d6917\njnz     short loc_1800D6923                                            ; +0xbb, 0x1800d691b\nmov     [rcx+38h], rax                                                 ; +0xbd, 0x1800d691d\njmp     short loc_1800D692C                                            ; +0xc1, 0x1800d6921\nmov     [rcx+40h], rax                                                 ; +0xc3, 0x1800d6923\njmp     short loc_1800D692C                                            ; +0xc7, 0x1800d6927\nmov     [r8], rax                                                      ; +0xc9, 0x1800d6929\nmov     rcx, [rax+48h]                                                 ; +0xcc, 0x1800d692c\ntest    rcx, rcx                                                       ; +0xd0, 0x1800d6930\njz      short loc_1800D6939                                            ; +0xd3, 0x1800d6933\nmov     [rcx+30h], rax                                                 ; +0xd5, 0x1800d6935\nmov     rcx, [rax+38h]                                                 ; +0xd9, 0x1800d6939\ntest    rcx, rcx                                                       ; +0xdd, 0x1800d693d\njz      short loc_1800D6946                                            ; +0xe0, 0x1800d6940\nmov     [rcx+30h], rax                                                 ; +0xe2, 0x1800d6942\nmov     rcx, [rax+40h]                                                 ; +0xe6, 0x1800d6946\ntest    rcx, rcx                                                       ; +0xea, 0x1800d694a\njz      short locret_1800D6953                                         ; +0xed, 0x1800d694d\nmov     [rcx+30h], rax                                                 ; +0xef, 0x1800d694f\nretn                                                                   ; +0xf3, 0x1800d6953", "xrefs": ["sub_1800D2A40 @ 0x1800d2ae0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}