{"type": "func", "start": 6442508912, "end": 6442509217, "name": "FMOD::ChannelControl::setReverbProperties", "pseudocode": "// \n// FMOD::ChannelControl::setReverbProperties from 0x18000e270 to 0x18000e3a1 (305 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_SetReverbProperties @ 0x1800c5399\n// > FMOD_Channel_SetReverbProperties @ 0x1800c5a09\n// > <???> @ 0x18017dc6c\n// > <???> @ 0x18017dca0\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6c00\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 FMOD::ChannelControl::setReverbProperties(__int64 a1, unsigned int a2)\n{\n  int v3; // ebp\n  unsigned int v4; // esi\n  int v5; // ebx\n  int v6; // eax\n  __int64 v8; // [rsp+30h] [rbp-148h] BYREF\n  __int64 v9; // [rsp+38h] [rbp-140h] BYREF\n  _BYTE v10[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v8 = 0;\n  v3 = a1;\n  v4 = sub_180012360(a1, &v9, &v8);\n  if ( (v4 || (v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 104LL))(v9, a2)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v5 = sub_1800F2EC0(v10, 256, a2);\n    v6 = sub_1800F2F70(&v10[v5]);\n    sub_1800F2F20(&v10[v6 + v5], (unsigned int)(256 - (v6 + v5)));\n    sub_1800B20E0(v4, 4, v3, (unsigned int)\"ChannelControl::setReverbProperties\", (__int64)v10);\n  }\n  if ( v8 )\n    sub_180102320();\n  return v4;\n}", "assembly": "; \n; FMOD::ChannelControl::setReverbProperties from 0x18000e270 to 0x18000e3a1 (305 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_SetReverbProperties @ 0x1800c5399\n; > FMOD_Channel_SetReverbProperties @ 0x1800c5a09\n; > <???> @ 0x18017dc6c\n; > <???> @ 0x18017dca0\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6c00\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     r11, rsp                                                       ; +0x0, 0x18000e270\npush    rsi                                                            ; +0x3, 0x18000e273\nsub     rsp, 170h                                                      ; +0x4, 0x18000e274\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000e27b\nxor     rax, rsp                                                       ; +0x12, 0x18000e282\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000e285\nmov     [r11+20h], rbx                                                 ; +0x1d, 0x18000e28d\nlea     r8, [rsp+178h+var_148]                                         ; +0x21, 0x18000e291\nmov     [r11-10h], rbp                                                 ; +0x26, 0x18000e296\nmov     ebx, edx                                                       ; +0x2a, 0x18000e29a\nmovaps  xmmword ptr [r11-28h], xmm6                                    ; +0x2c, 0x18000e29c\nlea     rdx, [rsp+178h+var_140]                                        ; +0x31, 0x18000e2a1\nmovaps  xmm6, xmm2                                                     ; +0x36, 0x18000e2a6\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000e2a9\nmov     rbp, rcx                                                       ; +0x42, 0x18000e2b2\ncall    sub_180012360                                                  ; +0x45, 0x18000e2b5\nmov     esi, eax                                                       ; +0x4a, 0x18000e2ba\ntest    eax, eax                                                       ; +0x4c, 0x18000e2bc\njnz     short loc_18000E2DA                                            ; +0x4e, 0x18000e2be\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000e2c0\nmovaps  xmm2, xmm6                                                     ; +0x55, 0x18000e2c5\nmov     edx, ebx                                                       ; +0x58, 0x18000e2c8\nmov     rax, [rcx]                                                     ; +0x5a, 0x18000e2ca\ncall    qword ptr [rax+68h]                                            ; +0x5d, 0x18000e2cd\nmov     esi, eax                                                       ; +0x60, 0x18000e2d0\ntest    eax, eax                                                       ; +0x62, 0x18000e2d2\njz      loc_18000E35F                                                  ; +0x64, 0x18000e2d4\nmov     rax, cs:off_1801AED20                                          ; +0x6a, 0x18000e2da\ntest    byte ptr [rax+10h], 80h                                        ; +0x71, 0x18000e2e1\njz      short loc_18000E35F                                            ; +0x75, 0x18000e2e5\nmov     [rsp+178h+var_18], rdi                                         ; +0x77, 0x18000e2e7\nlea     rcx, [rsp+178h+var_138]                                        ; +0x7f, 0x18000e2ef\nmov     edi, 100h                                                      ; +0x84, 0x18000e2f4\nmov     r8d, ebx                                                       ; +0x89, 0x18000e2f9\nmov     edx, edi                                                       ; +0x8c, 0x18000e2fc\ncall    sub_1800F2EC0                                                  ; +0x8e, 0x18000e2fe\nmovsxd  rbx, eax                                                       ; +0x93, 0x18000e303\nlea     rcx, [rsp+178h+var_138]                                        ; +0x96, 0x18000e306\nmov     edx, edi                                                       ; +0x9b, 0x18000e30b\nlea     r8, asc_18014572C; \", \"                                        ; +0x9d, 0x18000e30d\nsub     edx, ebx                                                       ; +0xa4, 0x18000e314\nadd     rcx, rbx; void *                                               ; +0xa6, 0x18000e316\ncall    sub_1800F2F70                                                  ; +0xa9, 0x18000e319\nadd     ebx, eax                                                       ; +0xae, 0x18000e31e\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb0, 0x18000e320\nmovsxd  rax, ebx                                                       ; +0xb5, 0x18000e325\nsub     edi, ebx                                                       ; +0xb8, 0x18000e328\nadd     rcx, rax                                                       ; +0xba, 0x18000e32a\nmov     edx, edi                                                       ; +0xbd, 0x18000e32d\nmovaps  xmm2, xmm6                                                     ; +0xbf, 0x18000e32f\ncall    sub_1800F2F20                                                  ; +0xc2, 0x18000e332\nlea     rax, [rsp+178h+var_138]                                        ; +0xc7, 0x18000e337\nmov     r8, rbp                                                        ; +0xcc, 0x18000e33c\nlea     r9, aChannelcontrol_55; \"ChannelControl::setReverbProperties\"  ; +0xcf, 0x18000e33f\nmov     [rsp+178h+var_158], rax                                        ; +0xd6, 0x18000e346\nmov     edx, 4                                                         ; +0xdb, 0x18000e34b\nmov     ecx, esi                                                       ; +0xe0, 0x18000e350\ncall    sub_1800B20E0                                                  ; +0xe2, 0x18000e352\nmov     rdi, [rsp+178h+var_18]                                         ; +0xe7, 0x18000e357\nmov     rcx, [rsp+178h+var_148]                                        ; +0xef, 0x18000e35f\nmovaps  xmm6, [rsp+178h+var_28]                                        ; +0xf4, 0x18000e364\nmov     rbp, [rsp+178h+var_10]                                         ; +0xfc, 0x18000e36c\nmov     rbx, [rsp+178h+arg_18]                                         ; +0x104, 0x18000e374\ntest    rcx, rcx                                                       ; +0x10c, 0x18000e37c\njz      short loc_18000E386                                            ; +0x10f, 0x18000e37f\ncall    sub_180102320                                                  ; +0x111, 0x18000e381\nmov     eax, esi                                                       ; +0x116, 0x18000e386\nmov     rcx, [rsp+178h+var_38]                                         ; +0x118, 0x18000e388\nxor     rcx, rsp; StackCookie                                          ; +0x120, 0x18000e390\ncall    __security_check_cookie                                        ; +0x123, 0x18000e393\nadd     rsp, 170h                                                      ; +0x128, 0x18000e398\npop     rsi                                                            ; +0x12f, 0x18000e39f\nretn                                                                   ; +0x130, 0x18000e3a0", "xrefs": ["FMOD_ChannelGroup_SetReverbProperties @ 0x1800c5399", "FMOD_Channel_SetReverbProperties @ 0x1800c5a09", "<???> @ 0x18017dc6c", "<???> @ 0x18017dca0", "<???> @ 0x180194348", "<???> @ 0x1801f6c00"], "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"}