{"type": "func", "start": 6443616960, "end": 6443617563, "name": "sub_18011CAC0", "pseudocode": "// \n// sub_18011CAC0 from 0x18011cac0 to 0x18011cd1b (603 bytes)\n// \n// 6 xrefs:\n// > sub_18011BEC0 @ 0x18011c0d9\n// > <???> @ 0x18016e128\n// > <???> @ 0x180191974\n// > <???> @ 0x180191988\n// > <???> @ 0x180191998\n// > <???> @ 0x180202210\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:50 +0000\n// \n\n__int64 __fastcall sub_18011CAC0(__int64 a1)\n{\n  char *v2; // rbx\n  __int64 v3; // rdx\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  int v6; // eax\n  int v7; // eax\n  __int64 v8; // rdx\n  __int64 v9; // rdx\n  __int64 v10; // rdx\n  __int64 v11; // rdx\n  char v12; // bp\n  __int64 v13; // rsi\n  __int64 v14; // rax\n  int v15; // r8d\n  char *v16; // r9\n  __int64 v17; // rdx\n  _DWORD *v18; // rcx\n  char *v20; // rbx\n\n  v2 = (char *)&unk_1801F4390 + 16 * *(unsigned int *)(*(_QWORD *)(a1 + 8) + 69808LL);\n  if ( *(_DWORD *)(a1 + 28) )\n  {\n    v3 = *(_QWORD *)(a1 + 56);\n    if ( v3 != *(_QWORD *)(a1 + 128) )\n    {\n      if ( v3 )\n      {\n        sub_1800B6510(\n          *((_QWORD *)off_1801AED20 + 52),\n          v3,\n          (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n          164);\n        *(_QWORD *)(a1 + 56) = 0;\n      }\n    }\n  }\n  v4 = *(_QWORD *)(a1 + 104);\n  if ( v4 )\n  {\n    v5 = *(_QWORD *)v2;\n    if ( v4 == *(_QWORD *)v2 )\n    {\n      v6 = *((_DWORD *)v2 + 3);\n      if ( v6 )\n      {\n        v7 = v6 - 1;\n        *((_DWORD *)v2 + 3) = v7;\n        if ( !v7 )\n        {\n          sub_1800B6510(\n            *((_QWORD *)off_1801AED20 + 52),\n            v5,\n            (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n            179);\n          *(_QWORD *)v2 = 0;\n        }\n      }\n    }\n    else\n    {\n      sub_1800B6510(\n        *((_QWORD *)off_1801AED20 + 52),\n        v4,\n        (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n        172);\n    }\n    *(_QWORD *)(a1 + 104) = 0;\n  }\n  v8 = *(_QWORD *)(a1 + 48);\n  if ( v8 )\n  {\n    sub_1800B6510(\n      *((_QWORD *)off_1801AED20 + 52),\n      v8,\n      (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n      188);\n    *(_QWORD *)(a1 + 48) = 0;\n  }\n  v9 = *(_QWORD *)(a1 + 128);\n  if ( v9 )\n  {\n    sub_1800B6510(\n      *((_QWORD *)off_1801AED20 + 52),\n      v9,\n      (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n      193);\n    *(_QWORD *)(a1 + 128) = 0;\n  }\n  v10 = *(_QWORD *)(a1 + 96);\n  if ( v10 )\n  {\n    sub_1800B6510(\n      *((_QWORD *)off_1801AED20 + 52),\n      v10,\n      (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n      198);\n    *(_QWORD *)(a1 + 96) = 0;\n  }\n  v11 = *(_QWORD *)(a1 + 112);\n  if ( v11 )\n  {\n    sub_1800B6510(\n      *((_QWORD *)off_1801AED20 + 52),\n      v11,\n      (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_dsp_convolutionreverb_cpu.cpp\",\n      203);\n    *(_QWORD *)(a1 + 112) = 0;\n  }\n  if ( *(_QWORD *)(a1 + 72) )\n  {\n    v12 = 0;\n    v13 = *(_QWORD *)(a1 + 8);\n    v14 = v13;\n    if ( v13 )\n    {\n      sub_1801021C0(*(_QWORD *)(a1 + 8), 19);\n      v14 = *(_QWORD *)(a1 + 8);\n      v12 = 1;\n    }\n    v15 = 0;\n    v16 = (char *)&unk_1801F4190 + 64 * (unsigned __int64)*(unsigned int *)(v14 + 69808);\n    v17 = 0;\n    v18 = v16 + 12;\n    while ( *(v18 - 1) != *(_DWORD *)(a1 + 36) || (*v18)-- != 1 )\n    {\n      ++v15;\n      ++v17;\n      v18 += 4;\n      if ( v17 >= 4 )\n        goto LABEL_29;\n    }\n    v20 = &v16[16 * v15];\n    sub_1800F5890(*(_DWORD **)v20);\n    *(_QWORD *)v20 = 0;\n    *((_DWORD *)v20 + 2) = 0;\nLABEL_29:\n    *(_QWORD *)(a1 + 72) = 0;\n    if ( v12 && v13 )\n      sub_180102300(v13, 19);\n  }\n  return sub_1800F6330(a1);\n}", "assembly": "; \n; sub_18011CAC0 from 0x18011cac0 to 0x18011cd1b (603 bytes)\n; \n; 6 xrefs:\n; > sub_18011BEC0 @ 0x18011c0d9\n; > <???> @ 0x18016e128\n; > <???> @ 0x180191974\n; > <???> @ 0x180191988\n; > <???> @ 0x180191998\n; > <???> @ 0x180202210\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:50 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18011cac0\nmov     [rsp+arg_18], rdi                                              ; +0x5, 0x18011cac5\npush    r14                                                            ; +0xa, 0x18011caca\nsub     rsp, 20h                                                       ; +0xc, 0x18011cacc\nmov     rax, [rcx+8]                                                   ; +0x10, 0x18011cad0\nxor     r14d, r14d                                                     ; +0x14, 0x18011cad4\nmov     rdi, rcx                                                       ; +0x17, 0x18011cad7\nmov     ebx, [rax+110B0h]                                              ; +0x1a, 0x18011cada\nlea     rax, unk_1801F4390                                             ; +0x20, 0x18011cae0\nshl     rbx, 4                                                         ; +0x27, 0x18011cae7\nadd     rbx, rax                                                       ; +0x2b, 0x18011caeb\ncmp     [rcx+1Ch], r14d                                                ; +0x2e, 0x18011caee\njz      short loc_18011CB2A                                            ; +0x32, 0x18011caf2\nmov     rdx, [rcx+38h]                                                 ; +0x34, 0x18011caf4\ncmp     rdx, [rcx+80h]                                                 ; +0x38, 0x18011caf8\njz      short loc_18011CB2A                                            ; +0x3f, 0x18011caff\ntest    rdx, rdx                                                       ; +0x41, 0x18011cb01\njz      short loc_18011CB2A                                            ; +0x44, 0x18011cb04\nmov     rcx, cs:off_1801AED20                                          ; +0x46, 0x18011cb06\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x4d, 0x18011cb0d\nmov     r9d, 0A4h                                                      ; +0x54, 0x18011cb14\nmov     rcx, [rcx+1A0h]                                                ; +0x5a, 0x18011cb1a\ncall    sub_1800B6510                                                  ; +0x61, 0x18011cb21\nmov     [rdi+38h], r14                                                 ; +0x66, 0x18011cb26\nmov     rdx, [rdi+68h]                                                 ; +0x6a, 0x18011cb2a\ntest    rdx, rdx                                                       ; +0x6e, 0x18011cb2e\njz      short loc_18011CB96                                            ; +0x71, 0x18011cb31\nmov     rcx, [rbx]                                                     ; +0x73, 0x18011cb33\ncmp     rdx, rcx                                                       ; +0x76, 0x18011cb36\njz      short loc_18011CB5D                                            ; +0x79, 0x18011cb39\nmov     rcx, cs:off_1801AED20                                          ; +0x7b, 0x18011cb3b\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x82, 0x18011cb42\nmov     r9d, 0ACh                                                      ; +0x89, 0x18011cb49\nmov     rcx, [rcx+1A0h]                                                ; +0x8f, 0x18011cb4f\ncall    sub_1800B6510                                                  ; +0x96, 0x18011cb56\njmp     short loc_18011CB92                                            ; +0x9b, 0x18011cb5b\nmov     eax, [rbx+0Ch]                                                 ; +0x9d, 0x18011cb5d\ntest    eax, eax                                                       ; +0xa0, 0x18011cb60\njz      short loc_18011CB92                                            ; +0xa2, 0x18011cb62\nsub     eax, 1                                                         ; +0xa4, 0x18011cb64\nmov     [rbx+0Ch], eax                                                 ; +0xa7, 0x18011cb67\njnz     short loc_18011CB92                                            ; +0xaa, 0x18011cb6a\nmov     rdx, rcx                                                       ; +0xac, 0x18011cb6c\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xaf, 0x18011cb6f\nmov     rcx, cs:off_1801AED20                                          ; +0xb6, 0x18011cb76\nmov     r9d, 0B3h                                                      ; +0xbd, 0x18011cb7d\nmov     rcx, [rcx+1A0h]                                                ; +0xc3, 0x18011cb83\ncall    sub_1800B6510                                                  ; +0xca, 0x18011cb8a\nmov     [rbx], r14                                                     ; +0xcf, 0x18011cb8f\nmov     [rdi+68h], r14                                                 ; +0xd2, 0x18011cb92\nmov     rdx, [rdi+30h]                                                 ; +0xd6, 0x18011cb96\ntest    rdx, rdx                                                       ; +0xda, 0x18011cb9a\njz      short loc_18011CBC3                                            ; +0xdd, 0x18011cb9d\nmov     rcx, cs:off_1801AED20                                          ; +0xdf, 0x18011cb9f\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xe6, 0x18011cba6\nmov     r9d, 0BCh                                                      ; +0xed, 0x18011cbad\nmov     rcx, [rcx+1A0h]                                                ; +0xf3, 0x18011cbb3\ncall    sub_1800B6510                                                  ; +0xfa, 0x18011cbba\nmov     [rdi+30h], r14                                                 ; +0xff, 0x18011cbbf\nmov     rdx, [rdi+80h]                                                 ; +0x103, 0x18011cbc3\ntest    rdx, rdx                                                       ; +0x10a, 0x18011cbca\njz      short loc_18011CBF6                                            ; +0x10d, 0x18011cbcd\nmov     rcx, cs:off_1801AED20                                          ; +0x10f, 0x18011cbcf\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x116, 0x18011cbd6\nmov     r9d, 0C1h                                                      ; +0x11d, 0x18011cbdd\nmov     rcx, [rcx+1A0h]                                                ; +0x123, 0x18011cbe3\ncall    sub_1800B6510                                                  ; +0x12a, 0x18011cbea\nmov     [rdi+80h], r14                                                 ; +0x12f, 0x18011cbef\nmov     rdx, [rdi+60h]                                                 ; +0x136, 0x18011cbf6\ntest    rdx, rdx                                                       ; +0x13a, 0x18011cbfa\njz      short loc_18011CC23                                            ; +0x13d, 0x18011cbfd\nmov     rcx, cs:off_1801AED20                                          ; +0x13f, 0x18011cbff\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x146, 0x18011cc06\nmov     r9d, 0C6h                                                      ; +0x14d, 0x18011cc0d\nmov     rcx, [rcx+1A0h]                                                ; +0x153, 0x18011cc13\ncall    sub_1800B6510                                                  ; +0x15a, 0x18011cc1a\nmov     [rdi+60h], r14                                                 ; +0x15f, 0x18011cc1f\nmov     rdx, [rdi+70h]                                                 ; +0x163, 0x18011cc23\ntest    rdx, rdx                                                       ; +0x167, 0x18011cc27\njz      short loc_18011CC50                                            ; +0x16a, 0x18011cc2a\nmov     rcx, cs:off_1801AED20                                          ; +0x16c, 0x18011cc2c\nlea     r8, aCBuildagent1Wo_84; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x173, 0x18011cc33\nmov     r9d, 0CBh                                                      ; +0x17a, 0x18011cc3a\nmov     rcx, [rcx+1A0h]                                                ; +0x180, 0x18011cc40\ncall    sub_1800B6510                                                  ; +0x187, 0x18011cc47\nmov     [rdi+70h], r14                                                 ; +0x18c, 0x18011cc4c\ncmp     [rdi+48h], r14                                                 ; +0x190, 0x18011cc50\njz      loc_18011CD03                                                  ; +0x194, 0x18011cc54\nmov     [rsp+28h+arg_0], rbp                                           ; +0x19a, 0x18011cc5a\nxor     bpl, bpl                                                       ; +0x19f, 0x18011cc5f\nmov     [rsp+28h+arg_8], rsi                                           ; +0x1a2, 0x18011cc62\nmov     rsi, [rdi+8]                                                   ; +0x1a7, 0x18011cc67\nmov     rax, rsi                                                       ; +0x1ab, 0x18011cc6b\ntest    rsi, rsi                                                       ; +0x1ae, 0x18011cc6e\njz      short loc_18011CC87                                            ; +0x1b1, 0x18011cc71\nmov     edx, 13h                                                       ; +0x1b3, 0x18011cc73\nmov     rcx, rsi                                                       ; +0x1b8, 0x18011cc78\ncall    sub_1801021C0                                                  ; +0x1bb, 0x18011cc7b\nmov     rax, [rdi+8]                                                   ; +0x1c0, 0x18011cc80\nmov     bpl, 1                                                         ; +0x1c4, 0x18011cc84\nmov     r9d, [rax+110B0h]                                              ; +0x1c7, 0x18011cc87\nmov     r8d, r14d                                                      ; +0x1ce, 0x18011cc8e\nshl     r9, 6                                                          ; +0x1d1, 0x18011cc91\nlea     rax, unk_1801F4190                                             ; +0x1d5, 0x18011cc95\nadd     r9, rax                                                        ; +0x1dc, 0x18011cc9c\nmov     rdx, r14                                                       ; +0x1df, 0x18011cc9f\nlea     rcx, [r9+0Ch]                                                  ; +0x1e2, 0x18011cca2\nmov     eax, [rdi+24h]                                                 ; +0x1e6, 0x18011cca6\ncmp     [rcx-4], eax                                                   ; +0x1e9, 0x18011cca9\njnz     short loc_18011CCB3                                            ; +0x1ec, 0x18011ccac\nsub     dword ptr [rcx], 1                                             ; +0x1ee, 0x18011ccae\njz      short loc_18011CCC5                                            ; +0x1f1, 0x18011ccb1\ninc     r8d                                                            ; +0x1f3, 0x18011ccb3\ninc     rdx                                                            ; +0x1f6, 0x18011ccb6\nadd     rcx, 10h                                                       ; +0x1f9, 0x18011ccb9\ncmp     rdx, 4                                                         ; +0x1fd, 0x18011ccbd\njl      short loc_18011CCA6                                            ; +0x201, 0x18011ccc1\njmp     short loc_18011CCDE                                            ; +0x203, 0x18011ccc3\nmovsxd  rbx, r8d                                                       ; +0x205, 0x18011ccc5\nshl     rbx, 4                                                         ; +0x208, 0x18011ccc8\nadd     rbx, r9                                                        ; +0x20c, 0x18011cccc\nmov     rcx, [rbx]                                                     ; +0x20f, 0x18011cccf\ncall    sub_1800F5890                                                  ; +0x212, 0x18011ccd2\nmov     [rbx], r14                                                     ; +0x217, 0x18011ccd7\nmov     [rbx+8], r14d                                                  ; +0x21a, 0x18011ccda\ntest    bpl, bpl                                                       ; +0x21e, 0x18011ccde\nmov     [rdi+48h], r14                                                 ; +0x221, 0x18011cce1\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x225, 0x18011cce5\njz      short loc_18011CCFE                                            ; +0x22a, 0x18011ccea\ntest    rsi, rsi                                                       ; +0x22c, 0x18011ccec\njz      short loc_18011CCFE                                            ; +0x22f, 0x18011ccef\nmov     edx, 13h                                                       ; +0x231, 0x18011ccf1\nmov     rcx, rsi                                                       ; +0x236, 0x18011ccf6\ncall    sub_180102300                                                  ; +0x239, 0x18011ccf9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x23e, 0x18011ccfe\nmov     rcx, rdi                                                       ; +0x243, 0x18011cd03\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x246, 0x18011cd06\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x24b, 0x18011cd0b\nadd     rsp, 20h                                                       ; +0x250, 0x18011cd10\npop     r14                                                            ; +0x254, 0x18011cd14\njmp     sub_1800F6330                                                  ; +0x256, 0x18011cd16", "xrefs": ["sub_18011BEC0 @ 0x18011c0d9", "<???> @ 0x18016e128", "<???> @ 0x180191974", "<???> @ 0x180191988", "<???> @ 0x180191998", "<???> @ 0x180202210"], "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"}