{"type": "func", "start": 6443164944, "end": 6443165323, "name": "FMOD::System::getPluginHandle", "pseudocode": "// \n// FMOD::System::getPluginHandle from 0x1800ae510 to 0x1800ae68b (379 bytes)\n// \n// 6 xrefs:\n// > FMOD_System_GetPluginHandle @ 0x1800c6be9\n// > <???> @ 0x180187fb8\n// > <???> @ 0x180187fec\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc588\n// > <???> @ 0x1801fc594\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::getPluginHandle(__int64 a1, unsigned int a2, unsigned int a3, __int64 a4)\n{\n  int v6; // r15d\n  unsigned int v8; // esi\n  int v9; // ebx\n  int v10; // ebx\n  int v11; // ebx\n  int v12; // eax\n  __int64 v14; // [rsp+30h] [rbp-158h] BYREF\n  __int64 v15; // [rsp+38h] [rbp-150h] BYREF\n  _BYTE v16[256]; // [rsp+40h] [rbp-148h] BYREF\n\n  v6 = a1;\n  v14 = 0;\n  v8 = FMOD::SystemI::validate(a1, &v15, &v14);\n  if ( (v8 || (v8 = sub_1800E4740(v15, a2, a3, a4)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v9 = sub_1800F2EC0(v16, 256, a2);\n    v10 = sub_1800F2F70(&v16[v9]) + v9;\n    v11 = sub_1800F2EC0(&v16[v10], (unsigned int)(256 - v10), a3) + v10;\n    v12 = sub_1800F2F70(&v16[v11]);\n    sub_1800F3060(&v16[v12 + v11], (unsigned int)(256 - (v12 + v11)), a4);\n    sub_1800B20E0(v8, 1, v6, (unsigned int)\"System::getPluginHandle\", (__int64)v16);\n  }\n  if ( v14 )\n    sub_180102320(v14);\n  return v8;\n}", "assembly": "; \n; FMOD::System::getPluginHandle from 0x1800ae510 to 0x1800ae68b (379 bytes)\n; \n; 6 xrefs:\n; > FMOD_System_GetPluginHandle @ 0x1800c6be9\n; > <???> @ 0x180187fb8\n; > <???> @ 0x180187fec\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc588\n; > <???> @ 0x1801fc594\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, 0x1800ae510\npush    rsi                                                            ; +0x3, 0x1800ae513\nsub     rsp, 180h                                                      ; +0x4, 0x1800ae514\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800ae51b\nxor     rax, rsp                                                       ; +0x12, 0x1800ae522\nmov     [rsp+188h+var_48], rax                                         ; +0x15, 0x1800ae525\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x1800ae52d\nmov     ebx, edx                                                       ; +0x21, 0x1800ae531\nmov     [r11-18h], rbp                                                 ; +0x23, 0x1800ae533\nlea     rdx, [rsp+188h+var_150]                                        ; +0x27, 0x1800ae537\nmov     [r11-28h], r14                                                 ; +0x2c, 0x1800ae53c\nmov     ebp, r8d                                                       ; +0x30, 0x1800ae540\nmov     [r11-30h], r15                                                 ; +0x33, 0x1800ae543\nlea     r8, [rsp+188h+var_158]                                         ; +0x37, 0x1800ae547\nmov     r15, rcx                                                       ; +0x3c, 0x1800ae54c\nmov     [rsp+188h+var_158], 0                                          ; +0x3f, 0x1800ae54f\nmov     r14, r9                                                        ; +0x48, 0x1800ae558\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x4b, 0x1800ae55b\nmov     esi, eax                                                       ; +0x50, 0x1800ae560\ntest    eax, eax                                                       ; +0x52, 0x1800ae562\njnz     short loc_1800AE582                                            ; +0x54, 0x1800ae564\nmov     rcx, [rsp+188h+var_150]                                        ; +0x56, 0x1800ae566\nmov     r9, r14                                                        ; +0x5b, 0x1800ae56b\nmov     r8d, ebp                                                       ; +0x5e, 0x1800ae56e\nmov     edx, ebx                                                       ; +0x61, 0x1800ae571\ncall    sub_1800E4740                                                  ; +0x63, 0x1800ae573\nmov     esi, eax                                                       ; +0x68, 0x1800ae578\ntest    eax, eax                                                       ; +0x6a, 0x1800ae57a\njz      loc_1800AE641                                                  ; +0x6c, 0x1800ae57c\nmov     rax, cs:off_1801AED20                                          ; +0x72, 0x1800ae582\ntest    byte ptr [rax+10h], 80h                                        ; +0x79, 0x1800ae589\njz      loc_1800AE641                                                  ; +0x7d, 0x1800ae58d\nmov     [rsp+188h+var_20], rdi                                         ; +0x83, 0x1800ae593\nlea     rcx, [rsp+188h+var_148]                                        ; +0x8b, 0x1800ae59b\nmov     edi, 100h                                                      ; +0x90, 0x1800ae5a0\nmov     r8d, ebx                                                       ; +0x95, 0x1800ae5a5\nmov     edx, edi                                                       ; +0x98, 0x1800ae5a8\ncall    sub_1800F2EC0                                                  ; +0x9a, 0x1800ae5aa\nmovsxd  rbx, eax                                                       ; +0x9f, 0x1800ae5af\nlea     rcx, [rsp+188h+var_148]                                        ; +0xa2, 0x1800ae5b2\nmov     edx, edi                                                       ; +0xa7, 0x1800ae5b7\nlea     r8, asc_18014572C; \", \"                                        ; +0xa9, 0x1800ae5b9\nsub     edx, ebx                                                       ; +0xb0, 0x1800ae5c0\nadd     rcx, rbx; void *                                               ; +0xb2, 0x1800ae5c2\ncall    sub_1800F2F70                                                  ; +0xb5, 0x1800ae5c5\nadd     ebx, eax                                                       ; +0xba, 0x1800ae5ca\nmov     edx, edi                                                       ; +0xbc, 0x1800ae5cc\nlea     rax, [rsp+188h+var_148]                                        ; +0xbe, 0x1800ae5ce\nmovsxd  rcx, ebx                                                       ; +0xc3, 0x1800ae5d3\nadd     rcx, rax                                                       ; +0xc6, 0x1800ae5d6\nsub     edx, ebx                                                       ; +0xc9, 0x1800ae5d9\nmov     r8d, ebp                                                       ; +0xcb, 0x1800ae5db\ncall    sub_1800F2EC0                                                  ; +0xce, 0x1800ae5de\nadd     ebx, eax                                                       ; +0xd3, 0x1800ae5e3\nlea     rcx, [rsp+188h+var_148]                                        ; +0xd5, 0x1800ae5e5\nmovsxd  rax, ebx                                                       ; +0xda, 0x1800ae5ea\nlea     r8, asc_18014572C; \", \"                                        ; +0xdd, 0x1800ae5ed\nmov     edx, edi                                                       ; +0xe4, 0x1800ae5f4\nadd     rcx, rax; void *                                               ; +0xe6, 0x1800ae5f6\nsub     edx, ebx                                                       ; +0xe9, 0x1800ae5f9\ncall    sub_1800F2F70                                                  ; +0xeb, 0x1800ae5fb\nadd     ebx, eax                                                       ; +0xf0, 0x1800ae600\nlea     rcx, [rsp+188h+var_148]                                        ; +0xf2, 0x1800ae602\nmovsxd  rax, ebx                                                       ; +0xf7, 0x1800ae607\nsub     edi, ebx                                                       ; +0xfa, 0x1800ae60a\nadd     rcx, rax                                                       ; +0xfc, 0x1800ae60c\nmov     edx, edi                                                       ; +0xff, 0x1800ae60f\nmov     r8, r14                                                        ; +0x101, 0x1800ae611\ncall    sub_1800F3060                                                  ; +0x104, 0x1800ae614\nlea     rax, [rsp+188h+var_148]                                        ; +0x109, 0x1800ae619\nmov     r8, r15                                                        ; +0x10e, 0x1800ae61e\nlea     r9, aSystemGetplugi; \"System::getPluginHandle\"                 ; +0x111, 0x1800ae621\nmov     [rsp+188h+var_168], rax                                        ; +0x118, 0x1800ae628\nmov     edx, 1                                                         ; +0x11d, 0x1800ae62d\nmov     ecx, esi                                                       ; +0x122, 0x1800ae632\ncall    sub_1800B20E0                                                  ; +0x124, 0x1800ae634\nmov     rdi, [rsp+188h+var_20]                                         ; +0x129, 0x1800ae639\nmov     rcx, [rsp+188h+var_158]                                        ; +0x131, 0x1800ae641\nmov     r15, [rsp+188h+var_30]                                         ; +0x136, 0x1800ae646\nmov     r14, [rsp+188h+var_28]                                         ; +0x13e, 0x1800ae64e\nmov     rbp, [rsp+188h+var_18]                                         ; +0x146, 0x1800ae656\nmov     rbx, [rsp+188h+var_10]                                         ; +0x14e, 0x1800ae65e\ntest    rcx, rcx                                                       ; +0x156, 0x1800ae666\njz      short loc_1800AE670                                            ; +0x159, 0x1800ae669\ncall    sub_180102320                                                  ; +0x15b, 0x1800ae66b\nmov     eax, esi                                                       ; +0x160, 0x1800ae670\nmov     rcx, [rsp+188h+var_48]                                         ; +0x162, 0x1800ae672\nxor     rcx, rsp; StackCookie                                          ; +0x16a, 0x1800ae67a\ncall    __security_check_cookie                                        ; +0x16d, 0x1800ae67d\nadd     rsp, 180h                                                      ; +0x172, 0x1800ae682\npop     rsi                                                            ; +0x179, 0x1800ae689\nretn                                                                   ; +0x17a, 0x1800ae68a", "xrefs": ["FMOD_System_GetPluginHandle @ 0x1800c6be9", "<???> @ 0x180187fb8", "<???> @ 0x180187fec", "<???> @ 0x180194348", "<???> @ 0x1801fc588", "<???> @ 0x1801fc594"], "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"}