{"type": "func", "start": 6443054016, "end": 6443054335, "name": "sub_1800933C0", "pseudocode": "// \n// sub_1800933C0 from 0x1800933c0 to 0x1800934ff (319 bytes)\n// \n// 6 xrefs:\n// > sub_1800BC770 @ 0x1800bc968\n// > sub_1800BD620 @ 0x1800bd8c5\n// > sub_1800D7620 @ 0x1800d7910\n// > sub_1800FB700 @ 0x1800fb7ec\n// > sub_1800FBCA0 @ 0x1800fc0ec\n// > <???> @ 0x1801fa8a8\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_1800933C0(__int64 a1, _OWORD *a2, __int64 a3)\n{\n  __int64 result; // rax\n  __int128 v5; // xmm1\n  __int64 v6; // rax\n  _QWORD *v7; // rcx\n  __int64 (__fastcall *v8)(__int64 *, unsigned int, __int64, __int64, unsigned int, int); // rax\n  __int64 v9; // rax\n  __int64 v10; // rdx\n  int v11; // ecx\n  __int64 i; // r8\n  int v13; // eax\n  _DWORD *v14; // r9\n\n  if ( !a2 )\n    return 31;\n  *(_OWORD *)(a1 + 232) = *a2;\n  *(_OWORD *)(a1 + 248) = a2[1];\n  *(_OWORD *)(a1 + 264) = a2[2];\n  v5 = a2[3];\n  *(_QWORD *)(a1 + 104) = a1;\n  *(_DWORD *)(a1 + 96) = 0;\n  *(_OWORD *)(a1 + 280) = v5;\n  _InterlockedAnd((volatile signed __int32 *)(a1 + 100), 0xFFFFDFFF);\n  _InterlockedAnd((volatile signed __int32 *)(a1 + 100), 0xFFFFFFBF);\n  v6 = *(_QWORD *)(a1 + 168);\n  *(_DWORD *)(a1 + 196) = 0;\n  *(_DWORD *)(a1 + 448) = 0;\n  if ( (*(_DWORD *)(v6 + 120) & 0x200000) != 0 )\n  {\n    LOBYTE(a3) = 1;\n    sub_18009BA10(a1, 0, a3);\n  }\n  v7 = *(_QWORD **)(a1 + 232);\n  if ( v7 )\n  {\n    *(_QWORD *)(a1 + 496) = v7[23];\n    v8 = (__int64 (__fastcall *)(__int64 *, unsigned int, __int64, __int64, unsigned int, int))v7[10];\n    if ( !v8 )\n    {\n      if ( !v7[9] )\n      {\nLABEL_10:\n        result = sub_1800E2320(*(_QWORD *)(a1 + 168), 1048592, a1, 0);\n        if ( (_DWORD)result )\n          return result;\n        v9 = *(_QWORD *)(a1 + 232);\n        if ( *(_QWORD *)(v9 + 48) )\n        {\n          *(_QWORD *)(a1 + 176) = a1;\n          result = (*(__int64 (**)(void))(v9 + 48))();\n          if ( (_DWORD)result )\n            return result;\n        }\n        goto LABEL_13;\n      }\n      v8 = sub_1800922A0;\n    }\n    *(_QWORD *)(a1 + 296) = v8;\n    goto LABEL_10;\n  }\nLABEL_13:\n  v10 = *(_QWORD *)(a1 + 232);\n  v11 = 0;\n  for ( i = 0; ; i += 8 )\n  {\n    v13 = v10 ? *(_DWORD *)(v10 + 96) : 0;\n    if ( v11 >= v13 )\n      break;\n    v14 = *(_DWORD **)(i + *(_QWORD *)(v10 + 104));\n    if ( *v14 == 3 && v14[12] == -3 )\n    {\n      _InterlockedOr((volatile signed __int32 *)(a1 + 100), 8u);\n      return 0;\n    }\n    ++v11;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800933C0 from 0x1800933c0 to 0x1800934ff (319 bytes)\n; \n; 6 xrefs:\n; > sub_1800BC770 @ 0x1800bc968\n; > sub_1800BD620 @ 0x1800bd8c5\n; > sub_1800D7620 @ 0x1800d7910\n; > sub_1800FB700 @ 0x1800fb7ec\n; > sub_1800FBCA0 @ 0x1800fc0ec\n; > <???> @ 0x1801fa8a8\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\npush    rbx                                                            ; +0x0, 0x1800933c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800933c2\nmov     rbx, rcx                                                       ; +0x6, 0x1800933c6\ntest    rdx, rdx                                                       ; +0x9, 0x1800933c9\njnz     short loc_1800933D7                                            ; +0xc, 0x1800933cc\nlea     eax, [rdx+1Fh]                                                 ; +0xe, 0x1800933ce\nadd     rsp, 20h                                                       ; +0x11, 0x1800933d1\npop     rbx                                                            ; +0x15, 0x1800933d5\nretn                                                                   ; +0x16, 0x1800933d6\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x17, 0x1800933d7\nmovups  xmmword ptr [rcx+0E8h], xmm0                                   ; +0x1a, 0x1800933da\nmovups  xmm1, xmmword ptr [rdx+10h]                                    ; +0x21, 0x1800933e1\nmovups  xmmword ptr [rcx+0F8h], xmm1                                   ; +0x25, 0x1800933e5\nmovups  xmm0, xmmword ptr [rdx+20h]                                    ; +0x2c, 0x1800933ec\nmovups  xmmword ptr [rcx+108h], xmm0                                   ; +0x30, 0x1800933f0\nmovups  xmm1, xmmword ptr [rdx+30h]                                    ; +0x37, 0x1800933f7\nmov     [rcx+68h], rbx                                                 ; +0x3b, 0x1800933fb\nmov     dword ptr [rcx+60h], 0                                         ; +0x3f, 0x1800933ff\nmovups  xmmword ptr [rcx+118h], xmm1                                   ; +0x46, 0x180093406\nlock and dword ptr [rcx+64h], 0FFFFDFFFh                               ; +0x4d, 0x18009340d\nlock and dword ptr [rcx+64h], 0FFFFFFBFh                               ; +0x55, 0x180093415\nmov     rax, [rcx+0A8h]                                                ; +0x5a, 0x18009341a\nmov     dword ptr [rcx+0C4h], 0                                        ; +0x61, 0x180093421\nmov     dword ptr [rcx+1C0h], 0                                        ; +0x6b, 0x18009342b\ntest    dword ptr [rax+78h], 200000h                                   ; +0x75, 0x180093435\njz      short loc_180093448                                            ; +0x7c, 0x18009343c\nmov     r8b, 1                                                         ; +0x7e, 0x18009343e\nxor     edx, edx                                                       ; +0x81, 0x180093441\ncall    sub_18009BA10                                                  ; +0x83, 0x180093443\nmov     rcx, [rbx+0E8h]                                                ; +0x88, 0x180093448\ntest    rcx, rcx                                                       ; +0x8f, 0x18009344f\njz      short loc_1800934B9                                            ; +0x92, 0x180093452\nmov     rax, [rcx+0B8h]                                                ; +0x94, 0x180093454\nmov     [rbx+1F0h], rax                                                ; +0x9b, 0x18009345b\nmov     rax, [rcx+50h]                                                 ; +0xa2, 0x180093462\ntest    rax, rax                                                       ; +0xa6, 0x180093466\njnz     short loc_180093478                                            ; +0xa9, 0x180093469\ncmp     [rcx+48h], rax                                                 ; +0xab, 0x18009346b\njz      short loc_18009347F                                            ; +0xaf, 0x18009346f\nlea     rax, sub_1800922A0                                             ; +0xb1, 0x180093471\nmov     [rbx+128h], rax                                                ; +0xb8, 0x180093478\nmov     rcx, [rbx+0A8h]                                                ; +0xbf, 0x18009347f\nxor     r9d, r9d                                                       ; +0xc6, 0x180093486\nmov     r8, rbx                                                        ; +0xc9, 0x180093489\nmov     edx, 100010h                                                   ; +0xcc, 0x18009348c\ncall    sub_1800E2320                                                  ; +0xd1, 0x180093491\ntest    eax, eax                                                       ; +0xd6, 0x180093496\njnz     short loc_1800934F9                                            ; +0xd8, 0x180093498\nmov     rax, [rbx+0E8h]                                                ; +0xda, 0x18009349a\ncmp     qword ptr [rax+30h], 0                                         ; +0xe1, 0x1800934a1\njz      short loc_1800934B9                                            ; +0xe6, 0x1800934a6\nlea     rcx, [rbx+0B0h]                                                ; +0xe8, 0x1800934a8\nmov     [rcx], rbx                                                     ; +0xef, 0x1800934af\ncall    qword ptr [rax+30h]                                            ; +0xf2, 0x1800934b2\ntest    eax, eax                                                       ; +0xf5, 0x1800934b5\njnz     short loc_1800934F9                                            ; +0xf7, 0x1800934b7\nmov     rdx, [rbx+0E8h]                                                ; +0xf9, 0x1800934b9\nxor     ecx, ecx                                                       ; +0x100, 0x1800934c0\nxor     r8d, r8d                                                       ; +0x102, 0x1800934c2\ntest    rdx, rdx                                                       ; +0x105, 0x1800934c5\njz      short loc_1800934CF                                            ; +0x108, 0x1800934c8\nmov     eax, [rdx+60h]                                                 ; +0x10a, 0x1800934ca\njmp     short loc_1800934D1                                            ; +0x10d, 0x1800934cd\nxor     eax, eax                                                       ; +0x10f, 0x1800934cf\ncmp     ecx, eax                                                       ; +0x111, 0x1800934d1\njge     short loc_1800934F7                                            ; +0x113, 0x1800934d3\nmov     rax, [rdx+68h]                                                 ; +0x115, 0x1800934d5\nmov     r9, [r8+rax]                                                   ; +0x119, 0x1800934d9\ncmp     dword ptr [r9], 3                                              ; +0x11d, 0x1800934dd\njnz     short loc_1800934EA                                            ; +0x121, 0x1800934e1\ncmp     dword ptr [r9+30h], 0FFFFFFFDh                                 ; +0x123, 0x1800934e3\njz      short loc_1800934F2                                            ; +0x128, 0x1800934e8\ninc     ecx                                                            ; +0x12a, 0x1800934ea\nadd     r8, 8                                                          ; +0x12c, 0x1800934ec\njmp     short loc_1800934C5                                            ; +0x130, 0x1800934f0\nlock or dword ptr [rbx+64h], 8                                         ; +0x132, 0x1800934f2\nxor     eax, eax                                                       ; +0x137, 0x1800934f7\nadd     rsp, 20h                                                       ; +0x139, 0x1800934f9\npop     rbx                                                            ; +0x13d, 0x1800934fd\nretn                                                                   ; +0x13e, 0x1800934fe", "xrefs": ["sub_1800BC770 @ 0x1800bc968", "sub_1800BD620 @ 0x1800bd8c5", "sub_1800D7620 @ 0x1800d7910", "sub_1800FB700 @ 0x1800fb7ec", "sub_1800FBCA0 @ 0x1800fc0ec", "<???> @ 0x1801fa8a8"], "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"}