{"type": "func", "start": 6443172992, "end": 6443173297, "name": "FMOD::System::registerDSP", "pseudocode": "// \n// FMOD::System::registerDSP from 0x1800b0480 to 0x1800b05b1 (305 bytes)\n// \n// 5 xrefs:\n// > FMOD_System_RegisterDSP @ 0x1800c6e09\n// > <???> @ 0x1801881f4\n// > <???> @ 0x180188228\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc9a8\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::System::registerDSP(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v5; // r14d\n  unsigned int v6; // esi\n  int v7; // ebx\n  int v8; // eax\n  __int64 v10; // [rsp+30h] [rbp-148h] BYREF\n  __int64 v11; // [rsp+38h] [rbp-140h] BYREF\n  _BYTE v12[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v10 = 0;\n  v5 = a1;\n  v6 = FMOD::SystemI::validate(a1, &v11, &v10);\n  if ( (v6 || (v6 = sub_1800E6830(v11, a2, a3)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F3230(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F3060(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 1, v5, (unsigned int)\"System::registerDSP\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320(v10);\n  return v6;\n}", "assembly": "; \n; FMOD::System::registerDSP from 0x1800b0480 to 0x1800b05b1 (305 bytes)\n; \n; 5 xrefs:\n; > FMOD_System_RegisterDSP @ 0x1800c6e09\n; > <???> @ 0x1801881f4\n; > <???> @ 0x180188228\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc9a8\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, 0x1800b0480\npush    rsi                                                            ; +0x3, 0x1800b0483\nsub     rsp, 170h                                                      ; +0x4, 0x1800b0484\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800b048b\nxor     rax, rsp                                                       ; +0x12, 0x1800b0492\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x1800b0495\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x1800b049d\nmov     rbx, rdx                                                       ; +0x21, 0x1800b04a1\nmov     [r11-18h], rbp                                                 ; +0x24, 0x1800b04a4\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x1800b04a8\nmov     rbp, r8                                                        ; +0x2d, 0x1800b04ad\nmov     [r11-28h], r14                                                 ; +0x30, 0x1800b04b0\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x1800b04b4\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x1800b04b9\nmov     r14, rcx                                                       ; +0x42, 0x1800b04c2\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x45, 0x1800b04c5\nmov     esi, eax                                                       ; +0x4a, 0x1800b04ca\ntest    eax, eax                                                       ; +0x4c, 0x1800b04cc\njnz     short loc_1800B04EA                                            ; +0x4e, 0x1800b04ce\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x1800b04d0\nmov     r8, rbp                                                        ; +0x55, 0x1800b04d5\nmov     rdx, rbx                                                       ; +0x58, 0x1800b04d8\ncall    sub_1800E6830                                                  ; +0x5b, 0x1800b04db\nmov     esi, eax                                                       ; +0x60, 0x1800b04e0\ntest    eax, eax                                                       ; +0x62, 0x1800b04e2\njz      loc_1800B056F                                                  ; +0x64, 0x1800b04e4\nmov     rax, cs:off_1801AED20                                          ; +0x6a, 0x1800b04ea\ntest    byte ptr [rax+10h], 80h                                        ; +0x71, 0x1800b04f1\njz      short loc_1800B056F                                            ; +0x75, 0x1800b04f5\nmov     [rsp+178h+var_20], rdi                                         ; +0x77, 0x1800b04f7\nlea     rcx, [rsp+178h+var_138]                                        ; +0x7f, 0x1800b04ff\nmov     edi, 100h                                                      ; +0x84, 0x1800b0504\nmov     r8, rbx                                                        ; +0x89, 0x1800b0509\nmov     edx, edi                                                       ; +0x8c, 0x1800b050c\ncall    sub_1800F3230                                                  ; +0x8e, 0x1800b050e\nmovsxd  rbx, eax                                                       ; +0x93, 0x1800b0513\nlea     rcx, [rsp+178h+var_138]                                        ; +0x96, 0x1800b0516\nmov     edx, edi                                                       ; +0x9b, 0x1800b051b\nlea     r8, asc_18014572C; \", \"                                        ; +0x9d, 0x1800b051d\nsub     edx, ebx                                                       ; +0xa4, 0x1800b0524\nadd     rcx, rbx; void *                                               ; +0xa6, 0x1800b0526\ncall    sub_1800F2F70                                                  ; +0xa9, 0x1800b0529\nadd     ebx, eax                                                       ; +0xae, 0x1800b052e\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb0, 0x1800b0530\nmovsxd  rax, ebx                                                       ; +0xb5, 0x1800b0535\nsub     edi, ebx                                                       ; +0xb8, 0x1800b0538\nadd     rcx, rax                                                       ; +0xba, 0x1800b053a\nmov     edx, edi                                                       ; +0xbd, 0x1800b053d\nmov     r8, rbp                                                        ; +0xbf, 0x1800b053f\ncall    sub_1800F3060                                                  ; +0xc2, 0x1800b0542\nlea     rax, [rsp+178h+var_138]                                        ; +0xc7, 0x1800b0547\nmov     r8, r14                                                        ; +0xcc, 0x1800b054c\nlea     r9, aSystemRegister_0; \"System::registerDSP\"                   ; +0xcf, 0x1800b054f\nmov     [rsp+178h+var_158], rax                                        ; +0xd6, 0x1800b0556\nmov     edx, 1                                                         ; +0xdb, 0x1800b055b\nmov     ecx, esi                                                       ; +0xe0, 0x1800b0560\ncall    sub_1800B20E0                                                  ; +0xe2, 0x1800b0562\nmov     rdi, [rsp+178h+var_20]                                         ; +0xe7, 0x1800b0567\nmov     rcx, [rsp+178h+var_148]                                        ; +0xef, 0x1800b056f\nmov     r14, [rsp+178h+var_28]                                         ; +0xf4, 0x1800b0574\nmov     rbp, [rsp+178h+var_18]                                         ; +0xfc, 0x1800b057c\nmov     rbx, [rsp+178h+var_10]                                         ; +0x104, 0x1800b0584\ntest    rcx, rcx                                                       ; +0x10c, 0x1800b058c\njz      short loc_1800B0596                                            ; +0x10f, 0x1800b058f\ncall    sub_180102320                                                  ; +0x111, 0x1800b0591\nmov     eax, esi                                                       ; +0x116, 0x1800b0596\nmov     rcx, [rsp+178h+var_38]                                         ; +0x118, 0x1800b0598\nxor     rcx, rsp; StackCookie                                          ; +0x120, 0x1800b05a0\ncall    __security_check_cookie                                        ; +0x123, 0x1800b05a3\nadd     rsp, 170h                                                      ; +0x128, 0x1800b05a8\npop     rsi                                                            ; +0x12f, 0x1800b05af\nretn                                                                   ; +0x130, 0x1800b05b0", "xrefs": ["FMOD_System_RegisterDSP @ 0x1800c6e09", "<???> @ 0x1801881f4", "<???> @ 0x180188228", "<???> @ 0x180194348", "<???> @ 0x1801fc9a8"], "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"}