{"type": "func", "start": 6443383312, "end": 6443383987, "name": "sub_1800E3A10", "pseudocode": "// \n// sub_1800E3A10 from 0x1800e3a10 to 0x1800e3cb3 (675 bytes)\n// \n// 5 xrefs:\n// > FMOD::System::detachChannelGroupFromPort @ 0x1800ac750\n// > sub_1800CB510 @ 0x1800cb60d\n// > <???> @ 0x18018d8c0\n// > <???> @ 0x18018d8d4\n// > <???> @ 0x1801ffb34\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:16 +0000\n// \n\n__int64 __fastcall sub_1800E3A10(__int64 a1, __int64 *a2)\n{\n  char v4; // r15\n  _DWORD *i; // rbx\n  __int64 v6; // rax\n  unsigned int v7; // esi\n  int v8; // eax\n  __int64 v9; // rcx\n  unsigned int v10; // edi\n  __int64 v11; // r9\n  float *v14; // [rsp+30h] [rbp-58h] BYREF\n  int v15; // [rsp+90h] [rbp+8h] BYREF\n  __int64 v16; // [rsp+98h] [rbp+10h] BYREF\n  __int64 v17; // [rsp+A0h] [rbp+18h] BYREF\n  __int64 v18; // [rsp+A8h] [rbp+20h] BYREF\n\n  v4 = 0;\n  if ( a1 )\n  {\n    sub_1801021C0(a1, 22);\n    v4 = 1;\n  }\n  if ( !a2 || *((_WORD *)a2 + 254) == 0xFFFF )\n  {\n    v8 = 31;\n    goto LABEL_24;\n  }\n  for ( i = *(_DWORD **)(a1 + 1728); i != (_DWORD *)(a1 + 1728); i = *(_DWORD **)i )\n  {\n    if ( i[13] == *((__int16 *)a2 + 254) )\n      break;\n  }\n  v6 = *a2;\n  v7 = 0;\n  v16 = 0;\n  v8 = (*(__int64 (__fastcall **)(__int64 *, __int64, __int64 *))(v6 + 288))(a2, 0xFFFFFFFFLL, &v16);\n  if ( v8 )\n    goto LABEL_24;\n  v8 = sub_180096490(*((_QWORD *)i + 2), v16, 0, 4);\n  if ( v8 )\n    goto LABEL_24;\n  if ( !*((_BYTE *)a2 + 510) )\n  {\n    v9 = a2[4];\n    v17 = 0;\n    v8 = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)v9 + 288LL))(v9, 4294967293LL, &v17);\n    if ( v8 )\n      goto LABEL_24;\n    v15 = 0;\n    v8 = sub_180097620(v16, &v15, 0, 1);\n    if ( v8 )\n      goto LABEL_24;\n    v10 = 0;\n    if ( v15 > 0 )\n    {\n      do\n      {\n        v18 = 0;\n        v14 = nullptr;\n        v8 = sub_180097A00(v16, v10, &v18, &v14, 0, 1);\n        if ( v8 )\n          goto LABEL_24;\n        if ( v18 == v17 )\n        {\n          LOBYTE(v11) = 1;\n          v8 = sub_18005A4F0(v14, 1.0, 0, v11, 0);\n          if ( v8 )\n            goto LABEL_24;\n        }\n      }\n      while ( (int)++v10 < v15 );\n    }\n  }\n  if ( i[14]-- == 1 )\n  {\n    **((_QWORD **)i + 1) = *(_QWORD *)i;\n    *(_QWORD *)(*(_QWORD *)i + 8LL) = *((_QWORD *)i + 1);\n    *((_QWORD *)i + 1) = i;\n    *(_QWORD *)i = i;\n    v8 = sub_1800BB230(*(_QWORD *)(a1 + 1648), (__int64)i);\n    if ( !v8 )\n    {\n      v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)i + 2) + 16LL))(*((_QWORD *)i + 2));\n      if ( !v8 )\n      {\n        **((_QWORD **)i + 1) = *(_QWORD *)i;\n        *(_QWORD *)(*(_QWORD *)i + 8LL) = *((_QWORD *)i + 1);\n        *((_QWORD *)i + 1) = i;\n        *(_QWORD *)i = i;\n        sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), i);\n        goto LABEL_22;\n      }\n    }\nLABEL_24:\n    v7 = v8;\n    goto LABEL_25;\n  }\nLABEL_22:\n  *((_WORD *)a2 + 254) = -1;\n  *((_BYTE *)a2 + 510) = 0;\nLABEL_25:\n  if ( v4 && a1 )\n    sub_180102300(a1, 22);\n  return v7;\n}", "assembly": "; \n; sub_1800E3A10 from 0x1800e3a10 to 0x1800e3cb3 (675 bytes)\n; \n; 5 xrefs:\n; > FMOD::System::detachChannelGroupFromPort @ 0x1800ac750\n; > sub_1800CB510 @ 0x1800cb60d\n; > <???> @ 0x18018d8c0\n; > <???> @ 0x18018d8d4\n; > <???> @ 0x1801ffb34\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x1800e3a10\nsub     rsp, 80h                                                       ; +0x2, 0x1800e3a12\nmov     [rsp+88h+var_30], r14                                          ; +0x9, 0x1800e3a19\nmov     rbp, rcx                                                       ; +0xe, 0x1800e3a1e\nmov     [rsp+88h+var_38], r15                                          ; +0x11, 0x1800e3a21\nmov     r14, rdx                                                       ; +0x16, 0x1800e3a26\nxor     r15b, r15b                                                     ; +0x19, 0x1800e3a29\ntest    rcx, rcx                                                       ; +0x1c, 0x1800e3a2c\njz      short loc_1800E3A3E                                            ; +0x1f, 0x1800e3a2f\nmov     edx, 16h                                                       ; +0x21, 0x1800e3a31\ncall    sub_1801021C0                                                  ; +0x26, 0x1800e3a36\nmov     r15b, 1                                                        ; +0x2b, 0x1800e3a3b\nmov     [rsp+88h+var_10], rbx                                          ; +0x2e, 0x1800e3a3e\nmov     [rsp+88h+var_18], rsi                                          ; +0x33, 0x1800e3a43\nmov     [rsp+88h+var_20], rdi                                          ; +0x38, 0x1800e3a48\nmov     [rsp+88h+var_28], r12                                          ; +0x3d, 0x1800e3a4d\nmovaps  [rsp+88h+var_48], xmm6                                         ; +0x42, 0x1800e3a52\ntest    r14, r14                                                       ; +0x47, 0x1800e3a57\njz      loc_1800E3C67                                                  ; +0x4a, 0x1800e3a5a\nmovsx   ecx, word ptr [r14+1FCh]                                       ; +0x50, 0x1800e3a60\ncmp     cx, 0FFFFh                                                     ; +0x58, 0x1800e3a68\njz      loc_1800E3C67                                                  ; +0x5c, 0x1800e3a6c\nlea     rax, [rbp+6C0h]                                                ; +0x62, 0x1800e3a72\nmov     rbx, [rax]                                                     ; +0x69, 0x1800e3a79\ncmp     rbx, rax                                                       ; +0x6c, 0x1800e3a7c\njz      short loc_1800E3A8E                                            ; +0x6f, 0x1800e3a7f\ncmp     [rbx+34h], ecx                                                 ; +0x71, 0x1800e3a81\njz      short loc_1800E3A8E                                            ; +0x74, 0x1800e3a84\nmov     rbx, [rbx]                                                     ; +0x76, 0x1800e3a86\ncmp     rbx, rax                                                       ; +0x79, 0x1800e3a89\njnz     short loc_1800E3A81                                            ; +0x7c, 0x1800e3a8c\nmov     rax, [r14]                                                     ; +0x7e, 0x1800e3a8e\nlea     r8, [rsp+88h+arg_8]                                            ; +0x81, 0x1800e3a91\nmov     r12d, 0FFFFFFFFh                                               ; +0x89, 0x1800e3a99\nxor     esi, esi                                                       ; +0x8f, 0x1800e3a9f\nmov     edx, r12d                                                      ; +0x91, 0x1800e3aa1\nmov     [rsp+88h+arg_8], rsi                                           ; +0x94, 0x1800e3aa4\nmov     rcx, r14                                                       ; +0x9c, 0x1800e3aac\ncall    qword ptr [rax+120h]                                           ; +0x9f, 0x1800e3aaf\ntest    eax, eax                                                       ; +0xa5, 0x1800e3ab5\njnz     loc_1800E3C6C                                                  ; +0xa7, 0x1800e3ab7\nmov     rdx, [rsp+88h+arg_8]                                           ; +0xad, 0x1800e3abd\nlea     r9d, [rsi+4]                                                   ; +0xb5, 0x1800e3ac5\nmov     rcx, [rbx+10h]                                                 ; +0xb9, 0x1800e3ac9\nxor     r8d, r8d                                                       ; +0xbd, 0x1800e3acd\ncall    sub_180096490                                                  ; +0xc0, 0x1800e3ad0\ntest    eax, eax                                                       ; +0xc5, 0x1800e3ad5\njnz     loc_1800E3C6C                                                  ; +0xc7, 0x1800e3ad7\ncmp     [r14+1FEh], sil                                                ; +0xcd, 0x1800e3add\njnz     loc_1800E3BCB                                                  ; +0xd4, 0x1800e3ae4\nmov     rcx, [r14+20h]                                                 ; +0xda, 0x1800e3aea\nlea     r8, [rsp+88h+arg_10]                                           ; +0xde, 0x1800e3aee\nmov     [rsp+88h+arg_10], rsi                                          ; +0xe6, 0x1800e3af6\nlea     edx, [rsi-3]                                                   ; +0xee, 0x1800e3afe\nmov     rax, [rcx]                                                     ; +0xf1, 0x1800e3b01\ncall    qword ptr [rax+120h]                                           ; +0xf4, 0x1800e3b04\ntest    eax, eax                                                       ; +0xfa, 0x1800e3b0a\njnz     loc_1800E3C6C                                                  ; +0xfc, 0x1800e3b0c\nmov     rcx, [rsp+88h+arg_8]                                           ; +0x102, 0x1800e3b12\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x10a, 0x1800e3b1a\nmov     r9b, 1                                                         ; +0x112, 0x1800e3b22\nmov     [rsp+88h+arg_0], esi                                           ; +0x115, 0x1800e3b25\nxor     r8d, r8d                                                       ; +0x11c, 0x1800e3b2c\ncall    sub_180097620                                                  ; +0x11f, 0x1800e3b2f\ntest    eax, eax                                                       ; +0x124, 0x1800e3b34\njnz     loc_1800E3C6C                                                  ; +0x126, 0x1800e3b36\nmov     edi, esi                                                       ; +0x12c, 0x1800e3b3c\ncmp     [rsp+88h+arg_0], esi                                           ; +0x12e, 0x1800e3b3e\njle     loc_1800E3BCB                                                  ; +0x135, 0x1800e3b45\nmovss   xmm6, cs:dword_180145744                                       ; +0x13b, 0x1800e3b4b\nmov     rcx, [rsp+88h+arg_8]                                           ; +0x143, 0x1800e3b53\nlea     r9, [rsp+88h+var_58]                                           ; +0x14b, 0x1800e3b5b\nmov     [rsp+88h+var_60], 1                                            ; +0x150, 0x1800e3b60\nlea     r8, [rsp+88h+arg_18]                                           ; +0x155, 0x1800e3b65\nmov     edx, edi                                                       ; +0x15d, 0x1800e3b6d\nmov     [rsp+88h+var_68], sil                                          ; +0x15f, 0x1800e3b6f\nmov     [rsp+88h+arg_18], rsi                                          ; +0x164, 0x1800e3b74\nmov     [rsp+88h+var_58], rsi                                          ; +0x16c, 0x1800e3b7c\ncall    sub_180097A00                                                  ; +0x171, 0x1800e3b81\ntest    eax, eax                                                       ; +0x176, 0x1800e3b86\njnz     loc_1800E3C6C                                                  ; +0x178, 0x1800e3b88\nmov     rax, [rsp+88h+arg_10]                                          ; +0x17e, 0x1800e3b8e\ncmp     [rsp+88h+arg_18], rax                                          ; +0x186, 0x1800e3b96\njnz     short loc_1800E3BC0                                            ; +0x18e, 0x1800e3b9e\nmov     rcx, [rsp+88h+var_58]                                          ; +0x190, 0x1800e3ba0\nmov     r9b, 1                                                         ; +0x195, 0x1800e3ba5\nxor     r8d, r8d                                                       ; +0x198, 0x1800e3ba8\nmov     [rsp+88h+var_68], sil                                          ; +0x19b, 0x1800e3bab\nmovaps  xmm1, xmm6                                                     ; +0x1a0, 0x1800e3bb0\ncall    sub_18005A4F0                                                  ; +0x1a3, 0x1800e3bb3\ntest    eax, eax                                                       ; +0x1a8, 0x1800e3bb8\njnz     loc_1800E3C6C                                                  ; +0x1aa, 0x1800e3bba\ninc     edi                                                            ; +0x1b0, 0x1800e3bc0\ncmp     edi, [rsp+88h+arg_0]                                           ; +0x1b2, 0x1800e3bc2\njl      short loc_1800E3B53                                            ; +0x1b9, 0x1800e3bc9\nsub     dword ptr [rbx+38h], 1                                         ; +0x1bb, 0x1800e3bcb\njnz     loc_1800E3C56                                                  ; +0x1bf, 0x1800e3bcf\nmov     rcx, [rbx+8]                                                   ; +0x1c5, 0x1800e3bd5\nmov     rdx, rbx                                                       ; +0x1c9, 0x1800e3bd9\nmov     rax, [rbx]                                                     ; +0x1cc, 0x1800e3bdc\nmov     [rcx], rax                                                     ; +0x1cf, 0x1800e3bdf\nmov     rcx, [rbx]                                                     ; +0x1d2, 0x1800e3be2\nmov     rax, [rbx+8]                                                   ; +0x1d5, 0x1800e3be5\nmov     [rcx+8], rax                                                   ; +0x1d9, 0x1800e3be9\nmov     [rbx+8], rbx                                                   ; +0x1dd, 0x1800e3bed\nmov     [rbx], rbx                                                     ; +0x1e1, 0x1800e3bf1\nmov     rcx, [rbp+670h]                                                ; +0x1e4, 0x1800e3bf4\ncall    sub_1800BB230                                                  ; +0x1eb, 0x1800e3bfb\ntest    eax, eax                                                       ; +0x1f0, 0x1800e3c00\njnz     short loc_1800E3C6C                                            ; +0x1f2, 0x1800e3c02\nmov     rcx, [rbx+10h]                                                 ; +0x1f4, 0x1800e3c04\nmov     rax, [rcx]                                                     ; +0x1f8, 0x1800e3c08\ncall    qword ptr [rax+10h]                                            ; +0x1fb, 0x1800e3c0b\ntest    eax, eax                                                       ; +0x1fe, 0x1800e3c0e\njnz     short loc_1800E3C6C                                            ; +0x200, 0x1800e3c10\nmov     rcx, [rbx+8]                                                   ; +0x202, 0x1800e3c12\nlea     r8, aCBuildagent1Wo_64; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x206, 0x1800e3c16\nmov     rax, [rbx]                                                     ; +0x20d, 0x1800e3c1d\nmov     r9d, 139Ah                                                     ; +0x210, 0x1800e3c20\nmov     rdx, rbx                                                       ; +0x216, 0x1800e3c26\nmov     [rsp+88h+var_68], 1                                            ; +0x219, 0x1800e3c29\nmov     [rcx], rax                                                     ; +0x21e, 0x1800e3c2e\nmov     rcx, [rbx]                                                     ; +0x221, 0x1800e3c31\nmov     rax, [rbx+8]                                                   ; +0x224, 0x1800e3c34\nmov     [rcx+8], rax                                                   ; +0x228, 0x1800e3c38\nmov     [rbx+8], rbx                                                   ; +0x22c, 0x1800e3c3c\nmov     [rbx], rbx                                                     ; +0x230, 0x1800e3c40\nmov     rcx, cs:off_1801AED20                                          ; +0x233, 0x1800e3c43\nmov     rcx, [rcx+1A0h]                                                ; +0x23a, 0x1800e3c4a\ncall    sub_1800B6AA0                                                  ; +0x241, 0x1800e3c51\nmov     [r14+1FCh], r12w                                               ; +0x246, 0x1800e3c56\nmov     [r14+1FEh], sil                                                ; +0x24e, 0x1800e3c5e\njmp     short loc_1800E3C6E                                            ; +0x255, 0x1800e3c65\nmov     eax, 1Fh                                                       ; +0x257, 0x1800e3c67\nmov     esi, eax                                                       ; +0x25c, 0x1800e3c6c\nmovaps  xmm6, [rsp+88h+var_48]                                         ; +0x25e, 0x1800e3c6e\ntest    r15b, r15b                                                     ; +0x263, 0x1800e3c73\nmov     r15, [rsp+88h+var_38]                                          ; +0x266, 0x1800e3c76\nmov     r14, [rsp+88h+var_30]                                          ; +0x26b, 0x1800e3c7b\nmov     r12, [rsp+88h+var_28]                                          ; +0x270, 0x1800e3c80\nmov     rdi, [rsp+88h+var_20]                                          ; +0x275, 0x1800e3c85\nmov     rbx, [rsp+88h+var_10]                                          ; +0x27a, 0x1800e3c8a\njz      short loc_1800E3CA3                                            ; +0x27f, 0x1800e3c8f\ntest    rbp, rbp                                                       ; +0x281, 0x1800e3c91\njz      short loc_1800E3CA3                                            ; +0x284, 0x1800e3c94\nmov     edx, 16h                                                       ; +0x286, 0x1800e3c96\nmov     rcx, rbp                                                       ; +0x28b, 0x1800e3c9b\ncall    sub_180102300                                                  ; +0x28e, 0x1800e3c9e\nmov     eax, esi                                                       ; +0x293, 0x1800e3ca3\nmov     rsi, [rsp+88h+var_18]                                          ; +0x295, 0x1800e3ca5\nadd     rsp, 80h                                                       ; +0x29a, 0x1800e3caa\npop     rbp                                                            ; +0x2a1, 0x1800e3cb1\nretn                                                                   ; +0x2a2, 0x1800e3cb2", "xrefs": ["FMOD::System::detachChannelGroupFromPort @ 0x1800ac750", "sub_1800CB510 @ 0x1800cb60d", "<???> @ 0x18018d8c0", "<???> @ 0x18018d8d4", "<???> @ 0x1801ffb34"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}