{"type": "func", "start": 6443147600, "end": 6443147869, "name": "FMOD::Sound::setSoundGroup", "pseudocode": "// \n// FMOD::Sound::setSoundGroup from 0x1800aa150 to 0x1800aa25d (269 bytes)\n// \n// 3 xrefs:\n// > FMOD_Sound_SetSoundGroup @ 0x1800c67f9\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fbe44\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::Sound::setSoundGroup(__int64 a1, __int64 a2)\n{\n  int v3; // ebp\n  unsigned int v4; // ebx\n  __int64 v5; // rdi\n  __int64 v7; // [rsp+30h] [rbp-138h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-128h] BYREF\n\n  v3 = a1;\n  v4 = sub_1800E1460(a1, &v7, 0);\n  if ( !v4 )\n  {\n    v5 = *(_QWORD *)(v7 + 216);\n    if ( v5 )\n    {\n      v4 = sub_1801021E0(*(_QWORD *)(v7 + 216));\n      if ( !v4 )\n      {\n        v4 = !*(_DWORD *)(v7 + 272) || *(_DWORD *)(v7 + 272) == 7\n           ? (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 216LL))(v7, a2)\n           : 46;\n        sub_180102320(v5);\n        if ( !v4 )\n          return 0;\n      }\n    }\n    else\n    {\n      v4 = 28;\n    }\n  }\n  if ( *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3230(v8, 256, a2);\n    sub_1800B20E0(v4, 5, v3, (unsigned int)\"Sound::setSoundGroup\", (__int64)v8);\n  }\n  return v4;\n}", "assembly": "; \n; FMOD::Sound::setSoundGroup from 0x1800aa150 to 0x1800aa25d (269 bytes)\n; \n; 3 xrefs:\n; > FMOD_Sound_SetSoundGroup @ 0x1800c67f9\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fbe44\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+arg_10], rbx                                              ; +0x0, 0x1800aa150\npush    rbp                                                            ; +0x5, 0x1800aa155\npush    rsi                                                            ; +0x6, 0x1800aa156\npush    rdi                                                            ; +0x7, 0x1800aa157\nsub     rsp, 150h                                                      ; +0x8, 0x1800aa158\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800aa15f\nxor     rax, rsp                                                       ; +0x16, 0x1800aa166\nmov     [rsp+168h+var_28], rax                                         ; +0x19, 0x1800aa169\nmov     rsi, rdx                                                       ; +0x21, 0x1800aa171\nxor     r8d, r8d                                                       ; +0x24, 0x1800aa174\nlea     rdx, [rsp+168h+var_138]                                        ; +0x27, 0x1800aa177\nmov     rbp, rcx                                                       ; +0x2c, 0x1800aa17c\ncall    sub_1800E1460                                                  ; +0x2f, 0x1800aa17f\nmov     ebx, eax                                                       ; +0x34, 0x1800aa184\ntest    eax, eax                                                       ; +0x36, 0x1800aa186\njnz     short loc_1800AA1F9                                            ; +0x38, 0x1800aa188\nmov     rax, [rsp+168h+var_138]                                        ; +0x3a, 0x1800aa18a\nmov     rdi, [rax+0D8h]                                                ; +0x3f, 0x1800aa18f\ntest    rdi, rdi                                                       ; +0x46, 0x1800aa196\njz      short loc_1800AA1F4                                            ; +0x49, 0x1800aa199\nmov     rcx, rdi                                                       ; +0x4b, 0x1800aa19b\ncall    sub_1801021E0                                                  ; +0x4e, 0x1800aa19e\nmov     ebx, eax                                                       ; +0x53, 0x1800aa1a3\ntest    eax, eax                                                       ; +0x55, 0x1800aa1a5\njnz     short loc_1800AA1F9                                            ; +0x57, 0x1800aa1a7\nmov     rax, [rsp+168h+var_138]                                        ; +0x59, 0x1800aa1a9\nmov     ecx, [rax+110h]                                                ; +0x5e, 0x1800aa1ae\nnop                                                                    ; +0x64, 0x1800aa1b4\ntest    ecx, ecx                                                       ; +0x65, 0x1800aa1b5\njz      short loc_1800AA1D1                                            ; +0x67, 0x1800aa1b7\nmov     rax, [rsp+168h+var_138]                                        ; +0x69, 0x1800aa1b9\nmov     ecx, [rax+110h]                                                ; +0x6e, 0x1800aa1be\nnop                                                                    ; +0x74, 0x1800aa1c4\ncmp     ecx, 7                                                         ; +0x75, 0x1800aa1c5\njz      short loc_1800AA1D1                                            ; +0x78, 0x1800aa1c8\nmov     ebx, 2Eh ; '.'                                                 ; +0x7a, 0x1800aa1ca\njmp     short loc_1800AA1E4                                            ; +0x7f, 0x1800aa1cf\nmov     rcx, [rsp+168h+var_138]                                        ; +0x81, 0x1800aa1d1\nmov     rdx, rsi                                                       ; +0x86, 0x1800aa1d6\nmov     rax, [rcx]                                                     ; +0x89, 0x1800aa1d9\ncall    qword ptr [rax+0D8h]                                           ; +0x8c, 0x1800aa1dc\nmov     ebx, eax                                                       ; +0x92, 0x1800aa1e2\nmov     rcx, rdi                                                       ; +0x94, 0x1800aa1e4\ncall    sub_180102320                                                  ; +0x97, 0x1800aa1e7\ntest    ebx, ebx                                                       ; +0x9c, 0x1800aa1ec\njnz     short loc_1800AA1F9                                            ; +0x9e, 0x1800aa1ee\nxor     eax, eax                                                       ; +0xa0, 0x1800aa1f0\njmp     short loc_1800AA23A                                            ; +0xa2, 0x1800aa1f2\nmov     ebx, 1Ch                                                       ; +0xa4, 0x1800aa1f4\nmov     rax, cs:off_1801AED20                                          ; +0xa9, 0x1800aa1f9\ntest    byte ptr [rax+10h], 80h                                        ; +0xb0, 0x1800aa200\njz      short loc_1800AA238                                            ; +0xb4, 0x1800aa204\nmov     r8, rsi                                                        ; +0xb6, 0x1800aa206\nlea     rcx, [rsp+168h+var_128]                                        ; +0xb9, 0x1800aa209\nmov     edx, 100h                                                      ; +0xbe, 0x1800aa20e\ncall    sub_1800F3230                                                  ; +0xc3, 0x1800aa213\nlea     rax, [rsp+168h+var_128]                                        ; +0xc8, 0x1800aa218\nmov     r8, rbp                                                        ; +0xcd, 0x1800aa21d\nlea     r9, aSoundSetsoundg; \"Sound::setSoundGroup\"                    ; +0xd0, 0x1800aa220\nmov     [rsp+168h+var_148], rax                                        ; +0xd7, 0x1800aa227\nmov     edx, 5                                                         ; +0xdc, 0x1800aa22c\nmov     ecx, ebx                                                       ; +0xe1, 0x1800aa231\ncall    sub_1800B20E0                                                  ; +0xe3, 0x1800aa233\nmov     eax, ebx                                                       ; +0xe8, 0x1800aa238\nmov     rcx, [rsp+168h+var_28]                                         ; +0xea, 0x1800aa23a\nxor     rcx, rsp; StackCookie                                          ; +0xf2, 0x1800aa242\ncall    __security_check_cookie                                        ; +0xf5, 0x1800aa245\nmov     rbx, [rsp+168h+arg_10]                                         ; +0xfa, 0x1800aa24a\nadd     rsp, 150h                                                      ; +0x102, 0x1800aa252\npop     rdi                                                            ; +0x109, 0x1800aa259\npop     rsi                                                            ; +0x10a, 0x1800aa25a\npop     rbp                                                            ; +0x10b, 0x1800aa25b\nretn                                                                   ; +0x10c, 0x1800aa25c", "xrefs": ["FMOD_Sound_SetSoundGroup @ 0x1800c67f9", "<???> @ 0x180194348", "<???> @ 0x1801fbe44"], "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"}