{"type": "func", "start": 6443235712, "end": 6443238236, "name": "sub_1800BF980", "pseudocode": "// \n// sub_1800BF980 from 0x1800bf980 to 0x1800c035c (2524 bytes)\n// \n// 5 xrefs:\n// > sub_1800BF970 @ 0x1800bf970\n// > <???> @ 0x18018a4cc\n// > <???> @ 0x18018a4dc\n// > <???> @ 0x18018a4fc\n// > <???> @ 0x1801fd9bc\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:03 +0000\n// \n\n__int64 __fastcall sub_1800BF980(__int64 a1)\n{\n  unsigned int v1; // ebx\n  unsigned int v3; // r14d\n  __int64 v4; // rcx\n  __int64 result; // rax\n  HMODULE LibraryA; // rax\n  __int64 v7; // rcx\n  _QWORD *v8; // r12\n  int v9; // eax\n  unsigned __int64 v10; // r13\n  _QWORD *v11; // rax\n  __int64 v12; // rcx\n  int v13; // eax\n  __int64 v14; // rsi\n  unsigned int v15; // esi\n  _DWORD *v16; // rax\n  _DWORD *v17; // rbx\n  __int64 v18; // rdx\n  __int64 v19; // rax\n  __int16 v20; // cx\n  _DWORD *v21; // rdx\n  _DWORD *v22; // rbx\n  int v23; // eax\n  int v24; // eax\n  void *v25; // rax\n  unsigned __int16 i; // si\n  __int64 v27; // rbx\n  _DWORD *v28; // r8\n  unsigned int v29; // r9d\n  int v30; // [rsp+20h] [rbp-E0h]\n  _WORD v31[2]; // [rsp+40h] [rbp-C0h] BYREF\n  _WORD v32[2]; // [rsp+44h] [rbp-BCh] BYREF\n  __int64 v33; // [rsp+48h] [rbp-B8h] BYREF\n  unsigned int v34; // [rsp+50h] [rbp-B0h] BYREF\n  __int64 v35; // [rsp+58h] [rbp-A8h] BYREF\n  unsigned __int16 v36[2]; // [rsp+60h] [rbp-A0h] BYREF\n  int v37; // [rsp+64h] [rbp-9Ch] BYREF\n  int v38; // [rsp+68h] [rbp-98h] BYREF\n  __int64 v39; // [rsp+70h] [rbp-90h] BYREF\n  __int64 v40; // [rsp+78h] [rbp-88h] BYREF\n  __int64 v41; // [rsp+80h] [rbp-80h]\n  _QWORD v42[3]; // [rsp+88h] [rbp-78h] BYREF\n  wchar_t Source[256]; // [rsp+A0h] [rbp-60h] BYREF\n\n  v1 = 0;\n  *(_DWORD *)(a1 + 40) = 2;\n  *(_QWORD *)(a1 + 288) = 0;\n  *(_QWORD *)(a1 + 296) = 0;\n  *(_QWORD *)(a1 + 304) = 0;\n  v3 = 0;\n  *(_QWORD *)(a1 + 328) = 0;\n  *(_QWORD *)(a1 + 312) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_DWORD *)(a1 + 24) = 0;\n  *(_QWORD *)(a1 + 8) = 0;\n  v4 = *(_QWORD *)(a1 + 368);\n  v38 = 2;\n  v39 = 0;\n  result = sub_1800B3470(v4, (unsigned __int8 *)v42, 1, 16, nullptr);\n  if ( !(_DWORD)result )\n  {\n    if ( v42[0] != 0x11CF668E75B22630LL || v42[1] != 0x6CCE6200AA00D9A6LL )\n      return 19;\n    *(_BYTE *)(a1 + 408) = 1;\n    *(_QWORD *)(a1 + 416) = 0;\n    *(_DWORD *)(a1 + 412) = 0;\n    if ( !WMCreateSyncReader )\n    {\n      LibraryA = hModule;\n      if ( !hModule )\n      {\n        LibraryA = LoadLibraryA(\"wmvcore.dll\");\n        hModule = LibraryA;\n        if ( !LibraryA )\n          return 55;\n      }\n      WMCreateSyncReader = (HRESULT (__stdcall *)(IUnknown *, DWORD, IWMSyncReader **))GetProcAddress(\n                                                                                         LibraryA,\n                                                                                         \"WMCreateSyncReader\");\n      if ( !WMCreateSyncReader )\n        return 55;\n    }\n    *(_OWORD *)(a1 + 432) = 0;\n    *(_OWORD *)(a1 + 448) = 0;\n    *(_OWORD *)(a1 + 464) = 0;\n    *(_QWORD *)(a1 + 480) = 0;\n    v7 = *(_QWORD *)(a1 + 368);\n    *(_QWORD *)(a1 + 8) = a1 + 432;\n    result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 16LL))(v7, a1 + 452);\n    if ( !(_DWORD)result )\n    {\n      result = sub_1800B3990(*(__int64 **)(a1 + 368), 0, 0);\n      if ( !(_DWORD)result )\n      {\n        v8 = (_QWORD *)(a1 + 376);\n        v9 = ((__int64 (__fastcall *)(_QWORD, _QWORD, __int64))WMCreateSyncReader)(0, 0, a1 + 376);\n        if ( v9 < 0 )\n          goto LABEL_17;\n        v10 = 24;\n        v11 = sub_1800B6880(\n                *((_QWORD *)off_1801AED20 + 52),\n                24,\n                \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_codec_asf.cpp\",\n                224,\n                0);\n        if ( !v11 )\n        {\n          *(_QWORD *)(a1 + 384) = 0;\n          return 38;\n        }\n        v11[1] = 0;\n        *v11 = off_18016C0B8;\n        *((_DWORD *)v11 + 4) = 1;\n        v12 = *(_QWORD *)(a1 + 368);\n        *(_QWORD *)(a1 + 384) = v11;\n        v11[1] = v12;\n        v13 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v8 + 184LL))(*v8, *(_QWORD *)(a1 + 384));\n        if ( v13 != -2147221008 )\n        {\nLABEL_22:\n          if ( v13 < 0 || (**(int (__fastcall ***)(_QWORD, void *, __int64 *))*v8)(*v8, &unk_18016C0A8, &v39) < 0 )\n            return 19;\n          v14 = v39;\n          v35 = 0;\n          LODWORD(v33) = 0;\n          if ( !v39 )\n            return 31;\n          if ( (*(int (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 64LL))(v39, &v33) < 0 )\n            return 13;\n          *(_DWORD *)(a1 + 392) = 0;\n          if ( (_DWORD)v33 )\n          {\n            while ( (*(int (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)v14 + 72LL))(v14, v1, &v35) >= 0 )\n            {\n              v31[0] = 0;\n              if ( (*(int (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v35 + 32LL))(v35, v31) < 0\n                || (*(int (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 24LL))(v35, &v40) < 0 )\n              {\n                break;\n              }\n              if ( v40 == 0x10000073647561LL && v41 == 0x719B3800AA000080LL )\n              {\n                *(_WORD *)(a1 + 392) = v31[0];\n              }\n              else if ( v40 == 0x10000073646976LL && v41 == 0x719B3800AA000080LL )\n              {\n                *(_WORD *)(a1 + 394) = v31[0];\n              }\n              if ( v35 )\n                (*(void (__fastcall **)(__int64))(*(_QWORD *)v35 + 16LL))(v35);\n              if ( ++v1 >= (unsigned int)v33 )\n                goto LABEL_40;\n            }\n            return 13;\n          }\nLABEL_40:\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v39 + 16LL))(v39);\n          if ( (*(int (__fastcall **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)*v8 + 40LL))(*v8, 0, 0) < 0\n            || (*(int (__fastcall **)(_QWORD, __int64, __int64, int *))(*(_QWORD *)*v8 + 64LL))(*v8, 1, a1 + 392, &v38) < 0\n            || (*(int (__fastcall **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)*v8 + 80LL))(\n                 *v8,\n                 *(unsigned __int16 *)(a1 + 392),\n                 0) < 0 )\n          {\n            return 19;\n          }\n          (*(void (__fastcall **)(_QWORD, int *))(*(_QWORD *)*v8 + 112LL))(*v8, &v37);\n          v15 = 0;\n          if ( v37 > 0 )\n          {\n            while ( (*(int (__fastcall **)(_QWORD, _QWORD, _QWORD, __int64 *, int))(*(_QWORD *)*v8 + 144LL))(\n                      *v8,\n                      v15,\n                      0,\n                      &v33,\n                      v30) >= 0 )\n            {\n              if ( (*(int (__fastcall **)(__int64, _QWORD, unsigned int *))(*(_QWORD *)v33 + 32LL))(v33, 0, &v34) < 0 )\n                goto LABEL_71;\n              v16 = sub_1800B6880(\n                      *((_QWORD *)off_1801AED20 + 52),\n                      v34,\n                      \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_codec_asf.cpp\",\n                      338,\n                      0);\n              v17 = v16;\n              if ( !v16 )\n              {\n                (*(void (__fastcall **)(__int64))(*(_QWORD *)v33 + 16LL))(v33);\n                return 38;\n              }\n              if ( (*(int (__fastcall **)(__int64, _DWORD *, unsigned int *))(*(_QWORD *)v33 + 32LL))(v33, v16, &v34) < 0 )\n              {\nLABEL_71:\n                (*(void (__fastcall **)(__int64))(*(_QWORD *)v33 + 16LL))(v33);\n                return 19;\n              }\n              if ( v17[10] > v3 )\n                v3 = v17[10];\n              if ( *(_QWORD *)(v17 + 11) == 0x11CEC35605589F81LL && *(_QWORD *)(v17 + 13) == 0x5A595500AA0001BFLL )\n              {\n                v18 = *((_QWORD *)v17 + 10);\n                v19 = *(_QWORD *)(a1 + 8);\n                v20 = *(_WORD *)(v18 + 14);\n                switch ( v20 )\n                {\n                  case 8:\n                    *(_DWORD *)(v19 + 8) = 1;\n                    break;\n                  case 16:\n                    *(_DWORD *)(v19 + 8) = 2;\n                    break;\n                  case 24:\n                    *(_DWORD *)(v19 + 8) = 3;\n                    break;\n                  case 32:\n                    *(_DWORD *)(v19 + 8) = 4;\n                    break;\n                  default:\n                    (*(void (__fastcall **)(__int64))(*(_QWORD *)v33 + 16LL))(v33);\n                    goto LABEL_69;\n                }\n                *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL) = *(unsigned __int16 *)(v18 + 2);\n                *(_DWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_DWORD *)(v18 + 4);\n              }\n              (*(void (__fastcall **)(__int64))(*(_QWORD *)v33 + 16LL))(v33);\n              LOBYTE(v30) = 1;\n              sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v17);\n              if ( (int)++v15 >= v37 )\n                goto LABEL_63;\n            }\n            return 19;\n          }\nLABEL_63:\n          if ( (**(int (__fastcall ***)(_QWORD, void *, __int64 *))*v8)(*v8, &unk_18016C098, &v35) < 0 )\n            return 19;\n          v31[0] = 0;\n          if ( (*(int (__fastcall **)(__int64, _WORD *, const wchar_t *, unsigned int *, _QWORD, _WORD *))(*(_QWORD *)v35 + 40LL))(\n                 v35,\n                 v31,\n                 L\"Duration\",\n                 &v34,\n                 0,\n                 v32) < 0 )\n            return 19;\n          v17 = sub_1800B6880(\n                  *((_QWORD *)off_1801AED20 + 52),\n                  v32[0],\n                  \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_codec_asf.cpp\",\n                  409,\n                  0);\n          if ( !v17 )\n            return 38;\n          if ( (*(int (__fastcall **)(__int64, _WORD *, const wchar_t *, unsigned int *, _DWORD *, _WORD *))(*(_QWORD *)v35 + 40LL))(\n                 v35,\n                 v31,\n                 L\"Duration\",\n                 &v34,\n                 v17,\n                 v32) < 0 )\n          {\nLABEL_69:\n            v21 = v17;\n            goto LABEL_70;\n          }\n          *(_DWORD *)(*(_QWORD *)(a1 + 8) + 24LL) = *(_QWORD *)v17\n                                                  * *(int *)(*(_QWORD *)(a1 + 8) + 16LL)\n                                                  / 0x2710uLL\n                                                  / 0x3E8;\n          sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v17);\n          if ( (*(int (__fastcall **)(__int64, _WORD *, const wchar_t *, unsigned int *, _QWORD, _WORD *))(*(_QWORD *)v35 + 40LL))(\n                 v35,\n                 v31,\n                 L\"Seekable\",\n                 &v34,\n                 0,\n                 v32) < 0 )\n            return 19;\n          v22 = sub_1800B6880(\n                  *((_QWORD *)off_1801AED20 + 52),\n                  v32[0],\n                  \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_codec_asf.cpp\",\n                  440,\n                  0);\n          if ( !v22 )\n            return 38;\n          v23 = (*(__int64 (__fastcall **)(__int64, _WORD *, const wchar_t *, unsigned int *, _DWORD *, _WORD *))(*(_QWORD *)v35 + 40LL))(\n                  v35,\n                  v31,\n                  L\"Seekable\",\n                  &v34,\n                  v22,\n                  v32);\n          v21 = v22;\n          if ( v23 < 0 )\n          {\nLABEL_70:\n            sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v21);\n            return 19;\n          }\n          *(_BYTE *)(a1 + 408) = *v22 != 0;\n          sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v22);\n          if ( (*(int (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 56LL))(v35, &v33) < 0 )\n            return 19;\n          v24 = (unsigned __int16)v33;\n          if ( (_WORD)v33 )\n          {\n            *(_DWORD *)(a1 + 412) = (unsigned __int16)v33;\n            v25 = sub_1800B6530(\n                    *((_QWORD *)off_1801AED20 + 52),\n                    (unsigned int)(316 * v24),\n                    \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_codec_asf.cpp\",\n                    472,\n                    0,\n                    0,\n                    1);\n            *(_QWORD *)(a1 + 416) = v25;\n            if ( !v25 )\n              return 38;\n            for ( i = 0;\n                  i < *(int *)(a1 + 412);\n                  *(_DWORD *)(v27 + 48) = v40 * *(int *)(*(_QWORD *)(a1 + 8) + 16LL) / 0x989680uLL )\n            {\n              v36[0] = 256;\n              v27 = *(_QWORD *)(a1 + 416) + 316LL * i;\n              *(_QWORD *)(v27 + 32) = v27 + 60;\n              (*(void (__fastcall **)(__int64, _QWORD, wchar_t *, unsigned __int16 *, __int64 *))(*(_QWORD *)v35 + 64LL))(\n                v35,\n                i,\n                Source,\n                v36,\n                &v40);\n              wcstombs(*(char **)(v27 + 32), Source, v36[0]);\n              ++i;\n            }\n          }\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v35 + 16LL))(v35);\n          v28 = *(_DWORD **)(a1 + 8);\n          if ( !v3 )\n            v3 = 0x10000;\n          v29 = v28[3];\n          if ( v29 )\n          {\n            if ( v28[2] == 1 )\n            {\n              v10 = 8;\n            }\n            else if ( v28[2] == 2 )\n            {\n              v10 = 16;\n            }\n            else if ( v28[2] != 3 )\n            {\n              if ( (unsigned int)(v28[2] - 4) >= 2 )\n              {\n                v28[7] = v3;\n                goto LABEL_93;\n              }\n              v10 = 32;\n            }\n            v28[7] = (unsigned int)(8 * (unsigned __int64)v3 / v10) / v29;\n          }\nLABEL_93:\n          *(_QWORD *)(a1 + 400) = 0;\n          *(_DWORD *)(a1 + 272) = 0;\n          *(_DWORD *)(a1 + 24) = 0;\n          return 0;\n        }\n        if ( CoInitializeEx(nullptr, 2u) < 0 )\n          return 28;\n        (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v8 + 16LL))(*v8);\n        v9 = ((__int64 (__fastcall *)(_QWORD, _QWORD, __int64))WMCreateSyncReader)(0, 0, a1 + 376);\n        if ( v9 < 0 )\n        {\nLABEL_17:\n          if ( v9 != -2147024882 )\n            return 19;\n          return 38;\n        }\n        result = sub_1800B3990(*(__int64 **)(a1 + 368), 0, 0);\n        if ( !(_DWORD)result )\n        {\n          v13 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v8 + 184LL))(*v8, *(_QWORD *)(a1 + 384));\n          goto LABEL_22;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800BF980 from 0x1800bf980 to 0x1800c035c (2524 bytes)\n; \n; 5 xrefs:\n; > sub_1800BF970 @ 0x1800bf970\n; > <???> @ 0x18018a4cc\n; > <???> @ 0x18018a4dc\n; > <???> @ 0x18018a4fc\n; > <???> @ 0x1801fd9bc\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:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x1800bf980\npush    rbx                                                            ; +0x2, 0x1800bf982\npush    rdi                                                            ; +0x3, 0x1800bf983\npush    r14                                                            ; +0x4, 0x1800bf984\nlea     rbp, [rsp-1B8h]                                                ; +0x6, 0x1800bf986\nsub     rsp, 2B8h                                                      ; +0xe, 0x1800bf98e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x1800bf995\nxor     rax, rsp                                                       ; +0x1c, 0x1800bf99c\nmov     [rbp+1D0h+var_30], rax                                         ; +0x1f, 0x1800bf99f\nxor     ebx, ebx                                                       ; +0x26, 0x1800bf9a6\nmov     dword ptr [rcx+28h], 2                                         ; +0x28, 0x1800bf9a8\nmov     rdi, rcx                                                       ; +0x2f, 0x1800bf9af\nmov     [rcx+120h], rbx                                                ; +0x32, 0x1800bf9b2\nmov     [rcx+128h], rbx                                                ; +0x39, 0x1800bf9b9\nlea     rdx, [rbp+1D0h+var_248]                                        ; +0x40, 0x1800bf9c0\nmov     [rcx+130h], rbx                                                ; +0x44, 0x1800bf9c4\nmov     r14d, ebx                                                      ; +0x4b, 0x1800bf9cb\nmov     [rcx+148h], rbx                                                ; +0x4e, 0x1800bf9ce\nlea     r9d, [rbx+10h]                                                 ; +0x55, 0x1800bf9d5\nmov     [rcx+138h], rbx                                                ; +0x59, 0x1800bf9d9\nlea     r8d, [rbx+1]                                                   ; +0x60, 0x1800bf9e0\nmov     [rcx+168h], rbx                                                ; +0x64, 0x1800bf9e4\nmov     [rcx+18h], ebx                                                 ; +0x6b, 0x1800bf9eb\nmov     [rcx+8], rbx                                                   ; +0x6e, 0x1800bf9ee\nmov     rcx, [rcx+170h]                                                ; +0x72, 0x1800bf9f2\nmov     [rsp+2D0h+var_268], 2                                          ; +0x79, 0x1800bf9f9\nmov     [rsp+2D0h+var_260], rbx                                        ; +0x81, 0x1800bfa01\nmov     [rsp+2D0h+var_2B0], rbx                                        ; +0x86, 0x1800bfa06\ncall    sub_1800B3470                                                  ; +0x8b, 0x1800bfa0b\ntest    eax, eax                                                       ; +0x90, 0x1800bfa10\njnz     loc_1800BFC0C                                                  ; +0x92, 0x1800bfa12\nmov     rax, [rbp+1D0h+var_248]                                        ; +0x98, 0x1800bfa18\ncmp     rax, cs:qword_18016C058                                        ; +0x9c, 0x1800bfa1c\nmov     [rsp+2D0h+arg_8], rsi                                          ; +0xa3, 0x1800bfa23\nmov     [rsp+2D0h+arg_10], r12                                         ; +0xab, 0x1800bfa2b\nmov     [rsp+2D0h+arg_18], r13                                         ; +0xb3, 0x1800bfa33\nmov     [rsp+2D0h+var_20], r15                                         ; +0xbb, 0x1800bfa3b\njnz     loc_1800BFBE7                                                  ; +0xc3, 0x1800bfa43\nmov     rax, [rbp+1D0h+var_240]                                        ; +0xc9, 0x1800bfa49\ncmp     rax, cs:qword_18016C060                                        ; +0xcd, 0x1800bfa4d\njnz     loc_1800BFBE7                                                  ; +0xd4, 0x1800bfa54\nmov     byte ptr [rdi+198h], 1                                         ; +0xda, 0x1800bfa5a\nmov     [rdi+1A0h], rbx                                                ; +0xe1, 0x1800bfa61\nmov     [rdi+19Ch], ebx                                                ; +0xe8, 0x1800bfa68\ncmp     cs:WMCreateSyncReader, rbx                                     ; +0xee, 0x1800bfa6e\njnz     short loc_1800BFAC2                                            ; +0xf5, 0x1800bfa75\nmov     rax, cs:hModule                                                ; +0xf7, 0x1800bfa77\ntest    rax, rax                                                       ; +0xfe, 0x1800bfa7e\njnz     short loc_1800BFA9C                                            ; +0x101, 0x1800bfa81\nlea     rcx, LibFileName; \"wmvcore.dll\"                                ; +0x103, 0x1800bfa83\ncall    cs:LoadLibraryA                                                ; +0x10a, 0x1800bfa8a\nmov     cs:hModule, rax                                                ; +0x110, 0x1800bfa90\ntest    rax, rax                                                       ; +0x117, 0x1800bfa97\njz      short loc_1800BFAB8                                            ; +0x11a, 0x1800bfa9a\nlea     rdx, ProcName; \"WMCreateSyncReader\"                            ; +0x11c, 0x1800bfa9c\nmov     rcx, rax; hModule                                              ; +0x123, 0x1800bfaa3\ncall    cs:GetProcAddress                                              ; +0x126, 0x1800bfaa6\nmov     cs:WMCreateSyncReader, rax                                     ; +0x12c, 0x1800bfaac\ntest    rax, rax                                                       ; +0x133, 0x1800bfab3\njnz     short loc_1800BFAC2                                            ; +0x136, 0x1800bfab6\nmov     eax, 37h ; '7'                                                 ; +0x138, 0x1800bfab8\njmp     loc_1800BFBEC                                                  ; +0x13d, 0x1800bfabd\nlea     rdx, [rdi+1B0h]                                                ; +0x142, 0x1800bfac2\nxorps   xmm0, xmm0                                                     ; +0x149, 0x1800bfac9\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x14c, 0x1800bfacc\nxor     eax, eax                                                       ; +0x14f, 0x1800bfacf\nmovups  xmmword ptr [rdx+10h], xmm0                                    ; +0x151, 0x1800bfad1\nmovups  xmmword ptr [rdx+20h], xmm0                                    ; +0x155, 0x1800bfad5\nmov     [rdx+30h], rax                                                 ; +0x159, 0x1800bfad9\nmov     rcx, [rdi+170h]                                                ; +0x15d, 0x1800bfadd\nmov     [rdi+8], rdx                                                   ; +0x164, 0x1800bfae4\nadd     rdx, 14h                                                       ; +0x168, 0x1800bfae8\nmov     rax, [rcx]                                                     ; +0x16c, 0x1800bfaec\ncall    qword ptr [rax+10h]                                            ; +0x16f, 0x1800bfaef\ntest    eax, eax                                                       ; +0x172, 0x1800bfaf2\njnz     loc_1800BFBEC                                                  ; +0x174, 0x1800bfaf4\nmov     rcx, [rdi+170h]                                                ; +0x17a, 0x1800bfafa\nxor     r8d, r8d                                                       ; +0x181, 0x1800bfb01\nxor     edx, edx                                                       ; +0x184, 0x1800bfb04\ncall    sub_1800B3990                                                  ; +0x186, 0x1800bfb06\ntest    eax, eax                                                       ; +0x18b, 0x1800bfb0b\njnz     loc_1800BFBEC                                                  ; +0x18d, 0x1800bfb0d\nlea     r12, [rdi+178h]                                                ; +0x193, 0x1800bfb13\nxor     edx, edx                                                       ; +0x19a, 0x1800bfb1a\nmov     r8, r12                                                        ; +0x19c, 0x1800bfb1c\nxor     ecx, ecx                                                       ; +0x19f, 0x1800bfb1f\ncall    cs:WMCreateSyncReader                                          ; +0x1a1, 0x1800bfb21\ntest    eax, eax                                                       ; +0x1a7, 0x1800bfb27\njs      loc_1800BFBDC                                                  ; +0x1a9, 0x1800bfb29\nmov     rcx, cs:off_1801AED20                                          ; +0x1af, 0x1800bfb2f\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x1b6, 0x1800bfb36\nmov     r13d, 18h                                                      ; +0x1bd, 0x1800bfb3d\nmov     dword ptr [rsp+2D0h+var_2B0], ebx                              ; +0x1c3, 0x1800bfb43\nmov     r9d, 0E0h                                                      ; +0x1c7, 0x1800bfb47\nmov     edx, r13d                                                      ; +0x1cd, 0x1800bfb4d\nmov     rcx, [rcx+1A0h]                                                ; +0x1d0, 0x1800bfb50\ncall    sub_1800B6880                                                  ; +0x1d7, 0x1800bfb57\ntest    rax, rax                                                       ; +0x1dc, 0x1800bfb5c\njz      loc_1800C034B                                                  ; +0x1df, 0x1800bfb5f\nmov     [rax+8], rbx                                                   ; +0x1e5, 0x1800bfb65\nlea     rcx, off_18016C0B8                                             ; +0x1e9, 0x1800bfb69\nmov     [rax], rcx                                                     ; +0x1f0, 0x1800bfb70\nmov     dword ptr [rax+10h], 1                                         ; +0x1f3, 0x1800bfb73\nmov     rcx, [rdi+170h]                                                ; +0x1fa, 0x1800bfb7a\nmov     [rdi+180h], rax                                                ; +0x201, 0x1800bfb81\nmov     [rax+8], rcx                                                   ; +0x208, 0x1800bfb88\nmov     rcx, [r12]                                                     ; +0x20c, 0x1800bfb8c\nmov     rdx, [rdi+180h]                                                ; +0x210, 0x1800bfb90\nmov     rax, [rcx]                                                     ; +0x217, 0x1800bfb97\ncall    qword ptr [rax+0B8h]                                           ; +0x21a, 0x1800bfb9a\ncmp     eax, 800401F0h                                                 ; +0x220, 0x1800bfba0\njnz     loc_1800BFC51                                                  ; +0x225, 0x1800bfba5\nlea     edx, [r13-16h]; dwCoInit                                       ; +0x22b, 0x1800bfbab\nxor     ecx, ecx; pvReserved                                           ; +0x22f, 0x1800bfbaf\ncall    cs:CoInitializeEx                                              ; +0x231, 0x1800bfbb1\ntest    eax, eax                                                       ; +0x237, 0x1800bfbb7\njns     short loc_1800BFBC1                                            ; +0x239, 0x1800bfbb9\nlea     eax, [r13+4]                                                   ; +0x23b, 0x1800bfbbb\njmp     short loc_1800BFBEC                                            ; +0x23f, 0x1800bfbbf\nmov     rcx, [r12]                                                     ; +0x241, 0x1800bfbc1\nmov     rax, [rcx]                                                     ; +0x245, 0x1800bfbc5\ncall    qword ptr [rax+10h]                                            ; +0x248, 0x1800bfbc8\nmov     r8, r12                                                        ; +0x24b, 0x1800bfbcb\nxor     edx, edx                                                       ; +0x24e, 0x1800bfbce\nxor     ecx, ecx                                                       ; +0x250, 0x1800bfbd0\ncall    cs:WMCreateSyncReader                                          ; +0x252, 0x1800bfbd2\ntest    eax, eax                                                       ; +0x258, 0x1800bfbd8\njns     short loc_1800BFC28                                            ; +0x25a, 0x1800bfbda\ncmp     eax, 8007000Eh                                                 ; +0x25c, 0x1800bfbdc\njz      loc_1800C0352                                                  ; +0x261, 0x1800bfbe1\nmov     eax, 13h                                                       ; +0x267, 0x1800bfbe7\nmov     r13, [rsp+2D0h+arg_18]                                         ; +0x26c, 0x1800bfbec\nmov     r12, [rsp+2D0h+arg_10]                                         ; +0x274, 0x1800bfbf4\nmov     rsi, [rsp+2D0h+arg_8]                                          ; +0x27c, 0x1800bfbfc\nmov     r15, [rsp+2D0h+var_20]                                         ; +0x284, 0x1800bfc04\nmov     rcx, [rbp+1D0h+var_30]                                         ; +0x28c, 0x1800bfc0c\nxor     rcx, rsp; StackCookie                                          ; +0x293, 0x1800bfc13\ncall    __security_check_cookie                                        ; +0x296, 0x1800bfc16\nadd     rsp, 2B8h                                                      ; +0x29b, 0x1800bfc1b\npop     r14                                                            ; +0x2a2, 0x1800bfc22\npop     rdi                                                            ; +0x2a4, 0x1800bfc24\npop     rbx                                                            ; +0x2a5, 0x1800bfc25\npop     rbp                                                            ; +0x2a6, 0x1800bfc26\nretn                                                                   ; +0x2a7, 0x1800bfc27\nmov     rcx, [rdi+170h]                                                ; +0x2a8, 0x1800bfc28\nxor     r8d, r8d                                                       ; +0x2af, 0x1800bfc2f\nxor     edx, edx                                                       ; +0x2b2, 0x1800bfc32\ncall    sub_1800B3990                                                  ; +0x2b4, 0x1800bfc34\ntest    eax, eax                                                       ; +0x2b9, 0x1800bfc39\njnz     short loc_1800BFBEC                                            ; +0x2bb, 0x1800bfc3b\nmov     rcx, [r12]                                                     ; +0x2bd, 0x1800bfc3d\nmov     rdx, [rdi+180h]                                                ; +0x2c1, 0x1800bfc41\nmov     rax, [rcx]                                                     ; +0x2c8, 0x1800bfc48\ncall    qword ptr [rax+0B8h]                                           ; +0x2cb, 0x1800bfc4b\ntest    eax, eax                                                       ; +0x2d1, 0x1800bfc51\njs      short loc_1800BFBE7                                            ; +0x2d3, 0x1800bfc53\nmov     rcx, [r12]                                                     ; +0x2d5, 0x1800bfc55\nlea     r8, [rsp+2D0h+var_260]                                         ; +0x2d9, 0x1800bfc59\nlea     rdx, unk_18016C0A8                                             ; +0x2de, 0x1800bfc5e\nmov     rax, [rcx]                                                     ; +0x2e5, 0x1800bfc65\ncall    qword ptr [rax]                                                ; +0x2e8, 0x1800bfc68\ntest    eax, eax                                                       ; +0x2ea, 0x1800bfc6a\njs      loc_1800BFBE7                                                  ; +0x2ec, 0x1800bfc6c\nmov     rsi, [rsp+2D0h+var_260]                                        ; +0x2f2, 0x1800bfc72\nmov     [rsp+2D0h+var_278], rbx                                        ; +0x2f7, 0x1800bfc77\nmov     dword ptr [rsp+2D0h+var_288], ebx                              ; +0x2fc, 0x1800bfc7c\ntest    rsi, rsi                                                       ; +0x300, 0x1800bfc80\njnz     short loc_1800BFC8D                                            ; +0x303, 0x1800bfc83\nlea     eax, [rsi+1Fh]                                                 ; +0x305, 0x1800bfc85\njmp     loc_1800BFBEC                                                  ; +0x308, 0x1800bfc88\nmov     rax, [rsi]                                                     ; +0x30d, 0x1800bfc8d\nlea     rdx, [rsp+2D0h+var_288]                                        ; +0x310, 0x1800bfc90\nmov     rcx, rsi                                                       ; +0x315, 0x1800bfc95\ncall    qword ptr [rax+40h]                                            ; +0x318, 0x1800bfc98\ntest    eax, eax                                                       ; +0x31b, 0x1800bfc9b\njs      loc_1800BFEDE                                                  ; +0x31d, 0x1800bfc9d\nmov     [rdi+188h], ebx                                                ; +0x323, 0x1800bfca3\ncmp     dword ptr [rsp+2D0h+var_288], ebx                              ; +0x329, 0x1800bfca9\njbe     loc_1800BFD72                                                  ; +0x32d, 0x1800bfcad\nnop     dword ptr [rax+00h]                                            ; +0x333, 0x1800bfcb3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x337, 0x1800bfcb7\nmov     rax, [rsi]                                                     ; +0x340, 0x1800bfcc0\nlea     r8, [rsp+2D0h+var_278]                                         ; +0x343, 0x1800bfcc3\nmov     edx, ebx                                                       ; +0x348, 0x1800bfcc8\nmov     rcx, rsi                                                       ; +0x34a, 0x1800bfcca\ncall    qword ptr [rax+48h]                                            ; +0x34d, 0x1800bfccd\ntest    eax, eax                                                       ; +0x350, 0x1800bfcd0\njs      loc_1800BFEDE                                                  ; +0x352, 0x1800bfcd2\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x358, 0x1800bfcd8\nlea     rdx, [rsp+2D0h+var_290]                                        ; +0x35d, 0x1800bfcdd\nxor     eax, eax                                                       ; +0x362, 0x1800bfce2\nmov     [rsp+2D0h+var_290], ax                                         ; +0x364, 0x1800bfce4\nmov     rax, [rcx]                                                     ; +0x369, 0x1800bfce9\ncall    qword ptr [rax+20h]                                            ; +0x36c, 0x1800bfcec\ntest    eax, eax                                                       ; +0x36f, 0x1800bfcef\njs      loc_1800BFEDE                                                  ; +0x371, 0x1800bfcf1\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x377, 0x1800bfcf7\nlea     rdx, [rsp+2D0h+var_258]                                        ; +0x37c, 0x1800bfcfc\nmov     rax, [rcx]                                                     ; +0x381, 0x1800bfd01\ncall    qword ptr [rax+18h]                                            ; +0x384, 0x1800bfd04\ntest    eax, eax                                                       ; +0x387, 0x1800bfd07\njs      loc_1800BFEDE                                                  ; +0x389, 0x1800bfd09\nmov     rcx, [rsp+2D0h+var_258]                                        ; +0x38f, 0x1800bfd0f\ncmp     cs:qword_18016C078, rcx                                        ; +0x394, 0x1800bfd14\nmov     rax, [rbp+1D0h+var_250]                                        ; +0x39b, 0x1800bfd1b\njnz     short loc_1800BFD38                                            ; +0x39f, 0x1800bfd1f\ncmp     cs:qword_18016C080, rax                                        ; +0x3a1, 0x1800bfd21\njnz     short loc_1800BFD38                                            ; +0x3a8, 0x1800bfd28\nmovzx   eax, [rsp+2D0h+var_290]                                        ; +0x3aa, 0x1800bfd2a\nmov     [rdi+188h], ax                                                 ; +0x3af, 0x1800bfd2f\njmp     short loc_1800BFD56                                            ; +0x3b6, 0x1800bfd36\ncmp     cs:qword_18016C068, rcx                                        ; +0x3b8, 0x1800bfd38\njnz     short loc_1800BFD56                                            ; +0x3bf, 0x1800bfd3f\ncmp     cs:qword_18016C070, rax                                        ; +0x3c1, 0x1800bfd41\njnz     short loc_1800BFD56                                            ; +0x3c8, 0x1800bfd48\nmovzx   eax, [rsp+2D0h+var_290]                                        ; +0x3ca, 0x1800bfd4a\nmov     [rdi+18Ah], ax                                                 ; +0x3cf, 0x1800bfd4f\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x3d6, 0x1800bfd56\ntest    rcx, rcx                                                       ; +0x3db, 0x1800bfd5b\njz      short loc_1800BFD66                                            ; +0x3de, 0x1800bfd5e\nmov     rax, [rcx]                                                     ; +0x3e0, 0x1800bfd60\ncall    qword ptr [rax+10h]                                            ; +0x3e3, 0x1800bfd63\ninc     ebx                                                            ; +0x3e6, 0x1800bfd66\ncmp     ebx, dword ptr [rsp+2D0h+var_288]                              ; +0x3e8, 0x1800bfd68\njb      loc_1800BFCC0                                                  ; +0x3ec, 0x1800bfd6c\nmov     rcx, [rsp+2D0h+var_260]                                        ; +0x3f2, 0x1800bfd72\nmov     rax, [rcx]                                                     ; +0x3f7, 0x1800bfd77\ncall    qword ptr [rax+10h]                                            ; +0x3fa, 0x1800bfd7a\nmov     rcx, [r12]                                                     ; +0x3fd, 0x1800bfd7d\nxor     r8d, r8d                                                       ; +0x401, 0x1800bfd81\nxor     edx, edx                                                       ; +0x404, 0x1800bfd84\nmov     rax, [rcx]                                                     ; +0x406, 0x1800bfd86\ncall    qword ptr [rax+28h]                                            ; +0x409, 0x1800bfd89\ntest    eax, eax                                                       ; +0x40c, 0x1800bfd8c\njs      loc_1800BFBE7                                                  ; +0x40e, 0x1800bfd8e\nmov     rcx, [r12]                                                     ; +0x414, 0x1800bfd94\nlea     r9, [rsp+2D0h+var_268]                                         ; +0x418, 0x1800bfd98\nmov     edx, 1                                                         ; +0x41d, 0x1800bfd9d\nlea     r8, [rdi+188h]                                                 ; +0x422, 0x1800bfda2\nmov     rax, [rcx]                                                     ; +0x429, 0x1800bfda9\ncall    qword ptr [rax+40h]                                            ; +0x42c, 0x1800bfdac\ntest    eax, eax                                                       ; +0x42f, 0x1800bfdaf\njs      loc_1800BFBE7                                                  ; +0x431, 0x1800bfdb1\nmov     rcx, [r12]                                                     ; +0x437, 0x1800bfdb7\nxor     r8d, r8d                                                       ; +0x43b, 0x1800bfdbb\nmovzx   edx, word ptr [rdi+188h]                                       ; +0x43e, 0x1800bfdbe\nmov     rax, [rcx]                                                     ; +0x445, 0x1800bfdc5\ncall    qword ptr [rax+50h]                                            ; +0x448, 0x1800bfdc8\ntest    eax, eax                                                       ; +0x44b, 0x1800bfdcb\njs      loc_1800BFBE7                                                  ; +0x44d, 0x1800bfdcd\nmov     rcx, [r12]                                                     ; +0x453, 0x1800bfdd3\nlea     rdx, [rsp+2D0h+var_26C]                                        ; +0x457, 0x1800bfdd7\nmov     rax, [rcx]                                                     ; +0x45c, 0x1800bfddc\ncall    qword ptr [rax+70h]                                            ; +0x45f, 0x1800bfddf\nxor     r15d, r15d                                                     ; +0x462, 0x1800bfde2\nmov     esi, r15d                                                      ; +0x465, 0x1800bfde5\ncmp     [rsp+2D0h+var_26C], r15d                                       ; +0x468, 0x1800bfde8\njle     loc_1800BFF55                                                  ; +0x46d, 0x1800bfded\nnop     dword ptr [rax+00h]                                            ; +0x473, 0x1800bfdf3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x477, 0x1800bfdf7\nmov     rcx, [r12]                                                     ; +0x480, 0x1800bfe00\nlea     r9, [rsp+2D0h+var_288]                                         ; +0x484, 0x1800bfe04\nxor     r8d, r8d                                                       ; +0x489, 0x1800bfe09\nmov     edx, esi                                                       ; +0x48c, 0x1800bfe0c\nmov     rax, [rcx]                                                     ; +0x48e, 0x1800bfe0e\ncall    qword ptr [rax+90h]                                            ; +0x491, 0x1800bfe11\ntest    eax, eax                                                       ; +0x497, 0x1800bfe17\njs      loc_1800BFBE7                                                  ; +0x499, 0x1800bfe19\nmov     rcx, [rsp+2D0h+var_288]                                        ; +0x49f, 0x1800bfe1f\nlea     r8, [rsp+2D0h+var_280]                                         ; +0x4a4, 0x1800bfe24\nxor     edx, edx                                                       ; +0x4a9, 0x1800bfe29\nmov     rax, [rcx]                                                     ; +0x4ab, 0x1800bfe2b\ncall    qword ptr [rax+20h]                                            ; +0x4ae, 0x1800bfe2e\ntest    eax, eax                                                       ; +0x4b1, 0x1800bfe31\njs      loc_1800C0056                                                  ; +0x4b3, 0x1800bfe33\nmov     rcx, cs:off_1801AED20                                          ; +0x4b9, 0x1800bfe39\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x4c0, 0x1800bfe40\nmov     edx, [rsp+2D0h+var_280]                                        ; +0x4c7, 0x1800bfe47\nmov     r9d, 152h                                                      ; +0x4cb, 0x1800bfe4b\nmov     dword ptr [rsp+2D0h+var_2B0], r15d                             ; +0x4d1, 0x1800bfe51\nmov     rcx, [rcx+1A0h]                                                ; +0x4d6, 0x1800bfe56\ncall    sub_1800B6880                                                  ; +0x4dd, 0x1800bfe5d\nmov     rcx, [rsp+2D0h+var_288]                                        ; +0x4e2, 0x1800bfe62\nmov     rbx, rax                                                       ; +0x4e7, 0x1800bfe67\ntest    rax, rax                                                       ; +0x4ea, 0x1800bfe6a\njz      loc_1800C0066                                                  ; +0x4ed, 0x1800bfe6d\nmov     r9, [rcx]                                                      ; +0x4f3, 0x1800bfe73\nlea     r8, [rsp+2D0h+var_280]                                         ; +0x4f6, 0x1800bfe76\nmov     rdx, rax                                                       ; +0x4fb, 0x1800bfe7b\ncall    qword ptr [r9+20h]                                             ; +0x4fe, 0x1800bfe7e\ntest    eax, eax                                                       ; +0x502, 0x1800bfe82\njs      loc_1800C0056                                                  ; +0x504, 0x1800bfe84\ncmp     [rbx+28h], r14d                                                ; +0x50a, 0x1800bfe8a\nmov     rax, [rbx+2Ch]                                                 ; +0x50e, 0x1800bfe8e\ncmova   r14d, [rbx+28h]                                                ; +0x512, 0x1800bfe92\ncmp     rax, cs:qword_18016C088                                        ; +0x517, 0x1800bfe97\njnz     short loc_1800BFF16                                            ; +0x51e, 0x1800bfe9e\nmov     rax, [rbx+34h]                                                 ; +0x520, 0x1800bfea0\ncmp     rax, cs:qword_18016C090                                        ; +0x524, 0x1800bfea4\njnz     short loc_1800BFF16                                            ; +0x52b, 0x1800bfeab\nmov     rdx, [rbx+50h]                                                 ; +0x52d, 0x1800bfead\nmov     rax, [rdi+8]                                                   ; +0x531, 0x1800bfeb1\nmovzx   ecx, word ptr [rdx+0Eh]                                        ; +0x535, 0x1800bfeb5\ncmp     cx, 8                                                          ; +0x539, 0x1800bfeb9\njz      short loc_1800BFEFA                                            ; +0x53d, 0x1800bfebd\ncmp     cx, 10h                                                        ; +0x53f, 0x1800bfebf\njz      short loc_1800BFEF1                                            ; +0x543, 0x1800bfec3\ncmp     cx, r13w                                                       ; +0x545, 0x1800bfec5\njz      short loc_1800BFEE8                                            ; +0x549, 0x1800bfec9\ncmp     cx, 20h ; ' '                                                  ; +0x54b, 0x1800bfecb\njnz     loc_1800C001E                                                  ; +0x54f, 0x1800bfecf\nmov     dword ptr [rax+8], 4                                           ; +0x555, 0x1800bfed5\njmp     short loc_1800BFF01                                            ; +0x55c, 0x1800bfedc\nmov     eax, 0Dh                                                       ; +0x55e, 0x1800bfede\njmp     loc_1800BFBEC                                                  ; +0x563, 0x1800bfee3\nmov     dword ptr [rax+8], 3                                           ; +0x568, 0x1800bfee8\njmp     short loc_1800BFF01                                            ; +0x56f, 0x1800bfeef\nmov     dword ptr [rax+8], 2                                           ; +0x571, 0x1800bfef1\njmp     short loc_1800BFF01                                            ; +0x578, 0x1800bfef8\nmov     dword ptr [rax+8], 1                                           ; +0x57a, 0x1800bfefa\nmov     rax, [rdi+8]                                                   ; +0x581, 0x1800bff01\nmovzx   ecx, word ptr [rdx+2]                                          ; +0x585, 0x1800bff05\nmov     [rax+0Ch], ecx                                                 ; +0x589, 0x1800bff09\nmov     rcx, [rdi+8]                                                   ; +0x58c, 0x1800bff0c\nmov     eax, [rdx+4]                                                   ; +0x590, 0x1800bff10\nmov     [rcx+10h], eax                                                 ; +0x593, 0x1800bff13\nmov     rcx, [rsp+2D0h+var_288]                                        ; +0x596, 0x1800bff16\nmov     rax, [rcx]                                                     ; +0x59b, 0x1800bff1b\ncall    qword ptr [rax+10h]                                            ; +0x59e, 0x1800bff1e\nmov     rcx, cs:off_1801AED20                                          ; +0x5a1, 0x1800bff21\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x5a8, 0x1800bff28\nmov     r9d, 178h                                                      ; +0x5af, 0x1800bff2f\nmov     byte ptr [rsp+2D0h+var_2B0], 1                                 ; +0x5b5, 0x1800bff35\nmov     rdx, rbx                                                       ; +0x5ba, 0x1800bff3a\nmov     rcx, [rcx+1A0h]                                                ; +0x5bd, 0x1800bff3d\ncall    sub_1800B6AA0                                                  ; +0x5c4, 0x1800bff44\ninc     esi                                                            ; +0x5c9, 0x1800bff49\ncmp     esi, [rsp+2D0h+var_26C]                                        ; +0x5cb, 0x1800bff4b\njl      loc_1800BFE00                                                  ; +0x5cf, 0x1800bff4f\nmov     rcx, [r12]                                                     ; +0x5d5, 0x1800bff55\nlea     r8, [rsp+2D0h+var_278]                                         ; +0x5d9, 0x1800bff59\nlea     rdx, unk_18016C098                                             ; +0x5de, 0x1800bff5e\nmov     rax, [rcx]                                                     ; +0x5e5, 0x1800bff65\ncall    qword ptr [rax]                                                ; +0x5e8, 0x1800bff68\ntest    eax, eax                                                       ; +0x5ea, 0x1800bff6a\njs      loc_1800BFBE7                                                  ; +0x5ec, 0x1800bff6c\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x5f2, 0x1800bff72\nlea     rdx, [rsp+2D0h+var_28C]                                        ; +0x5f7, 0x1800bff77\nmov     [rsp+2D0h+var_2A8], rdx                                        ; +0x5fc, 0x1800bff7c\nlea     r9, [rsp+2D0h+var_280]                                         ; +0x601, 0x1800bff81\nmov     [rsp+2D0h+var_290], r15w                                       ; +0x606, 0x1800bff86\nlea     r8, aDuration_0; \"Duration\"                                    ; +0x60c, 0x1800bff8c\nlea     rdx, [rsp+2D0h+var_290]                                        ; +0x613, 0x1800bff93\nmov     [rsp+2D0h+var_2B0], r15                                        ; +0x618, 0x1800bff98\nmov     rax, [rcx]                                                     ; +0x61d, 0x1800bff9d\ncall    qword ptr [rax+28h]                                            ; +0x620, 0x1800bffa0\ntest    eax, eax                                                       ; +0x623, 0x1800bffa3\njs      loc_1800BFBE7                                                  ; +0x625, 0x1800bffa5\nmov     rcx, cs:off_1801AED20                                          ; +0x62b, 0x1800bffab\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x632, 0x1800bffb2\nmovzx   edx, [rsp+2D0h+var_28C]                                        ; +0x639, 0x1800bffb9\nmov     r9d, 199h                                                      ; +0x63e, 0x1800bffbe\nmov     dword ptr [rsp+2D0h+var_2B0], r15d                             ; +0x644, 0x1800bffc4\nmov     rcx, [rcx+1A0h]                                                ; +0x649, 0x1800bffc9\ncall    sub_1800B6880                                                  ; +0x650, 0x1800bffd0\nmov     rbx, rax                                                       ; +0x655, 0x1800bffd5\ntest    rax, rax                                                       ; +0x658, 0x1800bffd8\njz      loc_1800C0352                                                  ; +0x65b, 0x1800bffdb\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x661, 0x1800bffe1\nlea     rax, [rsp+2D0h+var_28C]                                        ; +0x666, 0x1800bffe6\nmov     [rsp+2D0h+var_2A8], rax                                        ; +0x66b, 0x1800bffeb\nlea     r9, [rsp+2D0h+var_280]                                         ; +0x670, 0x1800bfff0\nlea     r8, aDuration_0; \"Duration\"                                    ; +0x675, 0x1800bfff5\nmov     [rsp+2D0h+var_2B0], rbx                                        ; +0x67c, 0x1800bfffc\nlea     rdx, [rsp+2D0h+var_290]                                        ; +0x681, 0x1800c0001\nmov     r10, [rcx]                                                     ; +0x686, 0x1800c0006\ncall    qword ptr [r10+28h]                                            ; +0x689, 0x1800c0009\nmov     byte ptr [rsp+2D0h+var_2B0], 1                                 ; +0x68d, 0x1800c000d\ntest    eax, eax                                                       ; +0x692, 0x1800c0012\njns     short loc_1800C0076                                            ; +0x694, 0x1800c0014\nmov     r9d, 1A2h                                                      ; +0x696, 0x1800c0016\njmp     short loc_1800C0034                                            ; +0x69c, 0x1800c001c\nmov     rcx, [rsp+2D0h+var_288]                                        ; +0x69e, 0x1800c001e\nmov     rax, [rcx]                                                     ; +0x6a3, 0x1800c0023\ncall    qword ptr [rax+10h]                                            ; +0x6a6, 0x1800c0026\nmov     r9d, 16Fh                                                      ; +0x6a9, 0x1800c0029\nmov     byte ptr [rsp+2D0h+var_2B0], 1                                 ; +0x6af, 0x1800c002f\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x6b4, 0x1800c0034\nmov     rdx, rbx                                                       ; +0x6bb, 0x1800c003b\nmov     rcx, cs:off_1801AED20                                          ; +0x6be, 0x1800c003e\nmov     rcx, [rcx+1A0h]                                                ; +0x6c5, 0x1800c0045\ncall    sub_1800B6AA0                                                  ; +0x6cc, 0x1800c004c\njmp     loc_1800BFBE7                                                  ; +0x6d1, 0x1800c0051\nmov     rcx, [rsp+2D0h+var_288]                                        ; +0x6d6, 0x1800c0056\nmov     rax, [rcx]                                                     ; +0x6db, 0x1800c005b\ncall    qword ptr [rax+10h]                                            ; +0x6de, 0x1800c005e\njmp     loc_1800BFBE7                                                  ; +0x6e1, 0x1800c0061\nmov     rax, [rcx]                                                     ; +0x6e6, 0x1800c0066\ncall    qword ptr [rax+10h]                                            ; +0x6e9, 0x1800c0069\nmov     eax, 26h ; '&'                                                 ; +0x6ec, 0x1800c006c\njmp     loc_1800BFBEC                                                  ; +0x6f1, 0x1800c0071\nmov     r8, [rdi+8]                                                    ; +0x6f6, 0x1800c0076\nmov     rax, 346DC5D63886594Bh                                         ; +0x6fa, 0x1800c007a\nmov     r9d, 1A9h                                                      ; +0x704, 0x1800c0084\nmovsxd  rcx, dword ptr [r8+10h]                                        ; +0x70a, 0x1800c008a\nimul    rcx, [rbx]                                                     ; +0x70e, 0x1800c008e\nmul     rcx                                                            ; +0x712, 0x1800c0092\nmov     rax, 624DD2F1A9FBE77h                                          ; +0x715, 0x1800c0095\nmov     rcx, rdx                                                       ; +0x71f, 0x1800c009f\nshr     rcx, 0Bh                                                       ; +0x722, 0x1800c00a2\nmul     rcx                                                            ; +0x726, 0x1800c00a6\nsub     rcx, rdx                                                       ; +0x729, 0x1800c00a9\nshr     rcx, 1                                                         ; +0x72c, 0x1800c00ac\nadd     rcx, rdx                                                       ; +0x72f, 0x1800c00af\nmov     rdx, rbx                                                       ; +0x732, 0x1800c00b2\nshr     rcx, 9                                                         ; +0x735, 0x1800c00b5\nmov     [r8+18h], ecx                                                  ; +0x739, 0x1800c00b9\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x73d, 0x1800c00bd\nmov     rcx, cs:off_1801AED20                                          ; +0x744, 0x1800c00c4\nmov     rcx, [rcx+1A0h]                                                ; +0x74b, 0x1800c00cb\ncall    sub_1800B6AA0                                                  ; +0x752, 0x1800c00d2\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x757, 0x1800c00d7\nlea     rdx, [rsp+2D0h+var_28C]                                        ; +0x75c, 0x1800c00dc\nmov     [rsp+2D0h+var_2A8], rdx                                        ; +0x761, 0x1800c00e1\nlea     r9, [rsp+2D0h+var_280]                                         ; +0x766, 0x1800c00e6\nlea     r8, aSeekable; \"Seekable\"                                      ; +0x76b, 0x1800c00eb\nmov     [rsp+2D0h+var_2B0], r15                                        ; +0x772, 0x1800c00f2\nlea     rdx, [rsp+2D0h+var_290]                                        ; +0x777, 0x1800c00f7\nmov     rax, [rcx]                                                     ; +0x77c, 0x1800c00fc\ncall    qword ptr [rax+28h]                                            ; +0x77f, 0x1800c00ff\ntest    eax, eax                                                       ; +0x782, 0x1800c0102\njs      loc_1800BFBE7                                                  ; +0x784, 0x1800c0104\nmov     rcx, cs:off_1801AED20                                          ; +0x78a, 0x1800c010a\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x791, 0x1800c0111\nmovzx   edx, [rsp+2D0h+var_28C]                                        ; +0x798, 0x1800c0118\nmov     r9d, 1B8h                                                      ; +0x79d, 0x1800c011d\nmov     dword ptr [rsp+2D0h+var_2B0], r15d                             ; +0x7a3, 0x1800c0123\nmov     rcx, [rcx+1A0h]                                                ; +0x7a8, 0x1800c0128\ncall    sub_1800B6880                                                  ; +0x7af, 0x1800c012f\nmov     rbx, rax                                                       ; +0x7b4, 0x1800c0134\ntest    rax, rax                                                       ; +0x7b7, 0x1800c0137\njz      loc_1800C0352                                                  ; +0x7ba, 0x1800c013a\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x7c0, 0x1800c0140\nlea     rax, [rsp+2D0h+var_28C]                                        ; +0x7c5, 0x1800c0145\nmov     [rsp+2D0h+var_2A8], rax                                        ; +0x7ca, 0x1800c014a\nlea     r9, [rsp+2D0h+var_280]                                         ; +0x7cf, 0x1800c014f\nlea     r8, aSeekable; \"Seekable\"                                      ; +0x7d4, 0x1800c0154\nmov     [rsp+2D0h+var_2B0], rbx                                        ; +0x7db, 0x1800c015b\nlea     rdx, [rsp+2D0h+var_290]                                        ; +0x7e0, 0x1800c0160\nmov     r10, [rcx]                                                     ; +0x7e5, 0x1800c0165\ncall    qword ptr [r10+28h]                                            ; +0x7e8, 0x1800c0168\nmov     byte ptr [rsp+2D0h+var_2B0], 1                                 ; +0x7ec, 0x1800c016c\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x7f1, 0x1800c0171\nmov     rdx, rbx                                                       ; +0x7f8, 0x1800c0178\ntest    eax, eax                                                       ; +0x7fb, 0x1800c017b\njns     short loc_1800C018A                                            ; +0x7fd, 0x1800c017d\nmov     r9d, 1C1h                                                      ; +0x7ff, 0x1800c017f\njmp     loc_1800C003E                                                  ; +0x805, 0x1800c0185\ncmp     [rbx], r15d                                                    ; +0x80a, 0x1800c018a\nmov     r9d, 1C7h                                                      ; +0x80d, 0x1800c018d\nsetnz   al                                                             ; +0x813, 0x1800c0193\nmov     [rdi+198h], al                                                 ; +0x816, 0x1800c0196\nmov     rcx, cs:off_1801AED20                                          ; +0x81c, 0x1800c019c\nmov     rcx, [rcx+1A0h]                                                ; +0x823, 0x1800c01a3\ncall    sub_1800B6AA0                                                  ; +0x82a, 0x1800c01aa\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x82f, 0x1800c01af\nlea     rdx, [rsp+2D0h+var_288]                                        ; +0x834, 0x1800c01b4\nmov     rax, [rcx]                                                     ; +0x839, 0x1800c01b9\ncall    qword ptr [rax+38h]                                            ; +0x83c, 0x1800c01bc\ntest    eax, eax                                                       ; +0x83f, 0x1800c01bf\njs      loc_1800BFBE7                                                  ; +0x841, 0x1800c01c1\nmovzx   eax, word ptr [rsp+2D0h+var_288]                               ; +0x847, 0x1800c01c7\ntest    ax, ax                                                         ; +0x84c, 0x1800c01cc\njz      loc_1800C02C0                                                  ; +0x84f, 0x1800c01cf\nmov     [rdi+19Ch], eax                                                ; +0x855, 0x1800c01d5\nlea     r8, aCBuildagent1Wo_45; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x85b, 0x1800c01db\nmov     rcx, cs:off_1801AED20                                          ; +0x862, 0x1800c01e2\nmov     r9d, 1D8h                                                      ; +0x869, 0x1800c01e9\nmov     [rsp+2D0h+var_2A0], 1                                          ; +0x86f, 0x1800c01ef\nimul    edx, eax, 13Ch                                                 ; +0x874, 0x1800c01f4\nmov     byte ptr [rsp+2D0h+var_2A8], r15b                              ; +0x87a, 0x1800c01fa\nmov     rcx, [rcx+1A0h]                                                ; +0x87f, 0x1800c01ff\nmov     dword ptr [rsp+2D0h+var_2B0], r15d                             ; +0x886, 0x1800c0206\ncall    sub_1800B6530                                                  ; +0x88b, 0x1800c020b\nmov     [rdi+1A0h], rax                                                ; +0x890, 0x1800c0210\ntest    rax, rax                                                       ; +0x897, 0x1800c0217\njz      loc_1800C0352                                                  ; +0x89a, 0x1800c021a\nmovzx   esi, r15w                                                      ; +0x8a0, 0x1800c0220\ncmp     [rdi+19Ch], r15d                                               ; +0x8a4, 0x1800c0224\njle     loc_1800C02C0                                                  ; +0x8ab, 0x1800c022b\nmov     r15d, 100h                                                     ; +0x8b1, 0x1800c0231\nmov     r12, 0D6BF94D5E57A42BDh                                        ; +0x8b7, 0x1800c0237\nmov     [rsp+2D0h+var_270], r15w                                       ; +0x8c1, 0x1800c0241\nlea     rdx, [rsp+2D0h+var_258]                                        ; +0x8c7, 0x1800c0247\nmovzx   eax, si                                                        ; +0x8cc, 0x1800c024c\nlea     r9, [rsp+2D0h+var_270]                                         ; +0x8cf, 0x1800c024f\nimul    rbx, rax, 13Ch                                                 ; +0x8d4, 0x1800c0254\nmov     [rsp+2D0h+var_2B0], rdx                                        ; +0x8db, 0x1800c025b\nlea     r8, [rbp+1D0h+Source]                                          ; +0x8e0, 0x1800c0260\nadd     rbx, [rdi+1A0h]                                                ; +0x8e4, 0x1800c0264\nmovzx   edx, si                                                        ; +0x8eb, 0x1800c026b\nlea     rax, [rbx+3Ch]                                                 ; +0x8ee, 0x1800c026e\nmov     [rbx+20h], rax                                                 ; +0x8f2, 0x1800c0272\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x8f6, 0x1800c0276\nmov     rax, [rcx]                                                     ; +0x8fb, 0x1800c027b\ncall    qword ptr [rax+40h]                                            ; +0x8fe, 0x1800c027e\nmovzx   r8d, [rsp+2D0h+var_270]; MaxCount                              ; +0x901, 0x1800c0281\nlea     rdx, [rbp+1D0h+Source]; Source                                 ; +0x907, 0x1800c0287\nmov     rcx, [rbx+20h]; Dest                                           ; +0x90b, 0x1800c028b\ncall    wcstombs                                                       ; +0x90f, 0x1800c028f\nmov     rax, [rdi+8]                                                   ; +0x914, 0x1800c0294\ninc     si                                                             ; +0x918, 0x1800c0298\nmovsxd  rcx, dword ptr [rax+10h]                                       ; +0x91b, 0x1800c029b\nmov     rax, r12                                                       ; +0x91f, 0x1800c029f\nimul    rcx, [rsp+2D0h+var_258]                                        ; +0x922, 0x1800c02a2\nmul     rcx                                                            ; +0x928, 0x1800c02a8\nmovzx   eax, si                                                        ; +0x92b, 0x1800c02ab\nshr     rdx, 17h                                                       ; +0x92e, 0x1800c02ae\nmov     [rbx+30h], edx                                                 ; +0x932, 0x1800c02b2\ncmp     eax, [rdi+19Ch]                                                ; +0x935, 0x1800c02b5\njl      short loc_1800C0241                                            ; +0x93b, 0x1800c02bb\nxor     r15d, r15d                                                     ; +0x93d, 0x1800c02bd\nmov     rcx, [rsp+2D0h+var_278]                                        ; +0x940, 0x1800c02c0\nmov     rax, [rcx]                                                     ; +0x945, 0x1800c02c5\ncall    qword ptr [rax+10h]                                            ; +0x948, 0x1800c02c8\nmov     r8, [rdi+8]                                                    ; +0x94b, 0x1800c02cb\ntest    r14d, r14d                                                     ; +0x94f, 0x1800c02cf\nmov     eax, 10000h                                                    ; +0x952, 0x1800c02d2\ncmovz   r14d, eax                                                      ; +0x957, 0x1800c02d7\nmov     r9d, [r8+0Ch]                                                  ; +0x95b, 0x1800c02db\ntest    r9d, r9d                                                       ; +0x95f, 0x1800c02df\njz      short loc_1800C0332                                            ; +0x962, 0x1800c02e2\nmov     ecx, [r8+8]                                                    ; +0x964, 0x1800c02e4\nsub     ecx, 1                                                         ; +0x968, 0x1800c02e8\njz      short loc_1800C0317                                            ; +0x96b, 0x1800c02eb\nsub     ecx, 1                                                         ; +0x96d, 0x1800c02ed\njz      short loc_1800C030F                                            ; +0x970, 0x1800c02f0\nsub     ecx, 1                                                         ; +0x972, 0x1800c02f2\njz      short loc_1800C031D                                            ; +0x975, 0x1800c02f5\nsub     ecx, 1                                                         ; +0x977, 0x1800c02f7\njz      short loc_1800C0307                                            ; +0x97a, 0x1800c02fa\ncmp     ecx, 1                                                         ; +0x97c, 0x1800c02fc\njz      short loc_1800C0307                                            ; +0x97f, 0x1800c02ff\nmov     [r8+1Ch], r14d                                                 ; +0x981, 0x1800c0301\njmp     short loc_1800C0332                                            ; +0x985, 0x1800c0305\nmov     r13d, 20h ; ' '                                                ; +0x987, 0x1800c0307\njmp     short loc_1800C031D                                            ; +0x98d, 0x1800c030d\nmov     r13d, 10h                                                      ; +0x98f, 0x1800c030f\njmp     short loc_1800C031D                                            ; +0x995, 0x1800c0315\nmov     r13d, 8                                                        ; +0x997, 0x1800c0317\nxor     edx, edx                                                       ; +0x99d, 0x1800c031d\nmov     eax, r14d                                                      ; +0x99f, 0x1800c031f\nshl     rax, 3                                                         ; +0x9a2, 0x1800c0322\ndiv     r13                                                            ; +0x9a6, 0x1800c0326\nxor     edx, edx                                                       ; +0x9a9, 0x1800c0329\ndiv     r9d                                                            ; +0x9ab, 0x1800c032b\nmov     [r8+1Ch], eax                                                  ; +0x9ae, 0x1800c032e\nmov     [rdi+190h], r15                                                ; +0x9b2, 0x1800c0332\nxor     eax, eax                                                       ; +0x9b9, 0x1800c0339\nmov     [rdi+110h], r15d                                               ; +0x9bb, 0x1800c033b\nmov     [rdi+18h], r15d                                                ; +0x9c2, 0x1800c0342\njmp     loc_1800BFBEC                                                  ; +0x9c6, 0x1800c0346\nmov     [rdi+180h], rbx                                                ; +0x9cb, 0x1800c034b\nmov     eax, 26h ; '&'                                                 ; +0x9d2, 0x1800c0352\njmp     loc_1800BFBEC                                                  ; +0x9d7, 0x1800c0357", "xrefs": ["sub_1800BF970 @ 0x1800bf970", "<???> @ 0x18018a4cc", "<???> @ 0x18018a4dc", "<???> @ 0x18018a4fc", "<???> @ 0x1801fd9bc"], "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"}