{"type": "func", "start": 6442703664, "end": 6442709319, "name": "sub_18003DB30", "pseudocode": "// \n// sub_18003DB30 from 0x18003db30 to 0x18003f147 (5655 bytes)\n// \n// 6 xrefs:\n// > sub_18003DB20 @ 0x18003db20\n// > <???> @ 0x180180ae0\n// > <???> @ 0x180180af0\n// > <???> @ 0x180180b04\n// > <???> @ 0x180180b14\n// > <???> @ 0x1801f7e9c\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_18003DB30(__int64 a1, int a2, __int64 a3)\n{\n  __int64 v3; // rax\n  __int64 result; // rax\n  __int64 **v6; // rbx\n  __int64 v7; // rcx\n  _DWORD *v8; // r12\n  unsigned __int8 *v9; // rsi\n  __int64 v10; // r15\n  int i; // r14d\n  __int64 *v12; // rax\n  int v13; // eax\n  int v14; // edx\n  __int64 v15; // rcx\n  int v16; // eax\n  __int64 v17; // rax\n  unsigned __int16 v18; // cx\n  int v19; // r13d\n  __int64 v20; // r12\n  int v21; // eax\n  __int64 v22; // rax\n  _BYTE *v23; // rsi\n  int v24; // r14d\n  __int64 v25; // rbx\n  char v26; // al\n  int v27; // r14d\n  __int64 v28; // rsi\n  __int64 v29; // rbx\n  __int64 v30; // rax\n  int *v31; // r13\n  __int64 v32; // rax\n  bool v33; // cc\n  __int64 v34; // rcx\n  __int64 v35; // r13\n  __int64 v36; // rcx\n  bool v37; // cf\n  unsigned int v38; // r8d\n  __int64 v39; // rsi\n  _QWORD *v40; // r12\n  __int64 v41; // rcx\n  __int64 v42; // r14\n  __int64 v43; // r15\n  char v44; // cl\n  unsigned int v45; // ebx\n  unsigned int v46; // eax\n  char v47; // cl\n  unsigned int v48; // r9d\n  unsigned int v49; // r8d\n  bool v50; // zf\n  int v51; // eax\n  __int64 v52; // rcx\n  _QWORD *v53; // rdx\n  __int64 v54; // rcx\n  unsigned int v55; // r12d\n  unsigned int *v56; // r15\n  __int64 v57; // rbx\n  unsigned int v58; // esi\n  __int64 v59; // rax\n  char *v60; // r14\n  __int64 v61; // rcx\n  __int64 v62; // rdx\n  int v63; // ebx\n  unsigned int v64; // ebx\n  unsigned int v65; // eax\n  int v66; // ecx\n  unsigned __int8 *v67; // rdx\n  __int64 v68; // r8\n  int v69; // eax\n  int v70; // eax\n  unsigned int v71; // ebx\n  unsigned __int16 *v72; // rdx\n  __int64 v73; // r8\n  int v74; // eax\n  int v75; // eax\n  unsigned int v76; // ebx\n  int v77; // edx\n  __int64 v78; // rax\n  int v79; // r11d\n  __int64 v80; // r9\n  __int64 v81; // rbx\n  __int64 v82; // r10\n  int j; // r8d\n  __int64 v84; // rdx\n  int v85; // eax\n  int v86; // ecx\n  __int64 v87; // rcx\n  __int64 v88; // rdx\n  __int64 v89; // rdx\n  __int64 v90; // rax\n  __int64 v91; // rax\n  int v92; // [rsp+20h] [rbp-E0h]\n  int v93; // [rsp+20h] [rbp-E0h]\n  char v94[4]; // [rsp+40h] [rbp-C0h] BYREF\n  unsigned __int16 v95; // [rsp+44h] [rbp-BCh] BYREF\n  unsigned __int16 v96[2]; // [rsp+48h] [rbp-B8h] BYREF\n  char v97; // [rsp+4Ch] [rbp-B4h] BYREF\n  char v98[3]; // [rsp+4Dh] [rbp-B3h] BYREF\n  unsigned int v99; // [rsp+50h] [rbp-B0h] BYREF\n  unsigned __int16 v100; // [rsp+54h] [rbp-ACh] BYREF\n  __int16 v101[2]; // [rsp+58h] [rbp-A8h] BYREF\n  unsigned int Size; // [rsp+5Ch] [rbp-A4h] BYREF\n  int Size_4; // [rsp+60h] [rbp-A0h]\n  unsigned int v104; // [rsp+64h] [rbp-9Ch] BYREF\n  unsigned int v105; // [rsp+68h] [rbp-98h]\n  char *v106; // [rsp+70h] [rbp-90h]\n  int v107; // [rsp+78h] [rbp-88h] BYREF\n  int v108; // [rsp+7Ch] [rbp-84h] BYREF\n  int v109; // [rsp+80h] [rbp-80h] BYREF\n  int v110; // [rsp+84h] [rbp-7Ch] BYREF\n  int v111; // [rsp+88h] [rbp-78h]\n  void *v112; // [rsp+90h] [rbp-70h] BYREF\n  __int64 v113; // [rsp+98h] [rbp-68h]\n  char v114; // [rsp+A0h] [rbp-60h] BYREF\n  char v115; // [rsp+A4h] [rbp-5Ch] BYREF\n  char v116[8]; // [rsp+A8h] [rbp-58h] BYREF\n  __int64 v117; // [rsp+B0h] [rbp-50h] BYREF\n  __int64 v118; // [rsp+B8h] [rbp-48h]\n  _QWORD v119[2]; // [rsp+C0h] [rbp-40h] BYREF\n  __int128 v120; // [rsp+D0h] [rbp-30h]\n  __int128 v121; // [rsp+E0h] [rbp-20h]\n  __int128 v122; // [rsp+F0h] [rbp-10h]\n  _DWORD v123[56]; // [rsp+100h] [rbp+0h] BYREF\n  _DWORD v124[56]; // [rsp+1E0h] [rbp+E0h] BYREF\n  _BYTE v125[32]; // [rsp+2C0h] [rbp+1C0h] BYREF\n  _BYTE v126[256]; // [rsp+2E0h] [rbp+1E0h] BYREF\n  _BYTE v127[256]; // [rsp+3E0h] [rbp+2E0h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 368);\n  v96[0] = 0;\n  v118 = a3;\n  v111 = a2;\n  if ( (*(_DWORD *)(v3 + 404) & 1) == 0 )\n    return 19;\n  *(_DWORD *)(a1 + 40) = 16;\n  *(_QWORD *)(a1 + 288) = 0;\n  *(_QWORD *)(a1 + 296) = 0;\n  *(_QWORD *)(a1 + 304) = 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  result = (*(__int64 (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 368) + 16LL))(*(_QWORD *)(a1 + 368), &v110);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v126, 1, 17, 0);\n  if ( (_DWORD)result )\n    return result;\n  if ( (unsigned int)sub_1800B7FB0(v126, \"Extended Module: \", 17) )\n    return 19;\n  v6 = (__int64 **)(a1 + 976);\n  *(_QWORD *)(a1 + 976) = 0;\n  *(_QWORD *)(a1 + 984) = 0;\n  *(_QWORD *)(a1 + 992) = 0;\n  *(_QWORD *)(a1 + 1000) = 0;\n  *(_QWORD *)(a1 + 1008) = 0;\n  *(_QWORD *)(a1 + 1016) = 0;\n  *(_QWORD *)(a1 + 1024) = 0;\n  *(_QWORD *)(a1 + 1032) = 0;\n  *(_QWORD *)(a1 + 1040) = 0;\n  *(_QWORD *)(a1 + 1048) = 0;\n  *(_QWORD *)(a1 + 1056) = 0;\n  *(_QWORD *)(a1 + 1064) = 0;\n  *(_QWORD *)(a1 + 1072) = 0;\n  *(_QWORD *)(a1 + 1080) = 0;\n  *(_QWORD *)(a1 + 1088) = 0;\n  *(_QWORD *)(a1 + 1096) = 0;\n  *(_QWORD *)(a1 + 1104) = 0;\n  *(_QWORD *)(a1 + 1112) = 0;\n  *(_QWORD *)(a1 + 1120) = 0;\n  *(_QWORD *)(a1 + 1128) = 0;\n  *(_QWORD *)(a1 + 1136) = 0;\n  *(_QWORD *)(a1 + 1144) = 0;\n  *(_QWORD *)(a1 + 1152) = 0;\n  *(_QWORD *)(a1 + 1160) = 0;\n  *(_QWORD *)(a1 + 1168) = 0;\n  *(_QWORD *)(a1 + 1176) = 0;\n  *(_QWORD *)(a1 + 1184) = 0;\n  *(_QWORD *)(a1 + 1192) = 0;\n  *(_QWORD *)(a1 + 1200) = 0;\n  *(_QWORD *)(a1 + 1208) = 0;\n  *(_QWORD *)(a1 + 1216) = 0;\n  *(_QWORD *)(a1 + 1224) = 0;\n  *(_QWORD *)(a1 + 1232) = 0;\n  *(_QWORD *)(a1 + 1240) = 0;\n  *(_QWORD *)(a1 + 1248) = 0;\n  *(_QWORD *)(a1 + 1256) = 0;\n  *(_QWORD *)(a1 + 1264) = 0;\n  *(_QWORD *)(a1 + 1272) = 0;\n  *(_QWORD *)(a1 + 1280) = 0;\n  *(_QWORD *)(a1 + 1288) = 0;\n  *(_QWORD *)(a1 + 1296) = 0;\n  *(_QWORD *)(a1 + 1304) = 0;\n  *(_QWORD *)(a1 + 1312) = 0;\n  *(_QWORD *)(a1 + 1320) = 0;\n  *(_QWORD *)(a1 + 1328) = 0;\n  *(_QWORD *)(a1 + 1336) = 0;\n  *(_QWORD *)(a1 + 1344) = 0;\n  *(_QWORD *)(a1 + 1352) = 0;\n  *(_QWORD *)(a1 + 1360) = 0;\n  *(_QWORD *)(a1 + 1368) = 0;\n  *(_QWORD *)(a1 + 1376) = 0;\n  *(_QWORD *)(a1 + 1384) = 0;\n  *(_QWORD *)(a1 + 1392) = 0;\n  *(_QWORD *)(a1 + 1400) = 0;\n  *(_QWORD *)(a1 + 1408) = 0;\n  *(_QWORD *)(a1 + 1416) = 0;\n  *(_QWORD *)(a1 + 1424) = 0;\n  *(_QWORD *)(a1 + 1432) = 0;\n  *(_QWORD *)(a1 + 1440) = 0;\n  *(_QWORD *)(a1 + 1448) = 0;\n  *(_QWORD *)(a1 + 1456) = 0;\n  *(_QWORD *)(a1 + 1464) = 0;\n  *(_QWORD *)(a1 + 1472) = 0;\n  *(_QWORD *)(a1 + 1480) = 0;\n  v7 = *(_QWORD *)(a1 + 368);\n  *(_QWORD *)(a1 + 632) = 0;\n  *(_DWORD *)(a1 + 3032) = 1065353216;\n  *(_DWORD *)(a1 + 3028) = 1065353216;\n  *(_DWORD *)(a1 + 2144) = 6;\n  *(_DWORD *)(a1 + 2148) = 125;\n  *(_BYTE *)(a1 + 2280) = 64;\n  *(_DWORD *)(a1 + 2288) = 0;\n  *(_DWORD *)(a1 + 3024) = 0;\n  *(_DWORD *)(a1 + 2300) = 0;\n  result = sub_1800B3470(v7, (int)a1 + 376, 1, 20, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), &v97);\n  if ( (_DWORD)result )\n    return result;\n  if ( v97 != 26 )\n    return 19;\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), 60, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v107, 4, 1, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B30B0(*(_QWORD *)(a1 + 368), a1 + 2284);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B30B0(*(_QWORD *)(a1 + 368), a1 + 3024);\n  if ( (_DWORD)result )\n    return result;\n  v8 = (_DWORD *)(a1 + 968);\n  result = sub_1800B30B0(*(_QWORD *)(a1 + 368), a1 + 968);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3070(*(_QWORD *)(a1 + 368), v96);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B30B0(*(_QWORD *)(a1 + 368), a1 + 2296);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3070(*(_QWORD *)(a1 + 368), a1 + 3046);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B30B0(*(_QWORD *)(a1 + 368), a1 + 2144);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B30F0(*(_QWORD *)(a1 + 368), a1 + 2148);\n  if ( (_DWORD)result )\n    return result;\n  v9 = (unsigned __int8 *)(a1 + 656);\n  v10 = 0;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)a1 + 656, 1, 256, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_180012590(a1, 9, (int)\"Number of channels\", (int)a1 + 968, 4, 1, 0);\n  if ( (_DWORD)result )\n    return result;\n  for ( i = 0; i < *v8; *v12 = a1 )\n  {\n    v12 = (__int64 *)sub_1800B6880(\n                       *((_QWORD *)off_1801AED20 + 52),\n                       304,\n                       (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n                       2315,\n                       0);\n    if ( !v12 )\n    {\n      *v6 = nullptr;\n      return 38;\n    }\n    ++i;\n    v12[3] = 0;\n    v12[2] = (__int64)(v12 + 1);\n    v12[1] = (__int64)(v12 + 1);\n    *v6++ = v12;\n  }\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(v107 + 60), 0);\n  if ( (_DWORD)result )\n    return result;\n  v13 = *(_DWORD *)(a1 + 2284);\n  v14 = 0;\n  *(_DWORD *)(a1 + 2288) = 0;\n  if ( v13 > 0 )\n  {\n    v15 = (unsigned int)v13;\n    do\n    {\n      v16 = *v9;\n      if ( (unsigned __int8)v16 < 0xFEu && v16 >= *(_DWORD *)(a1 + 2288) )\n        *(_DWORD *)(a1 + 2288) = v16 + 1;\n      ++v9;\n      --v15;\n    }\n    while ( v15 );\n    v14 = *(_DWORD *)(a1 + 2288);\n  }\n  if ( v14 <= v96[0] )\n    v14 = v96[0];\n  *(_DWORD *)(a1 + 2292) = v14;\n  v17 = sub_1800B6880(\n          *((_QWORD *)off_1801AED20 + 52),\n          16 * v14,\n          (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n          2347,\n          0);\n  *(_QWORD *)(a1 + 632) = v17;\n  if ( !v17 )\n    return 38;\n  v18 = v96[0];\n  v19 = 0;\n  if ( !v96[0] )\n    goto LABEL_76;\n  do\n  {\n    v20 = *(_QWORD *)(a1 + 632);\n    result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v114, 4, 1, 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B3070(*(_QWORD *)(a1 + 368), &v100);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B3070(*(_QWORD *)(a1 + 368), v101);\n    if ( (_DWORD)result )\n      return result;\n    v21 = v100;\n    *(_DWORD *)(v10 + v20) = v100;\n    v22 = sub_1800B6880(\n            *((_QWORD *)off_1801AED20 + 52),\n            5 * *(_DWORD *)(a1 + 968) * v21,\n            (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n            2398,\n            0);\n    *(_QWORD *)(v10 + v20 + 8) = v22;\n    v23 = (_BYTE *)v22;\n    if ( !v22 )\n      return 38;\n    if ( v101[0] )\n    {\n      v24 = 0;\n      if ( *(_DWORD *)(a1 + 968) * *(_DWORD *)(v10 + v20) > 0 )\n      {\n        v25 = v22 + 3;\n        while ( 1 )\n        {\n          result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v94);\n          if ( (_DWORD)result )\n            return result;\n          v26 = v94[0];\n          if ( v94[0] >= 0 )\n            break;\n          if ( (v94[0] & 1) != 0 )\n          {\n            result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v23);\n            if ( (_DWORD)result )\n              return result;\n            v26 = v94[0];\n          }\n          if ( (v26 & 2) != 0 )\n          {\n            result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25 - 2);\n            if ( (_DWORD)result )\n              return result;\n            v26 = v94[0];\n          }\n          if ( (v26 & 4) != 0 )\n          {\n            result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25 - 1);\n            if ( (_DWORD)result )\n              return result;\n            v26 = v94[0];\n          }\n          if ( (v26 & 8) != 0 )\n          {\n            result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25);\n            if ( (_DWORD)result )\n              return result;\n            v26 = v94[0];\n          }\n          if ( (v26 & 0x10) != 0 )\n            goto LABEL_68;\nLABEL_69:\n          if ( *v23 == 97 )\n            *v23 = -1;\n          if ( *(_BYTE *)(v25 - 2) > 0x80u )\n            *(_BYTE *)(v25 - 2) = 0;\n          v23 += 5;\n          v25 += 5;\n          if ( ++v24 >= *(_DWORD *)(a1 + 968) * *(_DWORD *)(v10 + v20) )\n            goto LABEL_74;\n        }\n        if ( v94[0] )\n          *v23 = v94[0];\n        result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25 - 2);\n        if ( (_DWORD)result )\n          return result;\n        result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25 - 1);\n        if ( (_DWORD)result )\n          return result;\n        result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25);\n        if ( (_DWORD)result )\n          return result;\nLABEL_68:\n        result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v25 + 1);\n        if ( (_DWORD)result )\n          return result;\n        goto LABEL_69;\n      }\n    }\nLABEL_74:\n    v18 = v96[0];\n    ++v19;\n    v10 += 16;\n  }\n  while ( v19 < v96[0] );\n  v8 = (_DWORD *)(a1 + 968);\nLABEL_76:\n  v27 = v18;\n  if ( *(_DWORD *)(a1 + 2288) > (int)v18 )\n  {\n    v28 = 16LL * v18;\n    do\n    {\n      v29 = *(_QWORD *)(a1 + 632);\n      *(_DWORD *)(v28 + v29) = 64;\n      v30 = sub_1800B6880(\n              *((_QWORD *)off_1801AED20 + 52),\n              320 * *v8,\n              (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n              2520,\n              0);\n      *(_QWORD *)(v28 + v29 + 8) = v30;\n      if ( !v30 )\n        return 38;\n      ++v27;\n      v28 += 16;\n    }\n    while ( v27 < *(_DWORD *)(a1 + 2288) );\n  }\n  v31 = (int *)(a1 + 2296);\n  v32 = sub_1800B6880(\n          *((_QWORD *)off_1801AED20 + 52),\n          1560 * *(_DWORD *)(a1 + 2296),\n          (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n          2533,\n          0);\n  *(_QWORD *)(a1 + 2304) = v32;\n  if ( !v32 )\n    return 38;\n  v33 = *v31 <= 0;\n  Size_4 = 0;\n  if ( v33 )\n  {\nLABEL_172:\n    v77 = *(_DWORD *)(a1 + 2300);\n    *(_QWORD *)(a1 + 2120) = 0;\n    if ( v77 )\n    {\n      v78 = sub_1800B6880(\n              *((_QWORD *)off_1801AED20 + 52),\n              8 * v77,\n              (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n              3036,\n              0);\n      *(_QWORD *)(a1 + 2120) = v78;\n      if ( !v78 )\n        return 38;\n    }\n    v79 = 0;\n    if ( *v31 > 0 )\n    {\n      v80 = 0;\n      v81 = 0;\n      do\n      {\n        v82 = *(_QWORD *)(a1 + 2304);\n        for ( j = 0; j < *(_DWORD *)(v82 + v81 + 28); ++v80 )\n        {\n          v84 = 56LL * j++ + v81 + v82 + 32;\n          *(_QWORD *)(*(_QWORD *)(a1 + 2120) + 8 * v80) = v84;\n        }\n        ++v79;\n        v81 += 1560;\n      }\n      while ( v79 < *v31 );\n    }\n    *(_OWORD *)(a1 + 912) = 0;\n    *(_OWORD *)(a1 + 928) = 0;\n    *(_OWORD *)(a1 + 944) = 0;\n    *(_QWORD *)(a1 + 960) = 0;\n    v85 = v110;\n    *(_QWORD *)(a1 + 8) = a1 + 912;\n    *(_DWORD *)(a1 + 932) = v85;\n    if ( v118 && (v86 = *(_DWORD *)(v118 + 20)) != 0 )\n      *(_DWORD *)(*(_QWORD *)(a1 + 8) + 8LL) = v86;\n    else\n      *(_DWORD *)(*(_QWORD *)(a1 + 8) + 8LL) = 5;\n    *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL) = 2;\n    **(_QWORD **)(a1 + 8) = a1 + 376;\n    if ( *(_QWORD *)(a1 + 8) != -16 )\n      *(_DWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_DWORD *)(*(_QWORD *)(a1 + 32) + 1744LL);\n    v87 = *(_QWORD *)(a1 + 32);\n    v119[1] = \"FMOD XM Target Unit\";\n    v121 = 0;\n    *(_DWORD *)(a1 + 272) = 0;\n    v119[0] = 0;\n    v120 = 0;\n    v122 = 0;\n    result = sub_1800FC620(v87, (unsigned int)v119, 0, (int)a1 + 640, 1);\n    if ( (_DWORD)result )\n      return result;\n    _InterlockedOr((volatile signed __int32 *)(*(_QWORD *)(a1 + 640) + 100LL), 0x100u);\n    sub_18009B830(*(_QWORD *)(a1 + 640), 0, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 12LL), 0);\n    LOBYTE(v88) = 1;\n    sub_18009B790(*(_QWORD *)(a1 + 640), v88, 0);\n    result = sub_1800D52B0(a1);\n    if ( (_DWORD)result )\n      return result;\n    if ( (v111 & 0x4100) != 0 )\n    {\n      v91 = sub_1800B6880(\n              *((_QWORD *)off_1801AED20 + 52),\n              *(_DWORD *)(a1 + 2284) << 8,\n              (unsigned int)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n              3113,\n              0);\n      *(_QWORD *)(a1 + 648) = v91;\n      if ( !v91 )\n        return 38;\n      sub_18003D6D0(a1);\n    }\n    else\n    {\n      v90 = *(_QWORD *)(a1 + 8);\n      *(_QWORD *)(a1 + 648) = 0;\n      *(_DWORD *)(v90 + 24) = -1;\n    }\n    LOBYTE(v89) = 1;\n    *(_DWORD *)(a1 + 24) = 0;\n    sub_1800D5500(a1, v89);\n    if ( *(char *)(a1 + 352) < 0 )\n    {\n      result = sub_1800B25E0(*(_QWORD *)(a1 + 368));\n      if ( (_DWORD)result )\n        return result;\n      LOBYTE(v93) = 1;\n      sub_1800B6AA0(\n        *((_QWORD *)off_1801AED20 + 52),\n        *(_QWORD *)(a1 + 368),\n        \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n        3138,\n        v93);\n      *(_DWORD *)(a1 + 44) |= 0x400u;\n      *(_QWORD *)(a1 + 368) = 0;\n    }\n    return 0;\n  }\n  v34 = 0;\n  v113 = 0;\n  while ( 1 )\n  {\n    v35 = v34 + *(_QWORD *)(a1 + 2304);\n    v106 = nullptr;\n    sub_1800B3D20(*(_QWORD *)(a1 + 368), &v99);\n    if ( (unsigned int)sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v108, 4, 1, 0) )\n    {\n      v31 = (int *)(a1 + 2296);\n      goto LABEL_172;\n    }\n    v36 = *(_QWORD *)(a1 + 368);\n    v99 += v108;\n    result = sub_1800B3470(v36, v35, 1, 22, 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B3070(*(_QWORD *)(a1 + 368), &v95);\n    if ( (_DWORD)result )\n      return result;\n    *(_DWORD *)(v35 + 28) = v95;\n    if ( v95 )\n      break;\n    *(_QWORD *)(v35 + 32) = 0;\n    *(_QWORD *)(v35 + 88) = 0;\n    *(_QWORD *)(v35 + 144) = 0;\n    *(_QWORD *)(v35 + 200) = 0;\n    *(_QWORD *)(v35 + 256) = 0;\n    *(_QWORD *)(v35 + 312) = 0;\n    *(_QWORD *)(v35 + 368) = 0;\n    *(_QWORD *)(v35 + 424) = 0;\n    *(_QWORD *)(v35 + 480) = 0;\n    *(_QWORD *)(v35 + 536) = 0;\n    *(_QWORD *)(v35 + 592) = 0;\n    *(_QWORD *)(v35 + 648) = 0;\n    *(_QWORD *)(v35 + 704) = 0;\n    *(_QWORD *)(v35 + 760) = 0;\n    *(_QWORD *)(v35 + 816) = 0;\n    *(_QWORD *)(v35 + 872) = 0;\n    result = sub_1800B3990(*(_QWORD *)(a1 + 368), v99, 0);\n    if ( (_DWORD)result )\n      return result;\nLABEL_167:\n    v31 = (int *)(a1 + 2296);\n    v34 = v113 + 1560;\n    ++Size_4;\n    v113 += 1560;\n    if ( Size_4 >= *(_DWORD *)(a1 + 2296) )\n      goto LABEL_172;\n  }\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v115, 4, 1, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)v35 + 928, 1, 96, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)v35 + 1026, 2, 24, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)v35 + 1114, 2, 24, 0);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1025);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1112);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1106);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1107);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1108);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1194);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1195);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1196);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1024);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1111);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1287);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1288);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1289);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v35 + 1290);\n  if ( (_DWORD)result )\n    return result;\n  result = sub_1800B3070(*(_QWORD *)(a1 + 368), v35 + 1292);\n  if ( (_DWORD)result )\n    return result;\n  v37 = *(_BYTE *)(v35 + 1025) < 2u;\n  *(_WORD *)(v35 + 1292) *= 2;\n  if ( v37 )\n    *(_BYTE *)(v35 + 1024) = 0;\n  if ( *(_BYTE *)(v35 + 1112) < 2u )\n    *(_BYTE *)(v35 + 1111) = 0;\n  result = sub_1800B3990(*(_QWORD *)(a1 + 368), v99, 0);\n  if ( (_DWORD)result )\n    return result;\n  v38 = 0;\n  v105 = 0;\n  if ( !v95 )\n    goto LABEL_139;\n  do\n  {\n    v39 = 56LL * v38;\n    v40 = (_QWORD *)(v39 + v35 + 32);\n    *(_OWORD *)v40 = 0;\n    *((_OWORD *)v40 + 1) = 0;\n    *((_OWORD *)v40 + 2) = 0;\n    v40[6] = 0;\n    v41 = *(_QWORD *)(a1 + 368);\n    ++*(_DWORD *)(a1 + 2300);\n    result = sub_1800B3470(v41, (unsigned int)&v104, 4, 1, 0);\n    if ( (_DWORD)result )\n      return result;\n    v42 = v39 + v35;\n    result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)v39 + (int)v35 + 48, 4, 1, 0);\n    if ( (_DWORD)result )\n      return result;\n    v43 = v39 + v35;\n    result = sub_1800B3470(*(_QWORD *)(a1 + 368), (int)v39 + (int)v35 + 52, 4, 1, 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v39 + v35 + 44);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2D30(*(_QWORD *)(a1 + 368), v39 + v35 + 60);\n    if ( (_DWORD)result )\n      return result;\n    *(_DWORD *)(v39 + v35 + 84) = 1;\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v98);\n    if ( (_DWORD)result )\n      return result;\n    v44 = v98[0];\n    v45 = 2 * (v98[0] & 1) + 8;\n    if ( (v98[0] & 2) != 0 )\n      v45 = v45 & 0xFFFFFFF9 | 4;\n    if ( (v98[0] & 0x10) != 0 )\n      *(_DWORD *)(v39 + v35 + 84) = 2;\n    v46 = v104;\n    v47 = v44 & 0x20;\n    if ( (v45 & 6) != 0 )\n    {\n      v48 = *(_DWORD *)(v42 + 48);\n    }\n    else\n    {\n      *(_DWORD *)(v43 + 52) = v104;\n      v48 = 0;\n    }\n    v49 = *(_DWORD *)(v43 + 52);\n    if ( !v49 )\n    {\n      v48 = 0;\n      v45 = v45 & 0xFFFFFFF8 | 1;\n      v49 = v46;\n    }\n    v50 = *(_DWORD *)(v39 + v35 + 84) == 1;\n    *(_DWORD *)(v39 + v35 + 64) = v46;\n    *(_DWORD *)(v42 + 48) = v48 >> !v50 >> (v47 != 0);\n    *(_DWORD *)(v43 + 52) = v49 >> !v50 >> (v47 != 0);\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), v39 + v35 + 45);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2D30(*(_QWORD *)(a1 + 368), v39 + v35 + 56);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B2CB0(*(_QWORD *)(a1 + 368), 0);\n    if ( (_DWORD)result )\n      return result;\n    result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v125, 1, 22, 0);\n    if ( (_DWORD)result )\n      return result;\n    sub_1800B7CA0(v127, 256, \"Sample name %d\", Size_4);\n    result = sub_180012590(a1, 9, (int)v127, (int)v125, 22, 3, 0);\n    if ( (_DWORD)result )\n      return result;\n    if ( v104 )\n    {\n      v123[2] = 0;\n      memset(&v123[6], 0, 0xC8u);\n      v51 = *(_DWORD *)(v39 + v35 + 84);\n      v52 = *(_QWORD *)(a1 + 32);\n      v123[0] = 224;\n      v123[1] = v104;\n      v123[3] = 1;\n      v123[4] = 44100;\n      v123[5] = v51;\n      result = sub_1800E31C0(v52, 0, v45 | 0x2400, v123, v39 + v35 + 32);\n      if ( (_DWORD)result )\n        return result;\n      if ( (v45 & 6) != 0 )\n        (*(void (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD, int))(*(_QWORD *)*v40 + 312LL))(\n          *v40,\n          *(unsigned int *)(v39 + v35 + 48),\n          2,\n          (unsigned int)(*(_DWORD *)(v39 + v35 + 48) + *(_DWORD *)(v43 + 52) - 1),\n          2);\n    }\n    v38 = v105 + 1;\n    v105 = v38;\n  }\n  while ( v38 < v95 );\n  if ( v38 < 0x10 )\n  {\nLABEL_139:\n    v53 = (_QWORD *)(56LL * v38 + v35 + 32);\n    v54 = 16 - v38;\n    do\n    {\n      *v53 = 0;\n      v53 += 7;\n      --v54;\n    }\n    while ( v54 );\n  }\n  v55 = 0;\n  if ( !v95 )\n    goto LABEL_167;\n  while ( 1 )\n  {\n    v56 = (unsigned int *)(v35 + 56LL * v55 + 32);\n    if ( *(_QWORD *)v56 )\n    {\n      v57 = v56[8];\n      v58 = 0;\n      (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD, char *, _QWORD))(**(_QWORD **)v56 + 160LL))(\n        *(_QWORD *)v56,\n        0,\n        0,\n        v116,\n        0);\n      if ( (_DWORD)v57 )\n        break;\n    }\nLABEL_163:\n    v60 = v106;\nLABEL_164:\n    if ( ++v55 >= v95 )\n    {\n      if ( v60 )\n      {\n        LOBYTE(v92) = 1;\n        sub_1800B6AA0(\n          *((_QWORD *)off_1801AED20 + 52),\n          v60,\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n          3009,\n          v92);\n      }\n      goto LABEL_167;\n    }\n  }\n  v59 = sub_1800B6E80(\n          *((_QWORD *)off_1801AED20 + 52),\n          v106,\n          (unsigned int)(v57 + 72),\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_codec_xm.cpp\",\n          2888,\n          0);\n  v106 = (char *)v59;\n  v60 = (char *)v59;\n  if ( !v59 )\n    return 38;\n  result = sub_1800B3470(*(_QWORD *)(a1 + 368), v59, 1, v57, 0);\n  if ( (result & 0xFFFFFFEF) != 0 )\n    return result;\n  if ( !(unsigned int)sub_1800B7FB0(v60 + 4, \"OggS\", 4) )\n  {\n    v124[2] = 0;\n    memset(&v124[6], 0, 0xC8u);\n    v61 = *(_QWORD *)v56;\n    LOBYTE(v62) = 1;\n    v124[0] = 224;\n    v124[1] = v57;\n    v124[3] = *(_DWORD *)(v61 + 104);\n    v124[4] = (int)*(float *)(v61 + 108);\n    v124[5] = *(_DWORD *)(v61 + 40);\n    v63 = *(_DWORD *)(v61 + 44);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 24LL))(v61, v62);\n    *(_QWORD *)v56 = 0;\n    v64 = v63 & 0xFFFFD3FF | 0x800;\n    if ( !(unsigned int)sub_1800E31C0(*(_QWORD *)(a1 + 32), v60 + 4, v64, v124, v35 + 56LL * v55 + 32) && (v64 & 6) != 0 )\n    {\n      result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD, int))(**(_QWORD **)v56 + 312LL))(\n                 *(_QWORD *)v56,\n                 v56[4],\n                 2,\n                 v56[4] + v56[5] - 1,\n                 2);\n      if ( (_DWORD)result )\n        return result;\n    }\n    goto LABEL_164;\n  }\n  v65 = v56[13];\n  v66 = 0;\n  if ( v65 == 1 )\n  {\n    v67 = (unsigned __int8 *)v60;\n    v68 = v57;\n    do\n    {\n      v69 = *v67++;\n      v70 = v66 + v69;\n      *(v67 - 1) = v70;\n      v66 = v70;\n      --v68;\n    }\n    while ( v68 );\n  }\n  else if ( v65 == 2 )\n  {\n    v71 = (unsigned int)v57 >> 1;\n    v72 = (unsigned __int16 *)v60;\n    if ( v71 )\n    {\n      v73 = v71;\n      do\n      {\n        v74 = *v72++;\n        v75 = v66 + v74;\n        *(v72 - 1) = v75;\n        v66 = v75;\n        --v73;\n      }\n      while ( v73 );\n    }\n  }\n  v76 = *(_DWORD *)(*(_QWORD *)v56 + 72LL);\n  while ( 1 )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, void **, __int64 *, unsigned int *, int *))(**(_QWORD **)v56 + 40LL))(\n               *(_QWORD *)v56,\n               v58,\n               v76,\n               &v112,\n               &v117,\n               &Size,\n               &v109);\n    if ( (_DWORD)result )\n      return result;\n    memmove(v112, v60, Size);\n    result = (*(__int64 (__fastcall **)(_QWORD, void *, __int64, _QWORD, int))(**(_QWORD **)v56 + 48LL))(\n               *(_QWORD *)v56,\n               v112,\n               v117,\n               Size,\n               v109);\n    if ( (_DWORD)result )\n      return result;\n    v58 += Size;\n    v60 += Size;\n    v76 -= Size;\n    if ( !v76 )\n      goto LABEL_163;\n  }\n}", "assembly": "; \n; sub_18003DB30 from 0x18003db30 to 0x18003f147 (5655 bytes)\n; \n; 6 xrefs:\n; > sub_18003DB20 @ 0x18003db20\n; > <???> @ 0x180180ae0\n; > <???> @ 0x180180af0\n; > <???> @ 0x180180b04\n; > <???> @ 0x180180b14\n; > <???> @ 0x1801f7e9c\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     [rsp-8+arg_10], rbx                                            ; +0x0, 0x18003db30\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x18003db35\npush    rbp                                                            ; +0xa, 0x18003db3a\npush    rdi                                                            ; +0xb, 0x18003db3b\npush    r12                                                            ; +0xc, 0x18003db3c\npush    r14                                                            ; +0xe, 0x18003db3e\npush    r15                                                            ; +0x10, 0x18003db40\nlea     rbp, [rsp-3F0h]                                                ; +0x12, 0x18003db42\nsub     rsp, 4F0h                                                      ; +0x1a, 0x18003db4a\nmov     rax, cs:__security_cookie                                      ; +0x21, 0x18003db51\nxor     rax, rsp                                                       ; +0x28, 0x18003db58\nmov     [rbp+410h+var_30], rax                                         ; +0x2b, 0x18003db5b\nmov     rax, [rcx+170h]                                                ; +0x32, 0x18003db62\nxor     r12d, r12d                                                     ; +0x39, 0x18003db69\nmov     [rsp+510h+var_4C8], r12w                                       ; +0x3c, 0x18003db6c\nmov     rdi, rcx                                                       ; +0x42, 0x18003db72\nmov     [rbp+410h+var_458], r8                                         ; +0x45, 0x18003db75\nmov     [rbp+410h+var_488], edx                                        ; +0x49, 0x18003db79\nmov     r9d, [rax+194h]                                                ; +0x4c, 0x18003db7c\ntest    r9b, 1                                                         ; +0x53, 0x18003db83\njz      loc_18003F13D                                                  ; +0x57, 0x18003db87\nmov     dword ptr [rcx+28h], 10h                                       ; +0x5d, 0x18003db8d\nlea     rdx, [rbp+410h+var_48C]                                        ; +0x64, 0x18003db94\nmov     [rcx+120h], r12                                                ; +0x68, 0x18003db98\nmov     [rcx+128h], r12                                                ; +0x6f, 0x18003db9f\nmov     [rcx+130h], r12                                                ; +0x76, 0x18003dba6\nmov     [rcx+148h], r12                                                ; +0x7d, 0x18003dbad\nmov     [rcx+138h], r12                                                ; +0x84, 0x18003dbb4\nmov     [rcx+168h], r12                                                ; +0x8b, 0x18003dbbb\nmov     [rcx+18h], r12d                                                ; +0x92, 0x18003dbc2\nmov     [rcx+8], r12                                                   ; +0x96, 0x18003dbc6\nmov     rcx, [rcx+170h]                                                ; +0x9a, 0x18003dbca\nmov     rax, [rcx]                                                     ; +0xa1, 0x18003dbd1\ncall    qword ptr [rax+10h]                                            ; +0xa4, 0x18003dbd4\ntest    eax, eax                                                       ; +0xa7, 0x18003dbd7\njnz     loc_18003E2E2                                                  ; +0xa9, 0x18003dbd9\nmov     rcx, [rdi+170h]                                                ; +0xaf, 0x18003dbdf\nxor     r8d, r8d                                                       ; +0xb6, 0x18003dbe6\nxor     edx, edx                                                       ; +0xb9, 0x18003dbe9\ncall    sub_1800B3990                                                  ; +0xbb, 0x18003dbeb\ntest    eax, eax                                                       ; +0xc0, 0x18003dbf0\njnz     loc_18003E2E2                                                  ; +0xc2, 0x18003dbf2\nmov     rcx, [rdi+170h]                                                ; +0xc8, 0x18003dbf8\nlea     r9d, [r12+11h]                                                 ; +0xcf, 0x18003dbff\nlea     r8d, [r12+1]                                                   ; +0xd4, 0x18003dc04\nmov     [rsp+510h+var_4F0], r12                                        ; +0xd9, 0x18003dc09\nlea     rdx, [rbp+410h+var_230]                                        ; +0xde, 0x18003dc0e\ncall    sub_1800B3470                                                  ; +0xe5, 0x18003dc15\ntest    eax, eax                                                       ; +0xea, 0x18003dc1a\njnz     loc_18003E2E2                                                  ; +0xec, 0x18003dc1c\nlea     r8d, [r12+11h]                                                 ; +0xf2, 0x18003dc22\nlea     rdx, aExtendedModule; \"Extended Module: \"                      ; +0xf7, 0x18003dc27\nlea     rcx, [rbp+410h+var_230]                                        ; +0xfe, 0x18003dc2e\ncall    sub_1800B7FB0                                                  ; +0x105, 0x18003dc35\ntest    eax, eax                                                       ; +0x10a, 0x18003dc3a\njnz     loc_18003F13D                                                  ; +0x10c, 0x18003dc3c\nlea     rbx, [rdi+3D0h]                                                ; +0x112, 0x18003dc42\nmov     [rsp+510h+var_4F0], r12                                        ; +0x119, 0x18003dc49\nmov     [rbx], r12                                                     ; +0x11e, 0x18003dc4e\nlea     rdx, [rdi+178h]                                                ; +0x121, 0x18003dc51\nmov     [rdi+3D8h], r12                                                ; +0x128, 0x18003dc58\nlea     r9d, [r12+14h]                                                 ; +0x12f, 0x18003dc5f\nmov     [rdi+3E0h], r12                                                ; +0x134, 0x18003dc64\nlea     r8d, [r12+1]                                                   ; +0x13b, 0x18003dc6b\nmov     [rdi+3E8h], r12                                                ; +0x140, 0x18003dc70\nmov     [rdi+3F0h], r12                                                ; +0x147, 0x18003dc77\nmov     [rdi+3F8h], r12                                                ; +0x14e, 0x18003dc7e\nmov     [rdi+400h], r12                                                ; +0x155, 0x18003dc85\nmov     [rdi+408h], r12                                                ; +0x15c, 0x18003dc8c\nmov     [rdi+410h], r12                                                ; +0x163, 0x18003dc93\nmov     [rdi+418h], r12                                                ; +0x16a, 0x18003dc9a\nmov     [rdi+420h], r12                                                ; +0x171, 0x18003dca1\nmov     [rdi+428h], r12                                                ; +0x178, 0x18003dca8\nmov     [rdi+430h], r12                                                ; +0x17f, 0x18003dcaf\nmov     [rdi+438h], r12                                                ; +0x186, 0x18003dcb6\nmov     [rdi+440h], r12                                                ; +0x18d, 0x18003dcbd\nmov     [rdi+448h], r12                                                ; +0x194, 0x18003dcc4\nmov     [rdi+450h], r12                                                ; +0x19b, 0x18003dccb\nmov     [rdi+458h], r12                                                ; +0x1a2, 0x18003dcd2\nmov     [rdi+460h], r12                                                ; +0x1a9, 0x18003dcd9\nmov     [rdi+468h], r12                                                ; +0x1b0, 0x18003dce0\nmov     [rdi+470h], r12                                                ; +0x1b7, 0x18003dce7\nmov     [rdi+478h], r12                                                ; +0x1be, 0x18003dcee\nmov     [rdi+480h], r12                                                ; +0x1c5, 0x18003dcf5\nmov     [rdi+488h], r12                                                ; +0x1cc, 0x18003dcfc\nmov     [rdi+490h], r12                                                ; +0x1d3, 0x18003dd03\nmov     [rdi+498h], r12                                                ; +0x1da, 0x18003dd0a\nmov     [rdi+4A0h], r12                                                ; +0x1e1, 0x18003dd11\nmov     [rdi+4A8h], r12                                                ; +0x1e8, 0x18003dd18\nmov     [rdi+4B0h], r12                                                ; +0x1ef, 0x18003dd1f\nmov     [rdi+4B8h], r12                                                ; +0x1f6, 0x18003dd26\nmov     [rdi+4C0h], r12                                                ; +0x1fd, 0x18003dd2d\nmov     [rdi+4C8h], r12                                                ; +0x204, 0x18003dd34\nmov     [rdi+4D0h], r12                                                ; +0x20b, 0x18003dd3b\nmov     [rdi+4D8h], r12                                                ; +0x212, 0x18003dd42\nmov     [rdi+4E0h], r12                                                ; +0x219, 0x18003dd49\nmov     [rdi+4E8h], r12                                                ; +0x220, 0x18003dd50\nmov     [rdi+4F0h], r12                                                ; +0x227, 0x18003dd57\nmov     [rdi+4F8h], r12                                                ; +0x22e, 0x18003dd5e\nmov     [rdi+500h], r12                                                ; +0x235, 0x18003dd65\nmov     [rdi+508h], r12                                                ; +0x23c, 0x18003dd6c\nmov     [rdi+510h], r12                                                ; +0x243, 0x18003dd73\nmov     [rdi+518h], r12                                                ; +0x24a, 0x18003dd7a\nmov     [rdi+520h], r12                                                ; +0x251, 0x18003dd81\nmov     [rdi+528h], r12                                                ; +0x258, 0x18003dd88\nmov     [rdi+530h], r12                                                ; +0x25f, 0x18003dd8f\nmov     [rdi+538h], r12                                                ; +0x266, 0x18003dd96\nmov     [rdi+540h], r12                                                ; +0x26d, 0x18003dd9d\nmov     [rdi+548h], r12                                                ; +0x274, 0x18003dda4\nmov     [rdi+550h], r12                                                ; +0x27b, 0x18003ddab\nmov     [rdi+558h], r12                                                ; +0x282, 0x18003ddb2\nmov     [rdi+560h], r12                                                ; +0x289, 0x18003ddb9\nmov     [rdi+568h], r12                                                ; +0x290, 0x18003ddc0\nmov     [rdi+570h], r12                                                ; +0x297, 0x18003ddc7\nmov     [rdi+578h], r12                                                ; +0x29e, 0x18003ddce\nmov     [rdi+580h], r12                                                ; +0x2a5, 0x18003ddd5\nmov     [rdi+588h], r12                                                ; +0x2ac, 0x18003dddc\nmov     [rdi+590h], r12                                                ; +0x2b3, 0x18003dde3\nmov     [rdi+598h], r12                                                ; +0x2ba, 0x18003ddea\nmov     [rdi+5A0h], r12                                                ; +0x2c1, 0x18003ddf1\nmov     [rdi+5A8h], r12                                                ; +0x2c8, 0x18003ddf8\nmov     [rdi+5B0h], r12                                                ; +0x2cf, 0x18003ddff\nmov     [rdi+5B8h], r12                                                ; +0x2d6, 0x18003de06\nmov     [rdi+5C0h], r12                                                ; +0x2dd, 0x18003de0d\nmov     [rdi+5C8h], r12                                                ; +0x2e4, 0x18003de14\nmov     rcx, [rdi+170h]                                                ; +0x2eb, 0x18003de1b\nmov     [rdi+278h], r12                                                ; +0x2f2, 0x18003de22\nmov     dword ptr [rdi+0BD8h], 3F800000h                               ; +0x2f9, 0x18003de29\nmov     dword ptr [rdi+0BD4h], 3F800000h                               ; +0x303, 0x18003de33\nmov     dword ptr [rdi+860h], 6                                        ; +0x30d, 0x18003de3d\nmov     dword ptr [rdi+864h], 7Dh ; '}'                                ; +0x317, 0x18003de47\nmov     byte ptr [rdi+8E8h], 40h ; '@'                                 ; +0x321, 0x18003de51\nmov     [rdi+8F0h], r12d                                               ; +0x328, 0x18003de58\nmov     [rdi+0BD0h], r12d                                              ; +0x32f, 0x18003de5f\nmov     [rdi+8FCh], r12d                                               ; +0x336, 0x18003de66\ncall    sub_1800B3470                                                  ; +0x33d, 0x18003de6d\ntest    eax, eax                                                       ; +0x342, 0x18003de72\njnz     loc_18003E2E2                                                  ; +0x344, 0x18003de74\nmov     rcx, [rdi+170h]                                                ; +0x34a, 0x18003de7a\nlea     rdx, [rsp+510h+var_4C4]                                        ; +0x351, 0x18003de81\ncall    sub_1800B2CB0                                                  ; +0x356, 0x18003de86\ntest    eax, eax                                                       ; +0x35b, 0x18003de8b\njnz     loc_18003E2E2                                                  ; +0x35d, 0x18003de8d\ncmp     [rsp+510h+var_4C4], 1Ah                                        ; +0x363, 0x18003de93\njnz     loc_18003F13D                                                  ; +0x368, 0x18003de98\nmov     rcx, [rdi+170h]                                                ; +0x36e, 0x18003de9e\nlea     edx, [rax+3Ch]                                                 ; +0x375, 0x18003dea5\nxor     r8d, r8d                                                       ; +0x378, 0x18003dea8\ncall    sub_1800B3990                                                  ; +0x37b, 0x18003deab\ntest    eax, eax                                                       ; +0x380, 0x18003deb0\njnz     loc_18003E2E2                                                  ; +0x382, 0x18003deb2\nmov     rcx, [rdi+170h]                                                ; +0x388, 0x18003deb8\nlea     r9d, [r12+1]                                                   ; +0x38f, 0x18003debf\nlea     r8d, [r12+4]                                                   ; +0x394, 0x18003dec4\nmov     [rsp+510h+var_4F0], r12                                        ; +0x399, 0x18003dec9\nlea     rdx, [rsp+510h+var_498]                                        ; +0x39e, 0x18003dece\ncall    sub_1800B3470                                                  ; +0x3a3, 0x18003ded3\ntest    eax, eax                                                       ; +0x3a8, 0x18003ded8\njnz     loc_18003E2E2                                                  ; +0x3aa, 0x18003deda\nmov     rcx, [rdi+170h]                                                ; +0x3b0, 0x18003dee0\nlea     rdx, [rdi+8ECh]                                                ; +0x3b7, 0x18003dee7\nmov     [rsp+510h+arg_8], r13                                          ; +0x3be, 0x18003deee\ncall    sub_1800B30B0                                                  ; +0x3c6, 0x18003def6\ntest    eax, eax                                                       ; +0x3cb, 0x18003defb\njnz     loc_18003E2DA                                                  ; +0x3cd, 0x18003defd\nmov     rcx, [rdi+170h]                                                ; +0x3d3, 0x18003df03\nlea     rdx, [rdi+0BD0h]                                               ; +0x3da, 0x18003df0a\ncall    sub_1800B30B0                                                  ; +0x3e1, 0x18003df11\ntest    eax, eax                                                       ; +0x3e6, 0x18003df16\njnz     loc_18003E2DA                                                  ; +0x3e8, 0x18003df18\nmov     rcx, [rdi+170h]                                                ; +0x3ee, 0x18003df1e\nlea     r12, [rdi+3C8h]                                                ; +0x3f5, 0x18003df25\nmov     rdx, r12                                                       ; +0x3fc, 0x18003df2c\ncall    sub_1800B30B0                                                  ; +0x3ff, 0x18003df2f\ntest    eax, eax                                                       ; +0x404, 0x18003df34\njnz     loc_18003E2DA                                                  ; +0x406, 0x18003df36\nmov     rcx, [rdi+170h]                                                ; +0x40c, 0x18003df3c\nlea     rdx, [rsp+510h+var_4C8]                                        ; +0x413, 0x18003df43\ncall    sub_1800B3070                                                  ; +0x418, 0x18003df48\ntest    eax, eax                                                       ; +0x41d, 0x18003df4d\njnz     loc_18003E2DA                                                  ; +0x41f, 0x18003df4f\nmov     rcx, [rdi+170h]                                                ; +0x425, 0x18003df55\nlea     rdx, [rdi+8F8h]                                                ; +0x42c, 0x18003df5c\ncall    sub_1800B30B0                                                  ; +0x433, 0x18003df63\ntest    eax, eax                                                       ; +0x438, 0x18003df68\njnz     loc_18003E2DA                                                  ; +0x43a, 0x18003df6a\nmov     rcx, [rdi+170h]                                                ; +0x440, 0x18003df70\nlea     rdx, [rdi+0BE6h]                                               ; +0x447, 0x18003df77\ncall    sub_1800B3070                                                  ; +0x44e, 0x18003df7e\ntest    eax, eax                                                       ; +0x453, 0x18003df83\njnz     loc_18003E2DA                                                  ; +0x455, 0x18003df85\nmov     rcx, [rdi+170h]                                                ; +0x45b, 0x18003df8b\nlea     rdx, [rdi+860h]                                                ; +0x462, 0x18003df92\ncall    sub_1800B30B0                                                  ; +0x469, 0x18003df99\ntest    eax, eax                                                       ; +0x46e, 0x18003df9e\njnz     loc_18003E2DA                                                  ; +0x470, 0x18003dfa0\nmov     rcx, [rdi+170h]                                                ; +0x476, 0x18003dfa6\nlea     rdx, [rdi+864h]                                                ; +0x47d, 0x18003dfad\ncall    sub_1800B30F0                                                  ; +0x484, 0x18003dfb4\ntest    eax, eax                                                       ; +0x489, 0x18003dfb9\njnz     loc_18003E2DA                                                  ; +0x48b, 0x18003dfbb\nmov     rcx, [rdi+170h]                                                ; +0x491, 0x18003dfc1\nlea     rsi, [rdi+290h]                                                ; +0x498, 0x18003dfc8\nxor     r15d, r15d                                                     ; +0x49f, 0x18003dfcf\nlea     r8d, [rax+1]                                                   ; +0x4a2, 0x18003dfd2\nmov     rdx, rsi                                                       ; +0x4a6, 0x18003dfd6\nmov     [rsp+510h+var_4F0], r15                                        ; +0x4a9, 0x18003dfd9\nmov     r9d, 100h                                                      ; +0x4ae, 0x18003dfde\ncall    sub_1800B3470                                                  ; +0x4b4, 0x18003dfe4\ntest    eax, eax                                                       ; +0x4b9, 0x18003dfe9\njnz     loc_18003E2DA                                                  ; +0x4bb, 0x18003dfeb\nmov     byte ptr [rsp+510h+var_4E0], r15b                              ; +0x4c1, 0x18003dff1\nlea     r8, aNumberOfChanne; \"Number of channels\"                      ; +0x4c6, 0x18003dff6\nmov     dword ptr [rsp+510h+var_4E8], 1                                ; +0x4cd, 0x18003dffd\nlea     edx, [rax+9]                                                   ; +0x4d5, 0x18003e005\nmov     r9, r12                                                        ; +0x4d8, 0x18003e008\nmov     dword ptr [rsp+510h+var_4F0], 4                                ; +0x4db, 0x18003e00b\nmov     rcx, rdi                                                       ; +0x4e3, 0x18003e013\ncall    sub_180012590                                                  ; +0x4e6, 0x18003e016\ntest    eax, eax                                                       ; +0x4eb, 0x18003e01b\njnz     loc_18003E2DA                                                  ; +0x4ed, 0x18003e01d\nmov     r14d, r15d                                                     ; +0x4f3, 0x18003e023\ncmp     [r12], r15d                                                    ; +0x4f6, 0x18003e026\njle     short loc_18003E085                                            ; +0x4fa, 0x18003e02a\nnop     dword ptr [rax+00h]                                            ; +0x4fc, 0x18003e02c\nmov     rcx, cs:off_1801AED20                                          ; +0x500, 0x18003e030\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x507, 0x18003e037\nmov     r9d, 90Bh                                                      ; +0x50e, 0x18003e03e\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x514, 0x18003e044\nmov     edx, 130h                                                      ; +0x519, 0x18003e049\nmov     rcx, [rcx+1A0h]                                                ; +0x51e, 0x18003e04e\ncall    sub_1800B6880                                                  ; +0x525, 0x18003e055\ntest    rax, rax                                                       ; +0x52a, 0x18003e05a\njz      loc_18003E2D2                                                  ; +0x52d, 0x18003e05d\nlea     rcx, [rax+8]                                                   ; +0x533, 0x18003e063\ninc     r14d                                                           ; +0x537, 0x18003e067\nmov     [rcx+10h], r15                                                 ; +0x53a, 0x18003e06a\nmov     [rcx+8], rcx                                                   ; +0x53e, 0x18003e06e\nmov     [rcx], rcx                                                     ; +0x542, 0x18003e072\nmov     [rbx], rax                                                     ; +0x545, 0x18003e075\nadd     rbx, 8                                                         ; +0x548, 0x18003e078\nmov     [rax], rdi                                                     ; +0x54c, 0x18003e07c\ncmp     r14d, [r12]                                                    ; +0x54f, 0x18003e07f\njl      short loc_18003E030                                            ; +0x553, 0x18003e083\nmov     edx, [rsp+510h+var_498]                                        ; +0x555, 0x18003e085\nxor     r8d, r8d                                                       ; +0x559, 0x18003e089\nmov     rcx, [rdi+170h]                                                ; +0x55c, 0x18003e08c\nadd     edx, 3Ch ; '<'                                                 ; +0x563, 0x18003e093\ncall    sub_1800B3990                                                  ; +0x566, 0x18003e096\ntest    eax, eax                                                       ; +0x56b, 0x18003e09b\njnz     loc_18003E2DA                                                  ; +0x56d, 0x18003e09d\nmov     eax, [rdi+8ECh]                                                ; +0x573, 0x18003e0a3\nmov     edx, r15d                                                      ; +0x579, 0x18003e0a9\nmov     [rdi+8F0h], r15d                                               ; +0x57c, 0x18003e0ac\ntest    eax, eax                                                       ; +0x583, 0x18003e0b3\njle     short loc_18003E0E6                                            ; +0x585, 0x18003e0b5\nmov     ecx, eax                                                       ; +0x587, 0x18003e0b7\nnop     dword ptr [rax+00000000h]                                      ; +0x589, 0x18003e0b9\nmovzx   eax, byte ptr [rsi]                                            ; +0x590, 0x18003e0c0\ncmp     al, 0FEh                                                       ; +0x593, 0x18003e0c3\njnb     short loc_18003E0D7                                            ; +0x595, 0x18003e0c5\ncmp     eax, [rdi+8F0h]                                                ; +0x597, 0x18003e0c7\njl      short loc_18003E0D7                                            ; +0x59d, 0x18003e0cd\ninc     eax                                                            ; +0x59f, 0x18003e0cf\nmov     [rdi+8F0h], eax                                                ; +0x5a1, 0x18003e0d1\ninc     rsi                                                            ; +0x5a7, 0x18003e0d7\nsub     rcx, 1                                                         ; +0x5aa, 0x18003e0da\njnz     short loc_18003E0C0                                            ; +0x5ae, 0x18003e0de\nmov     edx, [rdi+8F0h]                                                ; +0x5b0, 0x18003e0e0\nmovzx   eax, [rsp+510h+var_4C8]                                        ; +0x5b6, 0x18003e0e6\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x5bb, 0x18003e0eb\ncmp     edx, eax                                                       ; +0x5c2, 0x18003e0f2\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x5c4, 0x18003e0f4\nmov     r9d, 92Bh                                                      ; +0x5c9, 0x18003e0f9\ncmovle  edx, eax                                                       ; +0x5cf, 0x18003e0ff\nmov     [rdi+8F4h], edx                                                ; +0x5d2, 0x18003e102\nmov     rcx, cs:off_1801AED20                                          ; +0x5d8, 0x18003e108\nshl     edx, 4                                                         ; +0x5df, 0x18003e10f\nmov     rcx, [rcx+1A0h]                                                ; +0x5e2, 0x18003e112\ncall    sub_1800B6880                                                  ; +0x5e9, 0x18003e119\nmov     [rdi+278h], rax                                                ; +0x5ee, 0x18003e11e\ntest    rax, rax                                                       ; +0x5f5, 0x18003e125\njz      loc_18003E2D5                                                  ; +0x5f8, 0x18003e128\nmovzx   ecx, [rsp+510h+var_4C8]                                        ; +0x5fe, 0x18003e12e\nmov     r13d, r15d                                                     ; +0x603, 0x18003e133\ncmp     r15w, cx                                                       ; +0x606, 0x18003e136\njnb     loc_18003E3B6                                                  ; +0x60a, 0x18003e13a\nxor     ebx, ebx                                                       ; +0x610, 0x18003e140\nmov     rcx, [rdi+170h]                                                ; +0x612, 0x18003e142\nlea     rdx, [rbp+410h+var_470]                                        ; +0x619, 0x18003e149\nmov     r12, [rdi+278h]                                                ; +0x61d, 0x18003e14d\nmov     r9d, 1                                                         ; +0x624, 0x18003e154\nmov     [rsp+510h+var_4F0], rbx                                        ; +0x62a, 0x18003e15a\nlea     r8d, [r9+3]                                                    ; +0x62f, 0x18003e15f\ncall    sub_1800B3470                                                  ; +0x633, 0x18003e163\ntest    eax, eax                                                       ; +0x638, 0x18003e168\njnz     loc_18003E2DA                                                  ; +0x63a, 0x18003e16a\nmov     rcx, [rdi+170h]                                                ; +0x640, 0x18003e170\nxor     edx, edx                                                       ; +0x647, 0x18003e177\ncall    sub_1800B2CB0                                                  ; +0x649, 0x18003e179\ntest    eax, eax                                                       ; +0x64e, 0x18003e17e\njnz     loc_18003E2DA                                                  ; +0x650, 0x18003e180\nmov     rcx, [rdi+170h]                                                ; +0x656, 0x18003e186\nlea     rdx, [rsp+510h+var_4BC]                                        ; +0x65d, 0x18003e18d\ncall    sub_1800B3070                                                  ; +0x662, 0x18003e192\ntest    eax, eax                                                       ; +0x667, 0x18003e197\njnz     loc_18003E2DA                                                  ; +0x669, 0x18003e199\nmov     rcx, [rdi+170h]                                                ; +0x66f, 0x18003e19f\nlea     rdx, [rsp+510h+var_4B8]                                        ; +0x676, 0x18003e1a6\ncall    sub_1800B3070                                                  ; +0x67b, 0x18003e1ab\ntest    eax, eax                                                       ; +0x680, 0x18003e1b0\njnz     loc_18003E2DA                                                  ; +0x682, 0x18003e1b2\nmovzx   eax, [rsp+510h+var_4BC]                                        ; +0x688, 0x18003e1b8\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x68d, 0x18003e1bd\nmov     [r15+r12], eax                                                 ; +0x694, 0x18003e1c4\nmov     r9d, 95Eh                                                      ; +0x698, 0x18003e1c8\nimul    eax, [rdi+3C8h]                                                ; +0x69e, 0x18003e1ce\nmov     rcx, cs:off_1801AED20                                          ; +0x6a5, 0x18003e1d5\nmov     dword ptr [rsp+510h+var_4F0], ebx                              ; +0x6ac, 0x18003e1dc\nmov     rcx, [rcx+1A0h]                                                ; +0x6b0, 0x18003e1e0\nlea     edx, [rax+rax*4]                                               ; +0x6b7, 0x18003e1e7\ncall    sub_1800B6880                                                  ; +0x6ba, 0x18003e1ea\nmov     [r15+r12+8], rax                                               ; +0x6bf, 0x18003e1ef\nmov     rsi, rax                                                       ; +0x6c4, 0x18003e1f4\ntest    rax, rax                                                       ; +0x6c7, 0x18003e1f7\njz      loc_18003E2D5                                                  ; +0x6ca, 0x18003e1fa\ncmp     [rsp+510h+var_4B8], 0                                          ; +0x6d0, 0x18003e200\njbe     loc_18003E397                                                  ; +0x6d6, 0x18003e206\nmov     ecx, [r15+r12]                                                 ; +0x6dc, 0x18003e20c\nmov     r14d, ebx                                                      ; +0x6e0, 0x18003e210\nimul    ecx, [rdi+3C8h]                                                ; +0x6e3, 0x18003e213\ntest    ecx, ecx                                                       ; +0x6ea, 0x18003e21a\njle     loc_18003E397                                                  ; +0x6ec, 0x18003e21c\nlea     rbx, [rax+3]                                                   ; +0x6f2, 0x18003e222\nnop     word ptr [rax+rax+00000000h]                                   ; +0x6f6, 0x18003e226\nmov     rcx, [rdi+170h]                                                ; +0x700, 0x18003e230\nlea     rdx, [rsp+510h+var_4D0]                                        ; +0x707, 0x18003e237\ncall    sub_1800B2CB0                                                  ; +0x70c, 0x18003e23c\ntest    eax, eax                                                       ; +0x711, 0x18003e241\njnz     loc_18003E2DA                                                  ; +0x713, 0x18003e243\nmovzx   eax, [rsp+510h+var_4D0]                                        ; +0x719, 0x18003e249\ntest    al, al                                                         ; +0x71e, 0x18003e24e\njns     loc_18003E30D                                                  ; +0x720, 0x18003e250\ntest    al, 1                                                          ; +0x726, 0x18003e256\njz      short loc_18003E272                                            ; +0x728, 0x18003e258\nmov     rcx, [rdi+170h]                                                ; +0x72a, 0x18003e25a\nmov     rdx, rsi                                                       ; +0x731, 0x18003e261\ncall    sub_1800B2CB0                                                  ; +0x734, 0x18003e264\ntest    eax, eax                                                       ; +0x739, 0x18003e269\njnz     short loc_18003E2DA                                            ; +0x73b, 0x18003e26b\nmovzx   eax, [rsp+510h+var_4D0]                                        ; +0x73d, 0x18003e26d\ntest    al, 2                                                          ; +0x742, 0x18003e272\njz      short loc_18003E28F                                            ; +0x744, 0x18003e274\nmov     rcx, [rdi+170h]                                                ; +0x746, 0x18003e276\nlea     rdx, [rbx-2]                                                   ; +0x74d, 0x18003e27d\ncall    sub_1800B2CB0                                                  ; +0x751, 0x18003e281\ntest    eax, eax                                                       ; +0x756, 0x18003e286\njnz     short loc_18003E2DA                                            ; +0x758, 0x18003e288\nmovzx   eax, [rsp+510h+var_4D0]                                        ; +0x75a, 0x18003e28a\ntest    al, 4                                                          ; +0x75f, 0x18003e28f\njz      short loc_18003E2AC                                            ; +0x761, 0x18003e291\nmov     rcx, [rdi+170h]                                                ; +0x763, 0x18003e293\nlea     rdx, [rbx-1]                                                   ; +0x76a, 0x18003e29a\ncall    sub_1800B2CB0                                                  ; +0x76e, 0x18003e29e\ntest    eax, eax                                                       ; +0x773, 0x18003e2a3\njnz     short loc_18003E2DA                                            ; +0x775, 0x18003e2a5\nmovzx   eax, [rsp+510h+var_4D0]                                        ; +0x777, 0x18003e2a7\ntest    al, 8                                                          ; +0x77c, 0x18003e2ac\njz      short loc_18003E2C8                                            ; +0x77e, 0x18003e2ae\nmov     rcx, [rdi+170h]                                                ; +0x780, 0x18003e2b0\nmov     rdx, rbx                                                       ; +0x787, 0x18003e2b7\ncall    sub_1800B2CB0                                                  ; +0x78a, 0x18003e2ba\ntest    eax, eax                                                       ; +0x78f, 0x18003e2bf\njnz     short loc_18003E2DA                                            ; +0x791, 0x18003e2c1\nmovzx   eax, [rsp+510h+var_4D0]                                        ; +0x793, 0x18003e2c3\ntest    al, 10h                                                        ; +0x798, 0x18003e2c8\njz      loc_18003E364                                                  ; +0x79a, 0x18003e2ca\njmp     short loc_18003E34C                                            ; +0x7a0, 0x18003e2d0\nmov     [rbx], r15                                                     ; +0x7a2, 0x18003e2d2\nmov     eax, 26h ; '&'                                                 ; +0x7a5, 0x18003e2d5\nmov     r13, [rsp+510h+arg_8]                                          ; +0x7aa, 0x18003e2da\nmov     rcx, [rbp+410h+var_30]                                         ; +0x7b2, 0x18003e2e2\nxor     rcx, rsp; StackCookie                                          ; +0x7b9, 0x18003e2e9\ncall    __security_check_cookie                                        ; +0x7bc, 0x18003e2ec\nlea     r11, [rsp+510h+var_20]                                         ; +0x7c1, 0x18003e2f1\nmov     rbx, [r11+40h]                                                 ; +0x7c9, 0x18003e2f9\nmov     rsi, [r11+48h]                                                 ; +0x7cd, 0x18003e2fd\nmov     rsp, r11                                                       ; +0x7d1, 0x18003e301\npop     r15                                                            ; +0x7d4, 0x18003e304\npop     r14                                                            ; +0x7d6, 0x18003e306\npop     r12                                                            ; +0x7d8, 0x18003e308\npop     rdi                                                            ; +0x7da, 0x18003e30a\npop     rbp                                                            ; +0x7db, 0x18003e30b\nretn                                                                   ; +0x7dc, 0x18003e30c\njz      short loc_18003E311                                            ; +0x7dd, 0x18003e30d\nmov     [rsi], al                                                      ; +0x7df, 0x18003e30f\nmov     rcx, [rdi+170h]                                                ; +0x7e1, 0x18003e311\nlea     rdx, [rbx-2]                                                   ; +0x7e8, 0x18003e318\ncall    sub_1800B2CB0                                                  ; +0x7ec, 0x18003e31c\ntest    eax, eax                                                       ; +0x7f1, 0x18003e321\njnz     short loc_18003E2DA                                            ; +0x7f3, 0x18003e323\nmov     rcx, [rdi+170h]                                                ; +0x7f5, 0x18003e325\nlea     rdx, [rbx-1]                                                   ; +0x7fc, 0x18003e32c\ncall    sub_1800B2CB0                                                  ; +0x800, 0x18003e330\ntest    eax, eax                                                       ; +0x805, 0x18003e335\njnz     short loc_18003E2DA                                            ; +0x807, 0x18003e337\nmov     rcx, [rdi+170h]                                                ; +0x809, 0x18003e339\nmov     rdx, rbx                                                       ; +0x810, 0x18003e340\ncall    sub_1800B2CB0                                                  ; +0x813, 0x18003e343\ntest    eax, eax                                                       ; +0x818, 0x18003e348\njnz     short loc_18003E2DA                                            ; +0x81a, 0x18003e34a\nmov     rcx, [rdi+170h]                                                ; +0x81c, 0x18003e34c\nlea     rdx, [rbx+1]                                                   ; +0x823, 0x18003e353\ncall    sub_1800B2CB0                                                  ; +0x827, 0x18003e357\ntest    eax, eax                                                       ; +0x82c, 0x18003e35c\njnz     loc_18003E2DA                                                  ; +0x82e, 0x18003e35e\ncmp     byte ptr [rsi], 61h ; 'a'                                      ; +0x834, 0x18003e364\njnz     short loc_18003E36C                                            ; +0x837, 0x18003e367\nmov     byte ptr [rsi], 0FFh                                           ; +0x839, 0x18003e369\ncmp     byte ptr [rbx-2], 80h                                          ; +0x83c, 0x18003e36c\njbe     short loc_18003E376                                            ; +0x840, 0x18003e370\nmov     byte ptr [rbx-2], 0                                            ; +0x842, 0x18003e372\nmov     eax, [r15+r12]                                                 ; +0x846, 0x18003e376\nadd     rsi, 5                                                         ; +0x84a, 0x18003e37a\nimul    eax, [rdi+3C8h]                                                ; +0x84e, 0x18003e37e\nadd     rbx, 5                                                         ; +0x855, 0x18003e385\ninc     r14d                                                           ; +0x859, 0x18003e389\ncmp     r14d, eax                                                      ; +0x85c, 0x18003e38c\njl      loc_18003E230                                                  ; +0x85f, 0x18003e38f\nxor     ebx, ebx                                                       ; +0x865, 0x18003e395\nmovzx   ecx, [rsp+510h+var_4C8]                                        ; +0x867, 0x18003e397\ninc     r13d                                                           ; +0x86c, 0x18003e39c\nadd     r15, 10h                                                       ; +0x86f, 0x18003e39f\ncmp     r13d, ecx                                                      ; +0x873, 0x18003e3a3\njl      loc_18003E142                                                  ; +0x876, 0x18003e3a6\nlea     r12, [rdi+3C8h]                                                ; +0x87c, 0x18003e3ac\nxor     r15d, r15d                                                     ; +0x883, 0x18003e3b3\nmovzx   r14d, cx                                                       ; +0x886, 0x18003e3b6\ncmp     [rdi+8F0h], r14d                                               ; +0x88a, 0x18003e3ba\njle     short loc_18003E42B                                            ; +0x891, 0x18003e3c1\nmov     esi, r14d                                                      ; +0x893, 0x18003e3c3\nshl     rsi, 4                                                         ; +0x896, 0x18003e3c6\nnop     word ptr [rax+rax+00h]                                         ; +0x89a, 0x18003e3ca\nmov     rbx, [rdi+278h]                                                ; +0x8a0, 0x18003e3d0\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x8a7, 0x18003e3d7\nmov     r9d, 9D8h                                                      ; +0x8ae, 0x18003e3de\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x8b4, 0x18003e3e4\nmov     dword ptr [rsi+rbx], 40h ; '@'                                 ; +0x8b9, 0x18003e3e9\nmov     eax, [r12]                                                     ; +0x8c0, 0x18003e3f0\nmov     rcx, cs:off_1801AED20                                          ; +0x8c4, 0x18003e3f4\nlea     edx, [rax+rax*4]                                               ; +0x8cb, 0x18003e3fb\nmov     rcx, [rcx+1A0h]                                                ; +0x8ce, 0x18003e3fe\nshl     edx, 6                                                         ; +0x8d5, 0x18003e405\ncall    sub_1800B6880                                                  ; +0x8d8, 0x18003e408\nmov     [rsi+rbx+8], rax                                               ; +0x8dd, 0x18003e40d\ntest    rax, rax                                                       ; +0x8e2, 0x18003e412\njz      loc_18003E2D5                                                  ; +0x8e5, 0x18003e415\ninc     r14d                                                           ; +0x8eb, 0x18003e41b\nadd     rsi, 10h                                                       ; +0x8ee, 0x18003e41e\ncmp     r14d, [rdi+8F0h]                                               ; +0x8f2, 0x18003e422\njl      short loc_18003E3D0                                            ; +0x8f9, 0x18003e429\nmov     rcx, cs:off_1801AED20                                          ; +0x8fb, 0x18003e42b\nlea     r13, [rdi+8F8h]                                                ; +0x902, 0x18003e432\nimul    edx, [r13+0], 618h                                             ; +0x909, 0x18003e439\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x911, 0x18003e441\nmov     r9d, 9E5h                                                      ; +0x918, 0x18003e448\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x91e, 0x18003e44e\nmov     rcx, [rcx+1A0h]                                                ; +0x923, 0x18003e453\ncall    sub_1800B6880                                                  ; +0x92a, 0x18003e45a\nmov     [rdi+900h], rax                                                ; +0x92f, 0x18003e45f\ntest    rax, rax                                                       ; +0x936, 0x18003e466\njz      loc_18003E2D5                                                  ; +0x939, 0x18003e469\ncmp     dword ptr [r13+0], 0                                           ; +0x93f, 0x18003e46f\nmov     dword ptr [rsp+510h+Size+4], r15d                              ; +0x944, 0x18003e474\njle     loc_18003EEB0                                                  ; +0x949, 0x18003e479\nmov     rcx, r15                                                       ; +0x94f, 0x18003e47f\nmov     [rbp+410h+var_478], rcx                                        ; +0x952, 0x18003e482\nnop     word ptr [rax+rax+00000000h]                                   ; +0x956, 0x18003e486\nmov     r13, [rdi+900h]                                                ; +0x960, 0x18003e490\nlea     rdx, [rsp+510h+var_4C0]                                        ; +0x967, 0x18003e497\nadd     r13, rcx                                                       ; +0x96c, 0x18003e49c\nmov     [rsp+510h+var_4A0], r15                                        ; +0x96f, 0x18003e49f\nmov     rcx, [rdi+170h]                                                ; +0x974, 0x18003e4a4\ncall    sub_1800B3D20                                                  ; +0x97b, 0x18003e4ab\nmov     rcx, [rdi+170h]                                                ; +0x980, 0x18003e4b0\nlea     rdx, [rsp+510h+var_494]                                        ; +0x987, 0x18003e4b7\nmov     r9d, 1                                                         ; +0x98c, 0x18003e4bc\nmov     [rsp+510h+var_4F0], r15                                        ; +0x992, 0x18003e4c2\nlea     r8d, [r9+3]                                                    ; +0x997, 0x18003e4c7\ncall    sub_1800B3470                                                  ; +0x99b, 0x18003e4cb\ntest    eax, eax                                                       ; +0x9a0, 0x18003e4d0\njnz     loc_18003EEA9                                                  ; +0x9a2, 0x18003e4d2\nmov     eax, [rsp+510h+var_494]                                        ; +0x9a8, 0x18003e4d8\nmov     r9d, 16h                                                       ; +0x9ac, 0x18003e4dc\nmov     rcx, [rdi+170h]                                                ; +0x9b2, 0x18003e4e2\nmov     rdx, r13                                                       ; +0x9b9, 0x18003e4e9\nadd     [rsp+510h+var_4C0], eax                                        ; +0x9bc, 0x18003e4ec\nmov     [rsp+510h+var_4F0], r15                                        ; +0x9c0, 0x18003e4f0\nlea     r8d, [r9-15h]                                                  ; +0x9c5, 0x18003e4f5\ncall    sub_1800B3470                                                  ; +0x9c9, 0x18003e4f9\ntest    eax, eax                                                       ; +0x9ce, 0x18003e4fe\njnz     loc_18003E2DA                                                  ; +0x9d0, 0x18003e500\nmov     rcx, [rdi+170h]                                                ; +0x9d6, 0x18003e506\nxor     edx, edx                                                       ; +0x9dd, 0x18003e50d\ncall    sub_1800B2CB0                                                  ; +0x9df, 0x18003e50f\ntest    eax, eax                                                       ; +0x9e4, 0x18003e514\njnz     loc_18003E2DA                                                  ; +0x9e6, 0x18003e516\nmov     rcx, [rdi+170h]                                                ; +0x9ec, 0x18003e51c\nlea     rdx, [rsp+510h+var_4CC]                                        ; +0x9f3, 0x18003e523\ncall    sub_1800B3070                                                  ; +0x9f8, 0x18003e528\ntest    eax, eax                                                       ; +0x9fd, 0x18003e52d\njnz     loc_18003E2DA                                                  ; +0x9ff, 0x18003e52f\nmovzx   eax, [rsp+510h+var_4CC]                                        ; +0xa05, 0x18003e535\nmov     [r13+1Ch], eax                                                 ; +0xa0a, 0x18003e53a\ncmp     [rsp+510h+var_4CC], 0                                          ; +0xa0e, 0x18003e53e\njbe     loc_18003EE1F                                                  ; +0xa14, 0x18003e544\nmov     rcx, [rdi+170h]                                                ; +0xa1a, 0x18003e54a\nlea     rdx, [rbp+410h+var_46C]                                        ; +0xa21, 0x18003e551\nmov     r9d, 1                                                         ; +0xa25, 0x18003e555\nmov     [rsp+510h+var_4F0], r15                                        ; +0xa2b, 0x18003e55b\nlea     r8d, [r9+3]                                                    ; +0xa30, 0x18003e560\ncall    sub_1800B3470                                                  ; +0xa34, 0x18003e564\ntest    eax, eax                                                       ; +0xa39, 0x18003e569\njnz     loc_18003E2DA                                                  ; +0xa3b, 0x18003e56b\nmov     rcx, [rdi+170h]                                                ; +0xa41, 0x18003e571\nlea     rdx, [r13+3A0h]                                                ; +0xa48, 0x18003e578\nlea     r9d, [rax+60h]                                                 ; +0xa4f, 0x18003e57f\nmov     [rsp+510h+var_4F0], r15                                        ; +0xa53, 0x18003e583\nlea     r8d, [rax+1]                                                   ; +0xa58, 0x18003e588\ncall    sub_1800B3470                                                  ; +0xa5c, 0x18003e58c\ntest    eax, eax                                                       ; +0xa61, 0x18003e591\njnz     loc_18003E2DA                                                  ; +0xa63, 0x18003e593\nmov     rcx, [rdi+170h]                                                ; +0xa69, 0x18003e599\nlea     rdx, [r13+402h]                                                ; +0xa70, 0x18003e5a0\nlea     r9d, [rax+18h]                                                 ; +0xa77, 0x18003e5a7\nmov     [rsp+510h+var_4F0], r15                                        ; +0xa7b, 0x18003e5ab\nlea     r8d, [rax+2]                                                   ; +0xa80, 0x18003e5b0\ncall    sub_1800B3470                                                  ; +0xa84, 0x18003e5b4\ntest    eax, eax                                                       ; +0xa89, 0x18003e5b9\njnz     loc_18003E2DA                                                  ; +0xa8b, 0x18003e5bb\nmov     rcx, [rdi+170h]                                                ; +0xa91, 0x18003e5c1\nlea     rdx, [r13+45Ah]                                                ; +0xa98, 0x18003e5c8\nlea     r9d, [rax+18h]                                                 ; +0xa9f, 0x18003e5cf\nmov     [rsp+510h+var_4F0], r15                                        ; +0xaa3, 0x18003e5d3\nlea     r8d, [rax+2]                                                   ; +0xaa8, 0x18003e5d8\ncall    sub_1800B3470                                                  ; +0xaac, 0x18003e5dc\ntest    eax, eax                                                       ; +0xab1, 0x18003e5e1\njnz     loc_18003E2DA                                                  ; +0xab3, 0x18003e5e3\nmov     rcx, [rdi+170h]                                                ; +0xab9, 0x18003e5e9\nlea     rdx, [r13+401h]                                                ; +0xac0, 0x18003e5f0\ncall    sub_1800B2CB0                                                  ; +0xac7, 0x18003e5f7\ntest    eax, eax                                                       ; +0xacc, 0x18003e5fc\njnz     loc_18003E2DA                                                  ; +0xace, 0x18003e5fe\nmov     rcx, [rdi+170h]                                                ; +0xad4, 0x18003e604\nlea     rdx, [r13+458h]                                                ; +0xadb, 0x18003e60b\ncall    sub_1800B2CB0                                                  ; +0xae2, 0x18003e612\ntest    eax, eax                                                       ; +0xae7, 0x18003e617\njnz     loc_18003E2DA                                                  ; +0xae9, 0x18003e619\nmov     rcx, [rdi+170h]                                                ; +0xaef, 0x18003e61f\nlea     rdx, [r13+452h]                                                ; +0xaf6, 0x18003e626\ncall    sub_1800B2CB0                                                  ; +0xafd, 0x18003e62d\ntest    eax, eax                                                       ; +0xb02, 0x18003e632\njnz     loc_18003E2DA                                                  ; +0xb04, 0x18003e634\nmov     rcx, [rdi+170h]                                                ; +0xb0a, 0x18003e63a\nlea     rdx, [r13+453h]                                                ; +0xb11, 0x18003e641\ncall    sub_1800B2CB0                                                  ; +0xb18, 0x18003e648\ntest    eax, eax                                                       ; +0xb1d, 0x18003e64d\njnz     loc_18003E2DA                                                  ; +0xb1f, 0x18003e64f\nmov     rcx, [rdi+170h]                                                ; +0xb25, 0x18003e655\nlea     rdx, [r13+454h]                                                ; +0xb2c, 0x18003e65c\ncall    sub_1800B2CB0                                                  ; +0xb33, 0x18003e663\ntest    eax, eax                                                       ; +0xb38, 0x18003e668\njnz     loc_18003E2DA                                                  ; +0xb3a, 0x18003e66a\nmov     rcx, [rdi+170h]                                                ; +0xb40, 0x18003e670\nlea     rdx, [r13+4AAh]                                                ; +0xb47, 0x18003e677\ncall    sub_1800B2CB0                                                  ; +0xb4e, 0x18003e67e\ntest    eax, eax                                                       ; +0xb53, 0x18003e683\njnz     loc_18003E2DA                                                  ; +0xb55, 0x18003e685\nmov     rcx, [rdi+170h]                                                ; +0xb5b, 0x18003e68b\nlea     rdx, [r13+4ABh]                                                ; +0xb62, 0x18003e692\ncall    sub_1800B2CB0                                                  ; +0xb69, 0x18003e699\ntest    eax, eax                                                       ; +0xb6e, 0x18003e69e\njnz     loc_18003E2DA                                                  ; +0xb70, 0x18003e6a0\nmov     rcx, [rdi+170h]                                                ; +0xb76, 0x18003e6a6\nlea     rdx, [r13+4ACh]                                                ; +0xb7d, 0x18003e6ad\ncall    sub_1800B2CB0                                                  ; +0xb84, 0x18003e6b4\ntest    eax, eax                                                       ; +0xb89, 0x18003e6b9\njnz     loc_18003E2DA                                                  ; +0xb8b, 0x18003e6bb\nmov     rcx, [rdi+170h]                                                ; +0xb91, 0x18003e6c1\nlea     rdx, [r13+400h]                                                ; +0xb98, 0x18003e6c8\ncall    sub_1800B2CB0                                                  ; +0xb9f, 0x18003e6cf\ntest    eax, eax                                                       ; +0xba4, 0x18003e6d4\njnz     loc_18003E2DA                                                  ; +0xba6, 0x18003e6d6\nmov     rcx, [rdi+170h]                                                ; +0xbac, 0x18003e6dc\nlea     rdx, [r13+457h]                                                ; +0xbb3, 0x18003e6e3\ncall    sub_1800B2CB0                                                  ; +0xbba, 0x18003e6ea\ntest    eax, eax                                                       ; +0xbbf, 0x18003e6ef\njnz     loc_18003E2DA                                                  ; +0xbc1, 0x18003e6f1\nmov     rcx, [rdi+170h]                                                ; +0xbc7, 0x18003e6f7\nlea     rdx, [r13+507h]                                                ; +0xbce, 0x18003e6fe\ncall    sub_1800B2CB0                                                  ; +0xbd5, 0x18003e705\ntest    eax, eax                                                       ; +0xbda, 0x18003e70a\njnz     loc_18003E2DA                                                  ; +0xbdc, 0x18003e70c\nmov     rcx, [rdi+170h]                                                ; +0xbe2, 0x18003e712\nlea     rdx, [r13+508h]                                                ; +0xbe9, 0x18003e719\ncall    sub_1800B2CB0                                                  ; +0xbf0, 0x18003e720\ntest    eax, eax                                                       ; +0xbf5, 0x18003e725\njnz     loc_18003E2DA                                                  ; +0xbf7, 0x18003e727\nmov     rcx, [rdi+170h]                                                ; +0xbfd, 0x18003e72d\nlea     rdx, [r13+509h]                                                ; +0xc04, 0x18003e734\ncall    sub_1800B2CB0                                                  ; +0xc0b, 0x18003e73b\ntest    eax, eax                                                       ; +0xc10, 0x18003e740\njnz     loc_18003E2DA                                                  ; +0xc12, 0x18003e742\nmov     rcx, [rdi+170h]                                                ; +0xc18, 0x18003e748\nlea     rdx, [r13+50Ah]                                                ; +0xc1f, 0x18003e74f\ncall    sub_1800B2CB0                                                  ; +0xc26, 0x18003e756\ntest    eax, eax                                                       ; +0xc2b, 0x18003e75b\njnz     loc_18003E2DA                                                  ; +0xc2d, 0x18003e75d\nmov     rcx, [rdi+170h]                                                ; +0xc33, 0x18003e763\nlea     rdx, [r13+50Ch]                                                ; +0xc3a, 0x18003e76a\ncall    sub_1800B3070                                                  ; +0xc41, 0x18003e771\ntest    eax, eax                                                       ; +0xc46, 0x18003e776\njnz     loc_18003E2DA                                                  ; +0xc48, 0x18003e778\nmovzx   eax, word ptr [r13+50Ch]                                       ; +0xc4e, 0x18003e77e\nadd     ax, ax                                                         ; +0xc56, 0x18003e786\ncmp     byte ptr [r13+401h], 2                                         ; +0xc59, 0x18003e789\nmov     [r13+50Ch], ax                                                 ; +0xc61, 0x18003e791\njnb     short loc_18003E7A3                                            ; +0xc69, 0x18003e799\nmov     byte ptr [r13+400h], 0                                         ; +0xc6b, 0x18003e79b\ncmp     byte ptr [r13+458h], 2                                         ; +0xc73, 0x18003e7a3\njnb     short loc_18003E7B5                                            ; +0xc7b, 0x18003e7ab\nmov     byte ptr [r13+457h], 0                                         ; +0xc7d, 0x18003e7ad\nmov     edx, [rsp+510h+var_4C0]                                        ; +0xc85, 0x18003e7b5\nxor     r8d, r8d                                                       ; +0xc89, 0x18003e7b9\nmov     rcx, [rdi+170h]                                                ; +0xc8c, 0x18003e7bc\ncall    sub_1800B3990                                                  ; +0xc93, 0x18003e7c3\ntest    eax, eax                                                       ; +0xc98, 0x18003e7c8\njnz     loc_18003E2DA                                                  ; +0xc9a, 0x18003e7ca\nxor     r15d, r15d                                                     ; +0xca0, 0x18003e7d0\nmov     r8d, r15d                                                      ; +0xca3, 0x18003e7d3\nmov     [rsp+510h+var_4A8], r15d                                       ; +0xca6, 0x18003e7d6\ncmp     r15w, [rsp+510h+var_4CC]                                       ; +0xcab, 0x18003e7db\njnb     loc_18003EB0C                                                  ; +0xcb1, 0x18003e7e1\nnop     word ptr [rax+rax+00000000h]                                   ; +0xcb7, 0x18003e7e7\nmov     eax, r8d                                                       ; +0xcc0, 0x18003e7f0\nlea     r12, [r13+20h]                                                 ; +0xcc3, 0x18003e7f3\nxorps   xmm0, xmm0                                                     ; +0xcc7, 0x18003e7f7\nmov     [rsp+510h+var_4F0], r15                                        ; +0xcca, 0x18003e7fa\nimul    rsi, rax, 38h ; '8'                                            ; +0xccf, 0x18003e7ff\nxor     eax, eax                                                       ; +0xcd3, 0x18003e803\nlea     rdx, [rsp+510h+var_4AC]                                        ; +0xcd5, 0x18003e805\nadd     r12, rsi                                                       ; +0xcda, 0x18003e80a\nlea     r9d, [rax+1]                                                   ; +0xcdd, 0x18003e80d\nmovups  xmmword ptr [r12], xmm0                                        ; +0xce1, 0x18003e811\nlea     r8d, [rax+4]                                                   ; +0xce6, 0x18003e816\nmovups  xmmword ptr [r12+10h], xmm0                                    ; +0xcea, 0x18003e81a\nmovups  xmmword ptr [r12+20h], xmm0                                    ; +0xcf0, 0x18003e820\nmov     [r12+30h], rax                                                 ; +0xcf6, 0x18003e826\nmov     rcx, [rdi+170h]                                                ; +0xcfb, 0x18003e82b\ninc     dword ptr [rdi+8FCh]                                           ; +0xd02, 0x18003e832\ncall    sub_1800B3470                                                  ; +0xd08, 0x18003e838\ntest    eax, eax                                                       ; +0xd0d, 0x18003e83d\njnz     loc_18003E2DA                                                  ; +0xd0f, 0x18003e83f\nmov     rcx, [rdi+170h]                                                ; +0xd15, 0x18003e845\nlea     r14, [rsi+r13]                                                 ; +0xd1c, 0x18003e84c\nlea     rdx, [r14+30h]                                                 ; +0xd20, 0x18003e850\nmov     [rsp+510h+var_4F0], r15                                        ; +0xd24, 0x18003e854\nlea     r9d, [rax+1]                                                   ; +0xd29, 0x18003e859\nlea     r8d, [rax+4]                                                   ; +0xd2d, 0x18003e85d\ncall    sub_1800B3470                                                  ; +0xd31, 0x18003e861\ntest    eax, eax                                                       ; +0xd36, 0x18003e866\njnz     loc_18003E2DA                                                  ; +0xd38, 0x18003e868\nmov     rcx, [rdi+170h]                                                ; +0xd3e, 0x18003e86e\nlea     r15, [rsi+r13]                                                 ; +0xd45, 0x18003e875\nxor     eax, eax                                                       ; +0xd49, 0x18003e879\nlea     rdx, [r15+34h]                                                 ; +0xd4b, 0x18003e87b\nmov     [rsp+510h+var_4F0], rax                                        ; +0xd4f, 0x18003e87f\nlea     r9d, [rax+1]                                                   ; +0xd54, 0x18003e884\nlea     r8d, [rax+4]                                                   ; +0xd58, 0x18003e888\ncall    sub_1800B3470                                                  ; +0xd5c, 0x18003e88c\ntest    eax, eax                                                       ; +0xd61, 0x18003e891\njnz     loc_18003E2DA                                                  ; +0xd63, 0x18003e893\nmov     rcx, [rdi+170h]                                                ; +0xd69, 0x18003e899\nlea     rdx, [r13+2Ch]                                                 ; +0xd70, 0x18003e8a0\nadd     rdx, rsi                                                       ; +0xd74, 0x18003e8a4\ncall    sub_1800B2CB0                                                  ; +0xd77, 0x18003e8a7\ntest    eax, eax                                                       ; +0xd7c, 0x18003e8ac\njnz     loc_18003E2DA                                                  ; +0xd7e, 0x18003e8ae\nmov     rcx, [rdi+170h]                                                ; +0xd84, 0x18003e8b4\nlea     rdx, [r13+3Ch]                                                 ; +0xd8b, 0x18003e8bb\nadd     rdx, rsi                                                       ; +0xd8f, 0x18003e8bf\ncall    sub_1800B2D30                                                  ; +0xd92, 0x18003e8c2\ntest    eax, eax                                                       ; +0xd97, 0x18003e8c7\njnz     loc_18003E2DA                                                  ; +0xd99, 0x18003e8c9\nmov     dword ptr [rsi+r13+54h], 1                                     ; +0xd9f, 0x18003e8cf\nlea     rdx, [rsp+510h+var_4C3]                                        ; +0xda8, 0x18003e8d8\nmov     rcx, [rdi+170h]                                                ; +0xdad, 0x18003e8dd\ncall    sub_1800B2CB0                                                  ; +0xdb4, 0x18003e8e4\ntest    eax, eax                                                       ; +0xdb9, 0x18003e8e9\njnz     loc_18003E2DA                                                  ; +0xdbb, 0x18003e8eb\nmovzx   ecx, [rsp+510h+var_4C3]                                        ; +0xdc1, 0x18003e8f1\nmov     eax, ecx                                                       ; +0xdc6, 0x18003e8f6\nand     eax, 1                                                         ; +0xdc8, 0x18003e8f8\nlea     ebx, ds:8[rax*2]                                               ; +0xdcb, 0x18003e8fb\ntest    cl, 2                                                          ; +0xdd2, 0x18003e902\njz      short loc_18003E90D                                            ; +0xdd5, 0x18003e905\nand     ebx, 0FFFFFFFDh                                                ; +0xdd7, 0x18003e907\nor      ebx, 4                                                         ; +0xdda, 0x18003e90a\ntest    cl, 10h                                                        ; +0xddd, 0x18003e90d\njz      short loc_18003E91B                                            ; +0xde0, 0x18003e910\nmov     dword ptr [rsi+r13+54h], 2                                     ; +0xde2, 0x18003e912\nmov     eax, [rsp+510h+var_4AC]                                        ; +0xdeb, 0x18003e91b\nand     cl, 20h                                                        ; +0xdef, 0x18003e91f\nxor     r10d, r10d                                                     ; +0xdf2, 0x18003e922\ntest    bl, 6                                                          ; +0xdf5, 0x18003e925\njnz     short loc_18003E933                                            ; +0xdf8, 0x18003e928\nmov     [r15+34h], eax                                                 ; +0xdfa, 0x18003e92a\nmov     r9d, r10d                                                      ; +0xdfe, 0x18003e92e\njmp     short loc_18003E937                                            ; +0xe01, 0x18003e931\nmov     r9d, [r14+30h]                                                 ; +0xe03, 0x18003e933\nmov     r8d, [r15+34h]                                                 ; +0xe07, 0x18003e937\ntest    r8d, r8d                                                       ; +0xe0b, 0x18003e93b\njnz     short loc_18003E94C                                            ; +0xe0e, 0x18003e93e\nand     ebx, 0FFFFFFF9h                                                ; +0xe10, 0x18003e940\nmov     r9d, r10d                                                      ; +0xe13, 0x18003e943\nor      ebx, 1                                                         ; +0xe16, 0x18003e946\nmov     r8d, eax                                                       ; +0xe19, 0x18003e949\ncmp     dword ptr [rsi+r13+54h], 1                                     ; +0xe1c, 0x18003e94c\nmov     edx, r10d                                                      ; +0xe22, 0x18003e952\nmov     [rsi+r13+40h], eax                                             ; +0xe25, 0x18003e955\nmov     eax, r10d                                                      ; +0xe2a, 0x18003e95a\nsetnz   dl                                                             ; +0xe2d, 0x18003e95d\ntest    cl, cl                                                         ; +0xe30, 0x18003e960\nmov     ecx, edx                                                       ; +0xe32, 0x18003e962\nsetnz   al                                                             ; +0xe34, 0x18003e964\nshr     r9d, cl                                                        ; +0xe37, 0x18003e967\nmov     ecx, eax                                                       ; +0xe3a, 0x18003e96a\nshr     r9d, cl                                                        ; +0xe3c, 0x18003e96c\nmov     ecx, edx                                                       ; +0xe3f, 0x18003e96f\nshr     r8d, cl                                                        ; +0xe41, 0x18003e971\nlea     rdx, [r13+2Dh]                                                 ; +0xe44, 0x18003e974\nmov     ecx, eax                                                       ; +0xe48, 0x18003e978\nmov     [r14+30h], r9d                                                 ; +0xe4a, 0x18003e97a\nshr     r8d, cl                                                        ; +0xe4e, 0x18003e97e\nadd     rdx, rsi                                                       ; +0xe51, 0x18003e981\nmov     [r15+34h], r8d                                                 ; +0xe54, 0x18003e984\nmov     rcx, [rdi+170h]                                                ; +0xe58, 0x18003e988\ncall    sub_1800B2CB0                                                  ; +0xe5f, 0x18003e98f\ntest    eax, eax                                                       ; +0xe64, 0x18003e994\njnz     loc_18003E2DA                                                  ; +0xe66, 0x18003e996\nmov     rcx, [rdi+170h]                                                ; +0xe6c, 0x18003e99c\nlea     rdx, [r13+38h]                                                 ; +0xe73, 0x18003e9a3\nadd     rdx, rsi                                                       ; +0xe77, 0x18003e9a7\ncall    sub_1800B2D30                                                  ; +0xe7a, 0x18003e9aa\ntest    eax, eax                                                       ; +0xe7f, 0x18003e9af\njnz     loc_18003E2DA                                                  ; +0xe81, 0x18003e9b1\nmov     rcx, [rdi+170h]                                                ; +0xe87, 0x18003e9b7\nxor     edx, edx                                                       ; +0xe8e, 0x18003e9be\ncall    sub_1800B2CB0                                                  ; +0xe90, 0x18003e9c0\ntest    eax, eax                                                       ; +0xe95, 0x18003e9c5\njnz     loc_18003E2DA                                                  ; +0xe97, 0x18003e9c7\nmov     rcx, [rdi+170h]                                                ; +0xe9d, 0x18003e9cd\nlea     rdx, [rbp+410h+var_250]                                        ; +0xea4, 0x18003e9d4\nxor     eax, eax                                                       ; +0xeab, 0x18003e9db\nmov     [rsp+510h+var_4F0], rax                                        ; +0xead, 0x18003e9dd\nlea     r9d, [rax+16h]                                                 ; +0xeb2, 0x18003e9e2\nlea     r8d, [rax+1]                                                   ; +0xeb6, 0x18003e9e6\ncall    sub_1800B3470                                                  ; +0xeba, 0x18003e9ea\ntest    eax, eax                                                       ; +0xebf, 0x18003e9ef\njnz     loc_18003E2DA                                                  ; +0xec1, 0x18003e9f1\nmov     r9d, dword ptr [rsp+510h+Size+4]                               ; +0xec7, 0x18003e9f7\nlea     r8, aSampleNameD; \"Sample name %d\"                             ; +0xecc, 0x18003e9fc\nmov     edx, 100h                                                      ; +0xed3, 0x18003ea03\nlea     rcx, [rbp+410h+var_130]                                        ; +0xed8, 0x18003ea08\ncall    sub_1800B7CA0                                                  ; +0xedf, 0x18003ea0f\nmov     byte ptr [rsp+510h+var_4E0], 0                                 ; +0xee4, 0x18003ea14\nlea     r9, [rbp+410h+var_250]                                         ; +0xee9, 0x18003ea19\nmov     dword ptr [rsp+510h+var_4E8], 3                                ; +0xef0, 0x18003ea20\nlea     r8, [rbp+410h+var_130]                                         ; +0xef8, 0x18003ea28\nmov     edx, 9                                                         ; +0xeff, 0x18003ea2f\nmov     dword ptr [rsp+510h+var_4F0], 16h                              ; +0xf04, 0x18003ea34\nmov     rcx, rdi                                                       ; +0xf0c, 0x18003ea3c\ncall    sub_180012590                                                  ; +0xf0f, 0x18003ea3f\ntest    eax, eax                                                       ; +0xf14, 0x18003ea44\njnz     loc_18003E2DA                                                  ; +0xf16, 0x18003ea46\nmov     r14d, [rsp+510h+var_4AC]                                       ; +0xf1c, 0x18003ea4c\ntest    r14d, r14d                                                     ; +0xf21, 0x18003ea51\njz      loc_18003EAE5                                                  ; +0xf24, 0x18003ea54\nxor     eax, eax                                                       ; +0xf2a, 0x18003ea5a\nlea     rcx, [rbp+410h+var_3F8]; void *                                ; +0xf2c, 0x18003ea5c\nxor     edx, edx; Val                                                  ; +0xf30, 0x18003ea60\nmov     [rbp+410h+var_408], eax                                        ; +0xf32, 0x18003ea62\nmov     r8d, 0C8h; Size                                                ; +0xf35, 0x18003ea65\ncall    memset                                                         ; +0xf3b, 0x18003ea6b\nmov     eax, [rsi+r13+54h]                                             ; +0xf40, 0x18003ea70\nlea     r9, [rbp+410h+var_410]                                         ; +0xf45, 0x18003ea75\nmov     rcx, [rdi+20h]                                                 ; +0xf49, 0x18003ea79\nmov     r8d, ebx                                                       ; +0xf4d, 0x18003ea7d\nor      r8d, 2400h                                                     ; +0xf50, 0x18003ea80\nmov     [rbp+410h+var_410], 0E0h                                       ; +0xf57, 0x18003ea87\nxor     edx, edx                                                       ; +0xf5e, 0x18003ea8e\nmov     [rbp+410h+var_40C], r14d                                       ; +0xf60, 0x18003ea90\nmov     [rbp+410h+var_404], 1                                          ; +0xf64, 0x18003ea94\nmov     [rbp+410h+var_400], 0AC44h                                     ; +0xf6b, 0x18003ea9b\nmov     [rbp+410h+var_3FC], eax                                        ; +0xf72, 0x18003eaa2\nmov     [rsp+510h+var_4F0], r12                                        ; +0xf75, 0x18003eaa5\ncall    sub_1800E31C0                                                  ; +0xf7a, 0x18003eaaa\ntest    eax, eax                                                       ; +0xf7f, 0x18003eaaf\njnz     loc_18003E2DA                                                  ; +0xf81, 0x18003eab1\ntest    bl, 6                                                          ; +0xf87, 0x18003eab7\njz      short loc_18003EAE5                                            ; +0xf8a, 0x18003eaba\nmov     rcx, [r12]                                                     ; +0xf8c, 0x18003eabc\nlea     r8d, [rax+2]                                                   ; +0xf90, 0x18003eac0\nmov     r9d, [r15+34h]                                                 ; +0xf94, 0x18003eac4\nmov     edx, [rsi+r13+30h]                                             ; +0xf98, 0x18003eac8\ndec     r9d                                                            ; +0xf9d, 0x18003eacd\nadd     r9d, edx                                                       ; +0xfa0, 0x18003ead0\nmov     dword ptr [rsp+510h+var_4F0], 2                                ; +0xfa3, 0x18003ead3\nmov     r10, [rcx]                                                     ; +0xfab, 0x18003eadb\ncall    qword ptr [r10+138h]                                           ; +0xfae, 0x18003eade\nmov     r8d, [rsp+510h+var_4A8]                                        ; +0xfb5, 0x18003eae5\nmov     r15d, 0                                                        ; +0xfba, 0x18003eaea\nmovzx   eax, [rsp+510h+var_4CC]                                        ; +0xfc0, 0x18003eaf0\ninc     r8d                                                            ; +0xfc5, 0x18003eaf5\nmov     [rsp+510h+var_4A8], r8d                                        ; +0xfc8, 0x18003eaf8\ncmp     r8d, eax                                                       ; +0xfcd, 0x18003eafd\njb      loc_18003E7F0                                                  ; +0xfd0, 0x18003eb00\ncmp     r8d, 10h                                                       ; +0xfd6, 0x18003eb06\njnb     short loc_18003EB2F                                            ; +0xfda, 0x18003eb0a\nmov     eax, r8d                                                       ; +0xfdc, 0x18003eb0c\nlea     rdx, [r13+20h]                                                 ; +0xfdf, 0x18003eb0f\nimul    rcx, rax, 38h ; '8'                                            ; +0xfe3, 0x18003eb13\nadd     rdx, rcx                                                       ; +0xfe7, 0x18003eb17\nmov     ecx, 10h                                                       ; +0xfea, 0x18003eb1a\nsub     ecx, r8d                                                       ; +0xfef, 0x18003eb1f\nmov     [rdx], r15                                                     ; +0xff2, 0x18003eb22\nlea     rdx, [rdx+38h]                                                 ; +0xff5, 0x18003eb25\nsub     rcx, 1                                                         ; +0xff9, 0x18003eb29\njnz     short loc_18003EB22                                            ; +0xffd, 0x18003eb2d\nmov     r12d, r15d                                                     ; +0xfff, 0x18003eb2f\ncmp     r15w, [rsp+510h+var_4CC]                                       ; +0x1002, 0x18003eb32\njnb     loc_18003EDF0                                                  ; +0x1008, 0x18003eb38\nxchg    ax, ax                                                         ; +0x100e, 0x18003eb3e\nmov     eax, r12d                                                      ; +0x1010, 0x18003eb40\nimul    r15, rax, 38h ; '8'                                            ; +0x1013, 0x18003eb43\nadd     r15, 20h ; ' '                                                 ; +0x1017, 0x18003eb47\nadd     r15, r13                                                       ; +0x101b, 0x18003eb4b\nmov     rcx, [r15]                                                     ; +0x101e, 0x18003eb4e\ntest    rcx, rcx                                                       ; +0x1021, 0x18003eb51\njz      loc_18003EDAA                                                  ; +0x1024, 0x18003eb54\nmov     rax, [rcx]                                                     ; +0x102a, 0x18003eb5a\nlea     r9, [rbp+410h+var_468]                                         ; +0x102d, 0x18003eb5d\nmov     ebx, [r15+20h]                                                 ; +0x1031, 0x18003eb61\nxor     esi, esi                                                       ; +0x1035, 0x18003eb65\nxor     r8d, r8d                                                       ; +0x1037, 0x18003eb67\nmov     [rsp+510h+var_4F0], rsi                                        ; +0x103a, 0x18003eb6a\nxor     edx, edx                                                       ; +0x103f, 0x18003eb6f\ncall    qword ptr [rax+0A0h]                                           ; +0x1041, 0x18003eb71\ntest    ebx, ebx                                                       ; +0x1047, 0x18003eb77\njz      loc_18003EDAA                                                  ; +0x1049, 0x18003eb79\nmov     rcx, cs:off_1801AED20                                          ; +0x104f, 0x18003eb7f\nlea     r8d, [rbx+48h]                                                 ; +0x1056, 0x18003eb86\nmov     rdx, [rsp+510h+var_4A0]                                        ; +0x105a, 0x18003eb8a\nlea     r9, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x105f, 0x18003eb8f\nmov     dword ptr [rsp+510h+var_4E8], esi                              ; +0x1066, 0x18003eb96\nmov     dword ptr [rsp+510h+var_4F0], 0B48h                            ; +0x106a, 0x18003eb9a\nmov     rcx, [rcx+1A0h]                                                ; +0x1072, 0x18003eba2\ncall    sub_1800B6E80                                                  ; +0x1079, 0x18003eba9\nmov     [rsp+510h+var_4A0], rax                                        ; +0x107e, 0x18003ebae\nmov     r14, rax                                                       ; +0x1083, 0x18003ebb3\ntest    rax, rax                                                       ; +0x1086, 0x18003ebb6\njz      loc_18003E2D5                                                  ; +0x1089, 0x18003ebb9\nmov     rcx, [rdi+170h]                                                ; +0x108f, 0x18003ebbf\nlea     r8d, [rsi+1]                                                   ; +0x1096, 0x18003ebc6\nmov     r9d, ebx                                                       ; +0x109a, 0x18003ebca\nmov     [rsp+510h+var_4F0], rsi                                        ; +0x109d, 0x18003ebcd\nmov     rdx, rax                                                       ; +0x10a2, 0x18003ebd2\ncall    sub_1800B3470                                                  ; +0x10a5, 0x18003ebd5\ntest    eax, 0FFFFFFEFh                                                ; +0x10aa, 0x18003ebda\njnz     loc_18003E2DA                                                  ; +0x10af, 0x18003ebdf\nlea     r8d, [rsi+4]                                                   ; +0x10b5, 0x18003ebe5\nlea     rdx, aOggs; \"OggS\"                                             ; +0x10b9, 0x18003ebe9\nlea     rcx, [r14+4]                                                   ; +0x10c0, 0x18003ebf0\ncall    sub_1800B7FB0                                                  ; +0x10c4, 0x18003ebf4\ntest    eax, eax                                                       ; +0x10c9, 0x18003ebf9\njnz     loc_18003ECC8                                                  ; +0x10cb, 0x18003ebfb\nxor     eax, eax                                                       ; +0x10d1, 0x18003ec01\nlea     rcx, [rbp+410h+var_318]; void *                                ; +0x10d3, 0x18003ec03\nxor     edx, edx; Val                                                  ; +0x10da, 0x18003ec0a\nmov     [rbp+410h+var_328], eax                                        ; +0x10dc, 0x18003ec0c\nmov     r8d, 0C8h; Size                                                ; +0x10e2, 0x18003ec12\ncall    memset                                                         ; +0x10e8, 0x18003ec18\nmov     rcx, [r15]                                                     ; +0x10ed, 0x18003ec1d\nmov     dl, 1                                                          ; +0x10f0, 0x18003ec20\nmov     [rbp+410h+var_330], 0E0h                                       ; +0x10f2, 0x18003ec22\nmov     [rbp+410h+var_32C], ebx                                        ; +0x10fc, 0x18003ec2c\nmov     eax, [rcx+68h]                                                 ; +0x1102, 0x18003ec32\nmov     [rbp+410h+var_324], eax                                        ; +0x1105, 0x18003ec35\ncvttss2si eax, dword ptr [rcx+6Ch]                                     ; +0x110b, 0x18003ec3b\nmov     [rbp+410h+var_320], eax                                        ; +0x1110, 0x18003ec40\nmov     eax, [rcx+28h]                                                 ; +0x1116, 0x18003ec46\nmov     [rbp+410h+var_31C], eax                                        ; +0x1119, 0x18003ec49\nmov     rax, [rcx]                                                     ; +0x111f, 0x18003ec4f\nmov     ebx, [rcx+2Ch]                                                 ; +0x1122, 0x18003ec52\ncall    qword ptr [rax+18h]                                            ; +0x1125, 0x18003ec55\nxor     eax, eax                                                       ; +0x1128, 0x18003ec58\nmov     [rsp+510h+var_4F0], r15                                        ; +0x112a, 0x18003ec5a\nmov     [r15], rax                                                     ; +0x112f, 0x18003ec5f\nlea     r9, [rbp+410h+var_330]                                         ; +0x1132, 0x18003ec62\nmov     rcx, [rdi+20h]                                                 ; +0x1139, 0x18003ec69\nlea     rdx, [r14+4]                                                   ; +0x113d, 0x18003ec6d\nand     ebx, 0FFFFDBFFh                                                ; +0x1141, 0x18003ec71\nbts     ebx, 0Bh                                                       ; +0x1147, 0x18003ec77\nmov     r8d, ebx                                                       ; +0x114b, 0x18003ec7b\ncall    sub_1800E31C0                                                  ; +0x114e, 0x18003ec7e\ntest    eax, eax                                                       ; +0x1153, 0x18003ec83\njnz     loc_18003EDAF                                                  ; +0x1155, 0x18003ec85\ntest    bl, 6                                                          ; +0x115b, 0x18003ec8b\njz      loc_18003EDAF                                                  ; +0x115e, 0x18003ec8e\nmov     rcx, [r15]                                                     ; +0x1164, 0x18003ec94\nlea     r8d, [rsi+2]                                                   ; +0x1167, 0x18003ec97\nmov     r9d, [r15+14h]                                                 ; +0x116b, 0x18003ec9b\nmov     edx, [r15+10h]                                                 ; +0x116f, 0x18003ec9f\ndec     r9d                                                            ; +0x1173, 0x18003eca3\nadd     r9d, edx                                                       ; +0x1176, 0x18003eca6\nmov     dword ptr [rsp+510h+var_4F0], 2                                ; +0x1179, 0x18003eca9\nmov     r10, [rcx]                                                     ; +0x1181, 0x18003ecb1\ncall    qword ptr [r10+138h]                                           ; +0x1184, 0x18003ecb4\ntest    eax, eax                                                       ; +0x118b, 0x18003ecbb\njnz     loc_18003E2DA                                                  ; +0x118d, 0x18003ecbd\njmp     loc_18003EDAF                                                  ; +0x1193, 0x18003ecc3\nmov     eax, [r15+34h]                                                 ; +0x1198, 0x18003ecc8\nxor     r9d, r9d                                                       ; +0x119c, 0x18003eccc\nmov     ecx, r9d                                                       ; +0x119f, 0x18003eccf\ncmp     eax, 1                                                         ; +0x11a2, 0x18003ecd2\njnz     short loc_18003ECF7                                            ; +0x11a5, 0x18003ecd5\nmov     rdx, r14                                                       ; +0x11a7, 0x18003ecd7\ntest    ebx, ebx                                                       ; +0x11aa, 0x18003ecda\njz      short loc_18003ED25                                            ; +0x11ac, 0x18003ecdc\nmov     r8, rbx                                                        ; +0x11ae, 0x18003ecde\nmovzx   eax, byte ptr [rdx]                                            ; +0x11b1, 0x18003ece1\nlea     rdx, [rdx+1]                                                   ; +0x11b4, 0x18003ece4\nadd     eax, ecx                                                       ; +0x11b8, 0x18003ece8\nmov     [rdx-1], al                                                    ; +0x11ba, 0x18003ecea\nmov     ecx, eax                                                       ; +0x11bd, 0x18003eced\nsub     r8, 1                                                          ; +0x11bf, 0x18003ecef\njnz     short loc_18003ECE1                                            ; +0x11c3, 0x18003ecf3\njmp     short loc_18003ED25                                            ; +0x11c5, 0x18003ecf5\ncmp     eax, 2                                                         ; +0x11c7, 0x18003ecf7\njnz     short loc_18003ED25                                            ; +0x11ca, 0x18003ecfa\nshr     ebx, 1                                                         ; +0x11cc, 0x18003ecfc\nmov     rdx, r14                                                       ; +0x11ce, 0x18003ecfe\njz      short loc_18003ED25                                            ; +0x11d1, 0x18003ed01\nmov     r8d, ebx                                                       ; +0x11d3, 0x18003ed03\nnop     word ptr [rax+rax+00000000h]                                   ; +0x11d6, 0x18003ed06\nmovzx   eax, word ptr [rdx]                                            ; +0x11e0, 0x18003ed10\nlea     rdx, [rdx+2]                                                   ; +0x11e3, 0x18003ed13\nadd     eax, ecx                                                       ; +0x11e7, 0x18003ed17\nmov     [rdx-2], ax                                                    ; +0x11e9, 0x18003ed19\nmov     ecx, eax                                                       ; +0x11ed, 0x18003ed1d\nsub     r8, 1                                                          ; +0x11ef, 0x18003ed1f\njnz     short loc_18003ED10                                            ; +0x11f3, 0x18003ed23\nmov     rax, [r15]                                                     ; +0x11f5, 0x18003ed25\nmov     ebx, [rax+48h]                                                 ; +0x11f8, 0x18003ed28\nnop     dword ptr [rax+rax+00h]                                        ; +0x11fb, 0x18003ed2b\nmov     rcx, [r15]                                                     ; +0x1200, 0x18003ed30\nlea     rdx, [rbp+410h+var_490]                                        ; +0x1203, 0x18003ed33\nmov     [rsp+510h+var_4E0], rdx                                        ; +0x1207, 0x18003ed37\nlea     r9, [rbp+410h+var_480]                                         ; +0x120c, 0x18003ed3c\nlea     rdx, [rsp+510h+Size]                                           ; +0x1210, 0x18003ed40\nmov     r8d, ebx                                                       ; +0x1215, 0x18003ed45\nmov     [rsp+510h+var_4E8], rdx                                        ; +0x1218, 0x18003ed48\nlea     rdx, [rbp+410h+var_460]                                        ; +0x121d, 0x18003ed4d\nmov     rax, [rcx]                                                     ; +0x1221, 0x18003ed51\nmov     [rsp+510h+var_4F0], rdx                                        ; +0x1224, 0x18003ed54\nmov     edx, esi                                                       ; +0x1229, 0x18003ed59\ncall    qword ptr [rax+28h]                                            ; +0x122b, 0x18003ed5b\ntest    eax, eax                                                       ; +0x122e, 0x18003ed5e\njnz     loc_18003E2DA                                                  ; +0x1230, 0x18003ed60\nmov     r8d, dword ptr [rsp+510h+Size]; Size                           ; +0x1236, 0x18003ed66\nmov     rdx, r14; Src                                                  ; +0x123b, 0x18003ed6b\nmov     rcx, [rbp+410h+var_480]; void *                                ; +0x123e, 0x18003ed6e\ncall    memmove                                                        ; +0x1242, 0x18003ed72\nmov     rcx, [r15]                                                     ; +0x1247, 0x18003ed77\nmov     eax, [rbp+410h+var_490]                                        ; +0x124a, 0x18003ed7a\nmov     r9d, dword ptr [rsp+510h+Size]                                 ; +0x124d, 0x18003ed7d\nmov     r8, [rbp+410h+var_460]                                         ; +0x1252, 0x18003ed82\nmov     r10, [rcx]                                                     ; +0x1256, 0x18003ed86\nmov     rdx, [rbp+410h+var_480]                                        ; +0x1259, 0x18003ed89\nmov     dword ptr [rsp+510h+var_4F0], eax                              ; +0x125d, 0x18003ed8d\ncall    qword ptr [r10+30h]                                            ; +0x1261, 0x18003ed91\ntest    eax, eax                                                       ; +0x1265, 0x18003ed95\njnz     loc_18003E2DA                                                  ; +0x1267, 0x18003ed97\nmov     eax, dword ptr [rsp+510h+Size]                                 ; +0x126d, 0x18003ed9d\nadd     esi, eax                                                       ; +0x1271, 0x18003eda1\nadd     r14, rax                                                       ; +0x1273, 0x18003eda3\nsub     ebx, eax                                                       ; +0x1276, 0x18003eda6\njnz     short loc_18003ED30                                            ; +0x1278, 0x18003eda8\nmov     r14, [rsp+510h+var_4A0]                                        ; +0x127a, 0x18003edaa\nmovzx   eax, [rsp+510h+var_4CC]                                        ; +0x127f, 0x18003edaf\ninc     r12d                                                           ; +0x1284, 0x18003edb4\ncmp     r12d, eax                                                      ; +0x1287, 0x18003edb7\njb      loc_18003EB40                                                  ; +0x128a, 0x18003edba\ntest    r14, r14                                                       ; +0x1290, 0x18003edc0\njz      short loc_18003EDED                                            ; +0x1293, 0x18003edc3\nmov     rcx, cs:off_1801AED20                                          ; +0x1295, 0x18003edc5\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x129c, 0x18003edcc\nmov     r9d, 0BC1h                                                     ; +0x12a3, 0x18003edd3\nmov     byte ptr [rsp+510h+var_4F0], 1                                 ; +0x12a9, 0x18003edd9\nmov     rdx, r14                                                       ; +0x12ae, 0x18003edde\nmov     rcx, [rcx+1A0h]                                                ; +0x12b1, 0x18003ede1\ncall    sub_1800B6AA0                                                  ; +0x12b8, 0x18003ede8\nxor     r15d, r15d                                                     ; +0x12bd, 0x18003eded\nmov     eax, dword ptr [rsp+510h+Size+4]                               ; +0x12c0, 0x18003edf0\nlea     r13, [rdi+8F8h]                                                ; +0x12c4, 0x18003edf4\nmov     rcx, [rbp+410h+var_478]                                        ; +0x12cb, 0x18003edfb\ninc     eax                                                            ; +0x12cf, 0x18003edff\nadd     rcx, 618h                                                      ; +0x12d1, 0x18003ee01\nmov     dword ptr [rsp+510h+Size+4], eax                               ; +0x12d8, 0x18003ee08\nmov     [rbp+410h+var_478], rcx                                        ; +0x12dc, 0x18003ee0c\ncmp     eax, [r13+0]                                                   ; +0x12e0, 0x18003ee10\njl      loc_18003E490                                                  ; +0x12e4, 0x18003ee14\njmp     loc_18003EEB0                                                  ; +0x12ea, 0x18003ee1a\nmov     [r13+20h], r15                                                 ; +0x12ef, 0x18003ee1f\nxor     r8d, r8d                                                       ; +0x12f3, 0x18003ee23\nmov     [r13+58h], r15                                                 ; +0x12f6, 0x18003ee26\nmov     [r13+90h], r15                                                 ; +0x12fa, 0x18003ee2a\nmov     [r13+0C8h], r15                                                ; +0x1301, 0x18003ee31\nmov     [r13+100h], r15                                                ; +0x1308, 0x18003ee38\nmov     [r13+138h], r15                                                ; +0x130f, 0x18003ee3f\nmov     [r13+170h], r15                                                ; +0x1316, 0x18003ee46\nmov     [r13+1A8h], r15                                                ; +0x131d, 0x18003ee4d\nmov     [r13+1E0h], r15                                                ; +0x1324, 0x18003ee54\nmov     [r13+218h], r15                                                ; +0x132b, 0x18003ee5b\nmov     [r13+250h], r15                                                ; +0x1332, 0x18003ee62\nmov     [r13+288h], r15                                                ; +0x1339, 0x18003ee69\nmov     [r13+2C0h], r15                                                ; +0x1340, 0x18003ee70\nmov     [r13+2F8h], r15                                                ; +0x1347, 0x18003ee77\nmov     [r13+330h], r15                                                ; +0x134e, 0x18003ee7e\nmov     [r13+368h], r15                                                ; +0x1355, 0x18003ee85\nmov     edx, [rsp+510h+var_4C0]                                        ; +0x135c, 0x18003ee8c\nmov     rcx, [rdi+170h]                                                ; +0x1360, 0x18003ee90\ncall    sub_1800B3990                                                  ; +0x1367, 0x18003ee97\ntest    eax, eax                                                       ; +0x136c, 0x18003ee9c\njnz     loc_18003E2DA                                                  ; +0x136e, 0x18003ee9e\njmp     loc_18003EDF0                                                  ; +0x1374, 0x18003eea4\nlea     r13, [rdi+8F8h]                                                ; +0x1379, 0x18003eea9\nmov     edx, [rdi+8FCh]                                                ; +0x1380, 0x18003eeb0\nmov     [rdi+848h], r15                                                ; +0x1386, 0x18003eeb6\ntest    edx, edx                                                       ; +0x138d, 0x18003eebd\njz      short loc_18003EEFD                                            ; +0x138f, 0x18003eebf\nmov     rcx, cs:off_1801AED20                                          ; +0x1391, 0x18003eec1\nlea     edx, ds:0[rdx*8]                                               ; +0x1398, 0x18003eec8\nmov     r9d, 0BDCh                                                     ; +0x139f, 0x18003eecf\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x13a5, 0x18003eed5\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x13aa, 0x18003eeda\nmov     rcx, [rcx+1A0h]                                                ; +0x13b1, 0x18003eee1\ncall    sub_1800B6880                                                  ; +0x13b8, 0x18003eee8\nmov     [rdi+848h], rax                                                ; +0x13bd, 0x18003eeed\ntest    rax, rax                                                       ; +0x13c4, 0x18003eef4\njz      loc_18003E2D5                                                  ; +0x13c7, 0x18003eef7\ncmp     dword ptr [r13+0], 0                                           ; +0x13cd, 0x18003eefd\nmov     r11d, r15d                                                     ; +0x13d2, 0x18003ef02\njle     short loc_18003EF5B                                            ; +0x13d5, 0x18003ef05\nmov     r9, r15                                                        ; +0x13d7, 0x18003ef07\nmov     rbx, r15                                                       ; +0x13da, 0x18003ef0a\nnop     dword ptr [rax]                                                ; +0x13dd, 0x18003ef0d\nmov     r10, [rdi+900h]                                                ; +0x13e0, 0x18003ef10\nmov     r8d, r15d                                                      ; +0x13e7, 0x18003ef17\ncmp     dword ptr [r10+rbx+1Ch], 0                                     ; +0x13ea, 0x18003ef1a\njle     short loc_18003EF4B                                            ; +0x13f0, 0x18003ef20\nmovsxd  rax, r8d                                                       ; +0x13f2, 0x18003ef22\nlea     rdx, [r10+20h]                                                 ; +0x13f5, 0x18003ef25\nimul    rcx, rax, 38h ; '8'                                            ; +0x13f9, 0x18003ef29\nmov     rax, [rdi+848h]                                                ; +0x13fd, 0x18003ef2d\nadd     rdx, rbx                                                       ; +0x1404, 0x18003ef34\nadd     rdx, rcx                                                       ; +0x1407, 0x18003ef37\ninc     r8d                                                            ; +0x140a, 0x18003ef3a\nmov     [rax+r9*8], rdx                                                ; +0x140d, 0x18003ef3d\ninc     r9                                                             ; +0x1411, 0x18003ef41\ncmp     r8d, [r10+rbx+1Ch]                                             ; +0x1414, 0x18003ef44\njl      short loc_18003EF22                                            ; +0x1419, 0x18003ef49\ninc     r11d                                                           ; +0x141b, 0x18003ef4b\nadd     rbx, 618h                                                      ; +0x141e, 0x18003ef4e\ncmp     r11d, [r13+0]                                                  ; +0x1425, 0x18003ef55\njl      short loc_18003EF10                                            ; +0x1429, 0x18003ef59\nlea     rcx, [rdi+390h]                                                ; +0x142b, 0x18003ef5b\nxor     eax, eax                                                       ; +0x1432, 0x18003ef62\nxorps   xmm0, xmm0                                                     ; +0x1434, 0x18003ef64\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x1437, 0x18003ef67\nmovups  xmmword ptr [rcx+10h], xmm0                                    ; +0x143a, 0x18003ef6a\nmovups  xmmword ptr [rcx+20h], xmm0                                    ; +0x143e, 0x18003ef6e\nmov     [rcx+30h], rax                                                 ; +0x1442, 0x18003ef72\nmov     eax, [rbp+410h+var_48C]                                        ; +0x1446, 0x18003ef76\nmov     [rdi+8], rcx                                                   ; +0x1449, 0x18003ef79\nmov     [rcx+14h], eax                                                 ; +0x144d, 0x18003ef7d\nmov     rax, [rbp+410h+var_458]                                        ; +0x1450, 0x18003ef80\ntest    rax, rax                                                       ; +0x1454, 0x18003ef84\njz      short loc_18003EF99                                            ; +0x1457, 0x18003ef87\nmov     ecx, [rax+14h]                                                 ; +0x1459, 0x18003ef89\ntest    ecx, ecx                                                       ; +0x145c, 0x18003ef8c\njz      short loc_18003EF99                                            ; +0x145e, 0x18003ef8e\nmov     rax, [rdi+8]                                                   ; +0x1460, 0x18003ef90\nmov     [rax+8], ecx                                                   ; +0x1464, 0x18003ef94\njmp     short loc_18003EFA4                                            ; +0x1467, 0x18003ef97\nmov     rax, [rdi+8]                                                   ; +0x1469, 0x18003ef99\nmov     dword ptr [rax+8], 5                                           ; +0x146d, 0x18003ef9d\nmov     rax, [rdi+8]                                                   ; +0x1474, 0x18003efa4\nlea     rcx, [rdi+178h]                                                ; +0x1478, 0x18003efa8\nmov     dword ptr [rax+0Ch], 2                                         ; +0x147f, 0x18003efaf\nmov     rax, [rdi+8]                                                   ; +0x1486, 0x18003efb6\nmov     [rax], rcx                                                     ; +0x148a, 0x18003efba\nmov     rdx, [rdi+8]                                                   ; +0x148d, 0x18003efbd\nadd     rdx, 10h                                                       ; +0x1491, 0x18003efc1\njz      short loc_18003EFD3                                            ; +0x1495, 0x18003efc5\nmov     rax, [rdi+20h]                                                 ; +0x1497, 0x18003efc7\nmov     ecx, [rax+6D0h]                                                ; +0x149b, 0x18003efcb\nmov     [rdx], ecx                                                     ; +0x14a1, 0x18003efd1\nmov     rcx, [rdi+20h]                                                 ; +0x14a3, 0x18003efd3\nlea     rax, aFmodXmTargetUn; \"FMOD XM Target Unit\"                    ; +0x14a7, 0x18003efd7\nxorps   xmm1, xmm1                                                     ; +0x14ae, 0x18003efde\nmov     [rbp+410h+var_448], rax                                        ; +0x14b1, 0x18003efe1\nlea     r9, [rdi+280h]                                                 ; +0x14b5, 0x18003efe5\nmovdqa  [rbp+410h+var_430], xmm1                                       ; +0x14bc, 0x18003efec\nxor     r8d, r8d                                                       ; +0x14c1, 0x18003eff1\nmov     [rdi+110h], r15d                                               ; +0x14c4, 0x18003eff4\nlea     rdx, [rbp+410h+var_450]                                        ; +0x14cb, 0x18003effb\nmov     [rbp+410h+var_450], r15                                        ; +0x14cf, 0x18003efff\nmovdqa  [rbp+410h+var_440], xmm0                                       ; +0x14d3, 0x18003f003\nmovdqa  [rbp+410h+var_420], xmm0                                       ; +0x14d8, 0x18003f008\nmov     byte ptr [rsp+510h+var_4F0], 1                                 ; +0x14dd, 0x18003f00d\ncall    sub_1800FC620                                                  ; +0x14e2, 0x18003f012\ntest    eax, eax                                                       ; +0x14e7, 0x18003f017\njnz     loc_18003E2DA                                                  ; +0x14e9, 0x18003f019\nmov     rax, [rdi+280h]                                                ; +0x14ef, 0x18003f01f\nlock or dword ptr [rax+64h], 100h                                      ; +0x14f6, 0x18003f026\nmov     rax, [rdi+8]                                                   ; +0x14fe, 0x18003f02e\nxor     r9d, r9d                                                       ; +0x1502, 0x18003f032\nmov     rcx, [rdi+280h]                                                ; +0x1505, 0x18003f035\nxor     edx, edx                                                       ; +0x150c, 0x18003f03c\nmov     r8d, [rax+0Ch]                                                 ; +0x150e, 0x18003f03e\ncall    sub_18009B830                                                  ; +0x1512, 0x18003f042\nmov     rcx, [rdi+280h]                                                ; +0x1517, 0x18003f047\nxor     r8d, r8d                                                       ; +0x151e, 0x18003f04e\nmov     dl, 1                                                          ; +0x1521, 0x18003f051\ncall    sub_18009B790                                                  ; +0x1523, 0x18003f053\nmov     edx, [rdi+3C8h]                                                ; +0x1528, 0x18003f058\nmov     rcx, rdi                                                       ; +0x152e, 0x18003f05e\ncall    sub_1800D52B0                                                  ; +0x1531, 0x18003f061\ntest    eax, eax                                                       ; +0x1536, 0x18003f066\njnz     loc_18003E2DA                                                  ; +0x1538, 0x18003f068\ntest    [rbp+410h+var_488], 4100h                                      ; +0x153e, 0x18003f06e\njnz     short loc_18003F08B                                            ; +0x1545, 0x18003f075\nmov     rax, [rdi+8]                                                   ; +0x1547, 0x18003f077\nmov     [rdi+288h], r15                                                ; +0x154b, 0x18003f07b\nmov     dword ptr [rax+18h], 0FFFFFFFFh                                ; +0x1552, 0x18003f082\njmp     short loc_18003F0D1                                            ; +0x1559, 0x18003f089\nmov     rcx, cs:off_1801AED20                                          ; +0x155b, 0x18003f08b\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x1562, 0x18003f092\nmov     edx, [rdi+8ECh]                                                ; +0x1569, 0x18003f099\nmov     r9d, 0C29h                                                     ; +0x156f, 0x18003f09f\nshl     edx, 8                                                         ; +0x1575, 0x18003f0a5\nmov     dword ptr [rsp+510h+var_4F0], r15d                             ; +0x1578, 0x18003f0a8\nmov     rcx, [rcx+1A0h]                                                ; +0x157d, 0x18003f0ad\ncall    sub_1800B6880                                                  ; +0x1584, 0x18003f0b4\nmov     [rdi+288h], rax                                                ; +0x1589, 0x18003f0b9\ntest    rax, rax                                                       ; +0x1590, 0x18003f0c0\njz      loc_18003E2D5                                                  ; +0x1593, 0x18003f0c3\nmov     rcx, rdi                                                       ; +0x1599, 0x18003f0c9\ncall    sub_18003D6D0                                                  ; +0x159c, 0x18003f0cc\nmov     dl, 1                                                          ; +0x15a1, 0x18003f0d1\nmov     [rdi+18h], r15d                                                ; +0x15a3, 0x18003f0d3\nmov     rcx, rdi                                                       ; +0x15a7, 0x18003f0d7\ncall    sub_1800D5500                                                  ; +0x15aa, 0x18003f0da\ntest    byte ptr [rdi+160h], 80h                                       ; +0x15af, 0x18003f0df\njz      short loc_18003F136                                            ; +0x15b6, 0x18003f0e6\nmov     rcx, [rdi+170h]                                                ; +0x15b8, 0x18003f0e8\ncall    sub_1800B25E0                                                  ; +0x15bf, 0x18003f0ef\ntest    eax, eax                                                       ; +0x15c4, 0x18003f0f4\njnz     loc_18003E2DA                                                  ; +0x15c6, 0x18003f0f6\nmov     rcx, cs:off_1801AED20                                          ; +0x15cc, 0x18003f0fc\nlea     r8, aCBuildagent1Wo_14; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x15d3, 0x18003f103\nmov     rdx, [rdi+170h]                                                ; +0x15da, 0x18003f10a\nmov     r9d, 0C42h                                                     ; +0x15e1, 0x18003f111\nmov     byte ptr [rsp+510h+var_4F0], 1                                 ; +0x15e7, 0x18003f117\nmov     rcx, [rcx+1A0h]                                                ; +0x15ec, 0x18003f11c\ncall    sub_1800B6AA0                                                  ; +0x15f3, 0x18003f123\nor      dword ptr [rdi+2Ch], 400h                                      ; +0x15f8, 0x18003f128\nmov     [rdi+170h], r15                                                ; +0x15ff, 0x18003f12f\nxor     eax, eax                                                       ; +0x1606, 0x18003f136\njmp     loc_18003E2DA                                                  ; +0x1608, 0x18003f138\nmov     eax, 13h                                                       ; +0x160d, 0x18003f13d\njmp     loc_18003E2E2                                                  ; +0x1612, 0x18003f142", "xrefs": ["sub_18003DB20 @ 0x18003db20", "<???> @ 0x180180ae0", "<???> @ 0x180180af0", "<???> @ 0x180180b04", "<???> @ 0x180180b14", "<???> @ 0x1801f7e9c"], "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"}