{"type": "func", "start": 6443162592, "end": 6443162971, "name": "FMOD::System::getNestedPlugin", "pseudocode": "// \n// FMOD::System::getNestedPlugin from 0x1800adbe0 to 0x1800add5b (379 bytes)\n// \n// 6 xrefs:\n// > FMOD_System_GetNestedPlugin @ 0x1800c6b59\n// > <???> @ 0x180187eec\n// > <???> @ 0x180187f20\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc45c\n// > <???> @ 0x1801fc468\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::getNestedPlugin(__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_1800E4480(v15, a2, a3, a4)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v9 = sub_1800F2EF0(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::getNestedPlugin\", (__int64)v16);\n  }\n  if ( v14 )\n    sub_180102320(v14);\n  return v8;\n}", "assembly": "; \n; FMOD::System::getNestedPlugin from 0x1800adbe0 to 0x1800add5b (379 bytes)\n; \n; 6 xrefs:\n; > FMOD_System_GetNestedPlugin @ 0x1800c6b59\n; > <???> @ 0x180187eec\n; > <???> @ 0x180187f20\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc45c\n; > <???> @ 0x1801fc468\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, 0x1800adbe0\npush    rsi                                                            ; +0x3, 0x1800adbe3\nsub     rsp, 180h                                                      ; +0x4, 0x1800adbe4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800adbeb\nxor     rax, rsp                                                       ; +0x12, 0x1800adbf2\nmov     [rsp+188h+var_48], rax                                         ; +0x15, 0x1800adbf5\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x1800adbfd\nmov     ebx, edx                                                       ; +0x21, 0x1800adc01\nmov     [r11-18h], rbp                                                 ; +0x23, 0x1800adc03\nlea     rdx, [rsp+188h+var_150]                                        ; +0x27, 0x1800adc07\nmov     [r11-28h], r14                                                 ; +0x2c, 0x1800adc0c\nmov     ebp, r8d                                                       ; +0x30, 0x1800adc10\nmov     [r11-30h], r15                                                 ; +0x33, 0x1800adc13\nlea     r8, [rsp+188h+var_158]                                         ; +0x37, 0x1800adc17\nmov     r15, rcx                                                       ; +0x3c, 0x1800adc1c\nmov     [rsp+188h+var_158], 0                                          ; +0x3f, 0x1800adc1f\nmov     r14, r9                                                        ; +0x48, 0x1800adc28\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x4b, 0x1800adc2b\nmov     esi, eax                                                       ; +0x50, 0x1800adc30\ntest    eax, eax                                                       ; +0x52, 0x1800adc32\njnz     short loc_1800ADC52                                            ; +0x54, 0x1800adc34\nmov     rcx, [rsp+188h+var_150]                                        ; +0x56, 0x1800adc36\nmov     r9, r14                                                        ; +0x5b, 0x1800adc3b\nmov     r8d, ebp                                                       ; +0x5e, 0x1800adc3e\nmov     edx, ebx                                                       ; +0x61, 0x1800adc41\ncall    sub_1800E4480                                                  ; +0x63, 0x1800adc43\nmov     esi, eax                                                       ; +0x68, 0x1800adc48\ntest    eax, eax                                                       ; +0x6a, 0x1800adc4a\njz      loc_1800ADD11                                                  ; +0x6c, 0x1800adc4c\nmov     rax, cs:off_1801AED20                                          ; +0x72, 0x1800adc52\ntest    byte ptr [rax+10h], 80h                                        ; +0x79, 0x1800adc59\njz      loc_1800ADD11                                                  ; +0x7d, 0x1800adc5d\nmov     [rsp+188h+var_20], rdi                                         ; +0x83, 0x1800adc63\nlea     rcx, [rsp+188h+var_148]                                        ; +0x8b, 0x1800adc6b\nmov     edi, 100h                                                      ; +0x90, 0x1800adc70\nmov     r8d, ebx                                                       ; +0x95, 0x1800adc75\nmov     edx, edi                                                       ; +0x98, 0x1800adc78\ncall    sub_1800F2EF0                                                  ; +0x9a, 0x1800adc7a\nmovsxd  rbx, eax                                                       ; +0x9f, 0x1800adc7f\nlea     rcx, [rsp+188h+var_148]                                        ; +0xa2, 0x1800adc82\nmov     edx, edi                                                       ; +0xa7, 0x1800adc87\nlea     r8, asc_18014572C; \", \"                                        ; +0xa9, 0x1800adc89\nsub     edx, ebx                                                       ; +0xb0, 0x1800adc90\nadd     rcx, rbx; void *                                               ; +0xb2, 0x1800adc92\ncall    sub_1800F2F70                                                  ; +0xb5, 0x1800adc95\nadd     ebx, eax                                                       ; +0xba, 0x1800adc9a\nmov     edx, edi                                                       ; +0xbc, 0x1800adc9c\nlea     rax, [rsp+188h+var_148]                                        ; +0xbe, 0x1800adc9e\nmovsxd  rcx, ebx                                                       ; +0xc3, 0x1800adca3\nadd     rcx, rax                                                       ; +0xc6, 0x1800adca6\nsub     edx, ebx                                                       ; +0xc9, 0x1800adca9\nmov     r8d, ebp                                                       ; +0xcb, 0x1800adcab\ncall    sub_1800F2EC0                                                  ; +0xce, 0x1800adcae\nadd     ebx, eax                                                       ; +0xd3, 0x1800adcb3\nlea     rcx, [rsp+188h+var_148]                                        ; +0xd5, 0x1800adcb5\nmovsxd  rax, ebx                                                       ; +0xda, 0x1800adcba\nlea     r8, asc_18014572C; \", \"                                        ; +0xdd, 0x1800adcbd\nmov     edx, edi                                                       ; +0xe4, 0x1800adcc4\nadd     rcx, rax; void *                                               ; +0xe6, 0x1800adcc6\nsub     edx, ebx                                                       ; +0xe9, 0x1800adcc9\ncall    sub_1800F2F70                                                  ; +0xeb, 0x1800adccb\nadd     ebx, eax                                                       ; +0xf0, 0x1800adcd0\nlea     rcx, [rsp+188h+var_148]                                        ; +0xf2, 0x1800adcd2\nmovsxd  rax, ebx                                                       ; +0xf7, 0x1800adcd7\nsub     edi, ebx                                                       ; +0xfa, 0x1800adcda\nadd     rcx, rax                                                       ; +0xfc, 0x1800adcdc\nmov     edx, edi                                                       ; +0xff, 0x1800adcdf\nmov     r8, r14                                                        ; +0x101, 0x1800adce1\ncall    sub_1800F3060                                                  ; +0x104, 0x1800adce4\nlea     rax, [rsp+188h+var_148]                                        ; +0x109, 0x1800adce9\nmov     r8, r15                                                        ; +0x10e, 0x1800adcee\nlea     r9, aSystemGetneste; \"System::getNestedPlugin\"                 ; +0x111, 0x1800adcf1\nmov     [rsp+188h+var_168], rax                                        ; +0x118, 0x1800adcf8\nmov     edx, 1                                                         ; +0x11d, 0x1800adcfd\nmov     ecx, esi                                                       ; +0x122, 0x1800add02\ncall    sub_1800B20E0                                                  ; +0x124, 0x1800add04\nmov     rdi, [rsp+188h+var_20]                                         ; +0x129, 0x1800add09\nmov     rcx, [rsp+188h+var_158]                                        ; +0x131, 0x1800add11\nmov     r15, [rsp+188h+var_30]                                         ; +0x136, 0x1800add16\nmov     r14, [rsp+188h+var_28]                                         ; +0x13e, 0x1800add1e\nmov     rbp, [rsp+188h+var_18]                                         ; +0x146, 0x1800add26\nmov     rbx, [rsp+188h+var_10]                                         ; +0x14e, 0x1800add2e\ntest    rcx, rcx                                                       ; +0x156, 0x1800add36\njz      short loc_1800ADD40                                            ; +0x159, 0x1800add39\ncall    sub_180102320                                                  ; +0x15b, 0x1800add3b\nmov     eax, esi                                                       ; +0x160, 0x1800add40\nmov     rcx, [rsp+188h+var_48]                                         ; +0x162, 0x1800add42\nxor     rcx, rsp; StackCookie                                          ; +0x16a, 0x1800add4a\ncall    __security_check_cookie                                        ; +0x16d, 0x1800add4d\nadd     rsp, 180h                                                      ; +0x172, 0x1800add52\npop     rsi                                                            ; +0x179, 0x1800add59\nretn                                                                   ; +0x17a, 0x1800add5a", "xrefs": ["FMOD_System_GetNestedPlugin @ 0x1800c6b59", "<???> @ 0x180187eec", "<???> @ 0x180187f20", "<???> @ 0x180194348", "<???> @ 0x1801fc45c", "<???> @ 0x1801fc468"], "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"}