{"type": "func", "start": 6443386352, "end": 6443386533, "name": "sub_1800E45F0", "pseudocode": "// \n// sub_1800E45F0 from 0x1800e45f0 to 0x1800e46a5 (181 bytes)\n// \n// 2 xrefs:\n// > FMOD::System::getNumPlugins @ 0x1800ae1c9\n// > <???> @ 0x1801ffbe8\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 sub_1800E45F0(__int64 a1, int a2, _DWORD *a3)\n{\n  __int64 result; // rax\n  int v7; // ebx\n\n  if ( !a3 )\n    return 31;\n  if ( *(_BYTE *)(a1 + 9) || (result = sub_1800E7B20(), !(_DWORD)result) )\n  {\n    if ( !a2 )\n    {\n      sub_1800D7D80(*(_QWORD *)(a1 + 69128), a3);\n      return 0;\n    }\n    v7 = a2 - 1;\n    if ( !v7 )\n    {\n      sub_1800D7CC0(*(_QWORD *)(a1 + 69128), a3);\n      return 0;\n    }\n    if ( v7 == 1 )\n    {\n      sub_1800D7CF0(*(_QWORD *)(a1 + 69128), a3);\n      return 0;\n    }\n    return 31;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E45F0 from 0x1800e45f0 to 0x1800e46a5 (181 bytes)\n; \n; 2 xrefs:\n; > FMOD::System::getNumPlugins @ 0x1800ae1c9\n; > <???> @ 0x1801ffbe8\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_0], rbx                                               ; +0x0, 0x1800e45f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800e45f5\npush    rdi                                                            ; +0xa, 0x1800e45fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800e45fb\nmov     rsi, r8                                                        ; +0xf, 0x1800e45ff\nmov     ebx, edx                                                       ; +0x12, 0x1800e4602\nmov     rdi, rcx                                                       ; +0x14, 0x1800e4604\ntest    r8, r8                                                         ; +0x17, 0x1800e4607\njz      loc_1800E4690                                                  ; +0x1a, 0x1800e460a\ncmp     byte ptr [rcx+9], 0                                            ; +0x20, 0x1800e4610\njnz     short loc_1800E461F                                            ; +0x24, 0x1800e4614\ncall    sub_1800E7B20                                                  ; +0x26, 0x1800e4616\ntest    eax, eax                                                       ; +0x2b, 0x1800e461b\njnz     short loc_1800E4695                                            ; +0x2d, 0x1800e461d\ntest    ebx, ebx                                                       ; +0x2f, 0x1800e461f\njz      short loc_1800E466F                                            ; +0x31, 0x1800e4621\nsub     ebx, 1                                                         ; +0x33, 0x1800e4623\njz      short loc_1800E464E                                            ; +0x36, 0x1800e4626\ncmp     ebx, 1                                                         ; +0x38, 0x1800e4628\njnz     short loc_1800E4690                                            ; +0x3b, 0x1800e462b\nmov     rcx, [rdi+10E08h]                                              ; +0x3d, 0x1800e462d\nmov     rdx, rsi                                                       ; +0x44, 0x1800e4634\ncall    sub_1800D7CF0                                                  ; +0x47, 0x1800e4637\nxor     eax, eax                                                       ; +0x4c, 0x1800e463c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x1800e463e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x1800e4643\nadd     rsp, 20h                                                       ; +0x58, 0x1800e4648\npop     rdi                                                            ; +0x5c, 0x1800e464c\nretn                                                                   ; +0x5d, 0x1800e464d\nmov     rcx, [rdi+10E08h]                                              ; +0x5e, 0x1800e464e\nmov     rdx, rsi                                                       ; +0x65, 0x1800e4655\ncall    sub_1800D7CC0                                                  ; +0x68, 0x1800e4658\nxor     eax, eax                                                       ; +0x6d, 0x1800e465d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x1800e465f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x1800e4664\nadd     rsp, 20h                                                       ; +0x79, 0x1800e4669\npop     rdi                                                            ; +0x7d, 0x1800e466d\nretn                                                                   ; +0x7e, 0x1800e466e\nmov     rcx, [rdi+10E08h]                                              ; +0x7f, 0x1800e466f\nmov     rdx, rsi                                                       ; +0x86, 0x1800e4676\ncall    sub_1800D7D80                                                  ; +0x89, 0x1800e4679\nxor     eax, eax                                                       ; +0x8e, 0x1800e467e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x90, 0x1800e4680\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x95, 0x1800e4685\nadd     rsp, 20h                                                       ; +0x9a, 0x1800e468a\npop     rdi                                                            ; +0x9e, 0x1800e468e\nretn                                                                   ; +0x9f, 0x1800e468f\nmov     eax, 1Fh                                                       ; +0xa0, 0x1800e4690\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa5, 0x1800e4695\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xaa, 0x1800e469a\nadd     rsp, 20h                                                       ; +0xaf, 0x1800e469f\npop     rdi                                                            ; +0xb3, 0x1800e46a3\nretn                                                                   ; +0xb4, 0x1800e46a4", "xrefs": ["FMOD::System::getNumPlugins @ 0x1800ae1c9", "<???> @ 0x1801ffbe8"], "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"}