{"type": "func", "start": 6443176256, "end": 6443176561, "name": "FMOD::System::setFileSystem", "pseudocode": "// \n// FMOD::System::setFileSystem from 0x1800b1140 to 0x1800b1271 (305 bytes)\n// \n// 3 xrefs:\n// > FMOD_System_SetFileSystem @ 0x1800c6ebb\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fcb4c\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::setFileSystem(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        __int64 a7,\n        unsigned int a8)\n{\n  unsigned int v11; // ebx\n  __int64 v13; // [rsp+50h] [rbp-178h] BYREF\n  __int64 v14; // [rsp+58h] [rbp-170h] BYREF\n  __int64 v15; // [rsp+60h] [rbp-168h]\n  _BYTE v16[256]; // [rsp+70h] [rbp-158h] BYREF\n\n  v15 = a1;\n  v13 = 0;\n  v11 = FMOD::SystemI::validate(a1, &v14, &v13);\n  if ( (v11 || (v11 = sub_1800E73C0(v14, a2, a3, a4, a5, a6, a7, a8)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800AB690((__int64)v16, 256, a2, a3, a4, a5, a6, a7, a8);\n    sub_1800B20E0(v11, 1, v15, (unsigned int)\"System::setFileSystem\", (__int64)v16);\n  }\n  if ( v13 )\n    sub_180102320(v13);\n  return v11;\n}", "assembly": "; \n; FMOD::System::setFileSystem from 0x1800b1140 to 0x1800b1271 (305 bytes)\n; \n; 3 xrefs:\n; > FMOD_System_SetFileSystem @ 0x1800c6ebb\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fcb4c\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\npush    rbx                                                            ; +0x0, 0x1800b1140\npush    rbp                                                            ; +0x2, 0x1800b1142\npush    rsi                                                            ; +0x3, 0x1800b1143\npush    rdi                                                            ; +0x4, 0x1800b1144\npush    r12                                                            ; +0x5, 0x1800b1145\npush    r13                                                            ; +0x7, 0x1800b1147\npush    r14                                                            ; +0x9, 0x1800b1149\npush    r15                                                            ; +0xb, 0x1800b114b\nsub     rsp, 188h                                                      ; +0xd, 0x1800b114d\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x1800b1154\nxor     rax, rsp                                                       ; +0x1b, 0x1800b115b\nmov     [rsp+1C8h+var_58], rax                                         ; +0x1e, 0x1800b115e\nmov     r14, [rsp+1C8h+arg_20]                                         ; +0x26, 0x1800b1166\nmov     rsi, r8                                                        ; +0x2e, 0x1800b116e\nmov     r15, [rsp+1C8h+arg_28]                                         ; +0x31, 0x1800b1171\nlea     r8, [rsp+1C8h+var_178]                                         ; +0x39, 0x1800b1179\nmov     r12, [rsp+1C8h+arg_30]                                         ; +0x3e, 0x1800b117e\nmov     rdi, rdx                                                       ; +0x46, 0x1800b1186\nlea     rdx, [rsp+1C8h+var_170]                                        ; +0x49, 0x1800b1189\nmov     [rsp+1C8h+var_168], rcx                                        ; +0x4e, 0x1800b118e\nmov     rbp, r9                                                        ; +0x53, 0x1800b1193\nmov     [rsp+1C8h+var_178], 0                                          ; +0x56, 0x1800b1196\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x5f, 0x1800b119f\nmov     r13d, [rsp+1C8h+arg_38]                                        ; +0x64, 0x1800b11a4\nmov     ebx, eax                                                       ; +0x6c, 0x1800b11ac\ntest    eax, eax                                                       ; +0x6e, 0x1800b11ae\njnz     short loc_1800B11DF                                            ; +0x70, 0x1800b11b0\nmov     rcx, [rsp+1C8h+var_170]                                        ; +0x72, 0x1800b11b2\nmov     r9, rbp                                                        ; +0x77, 0x1800b11b7\nmov     dword ptr [rsp+1C8h+var_190], r13d                             ; +0x7a, 0x1800b11ba\nmov     r8, rsi                                                        ; +0x7f, 0x1800b11bf\nmov     [rsp+1C8h+var_198], r12                                        ; +0x82, 0x1800b11c2\nmov     rdx, rdi                                                       ; +0x87, 0x1800b11c7\nmov     [rsp+1C8h+var_1A0], r15                                        ; +0x8a, 0x1800b11ca\nmov     [rsp+1C8h+var_1A8], r14                                        ; +0x8f, 0x1800b11cf\ncall    sub_1800E73C0                                                  ; +0x94, 0x1800b11d4\nmov     ebx, eax                                                       ; +0x99, 0x1800b11d9\ntest    eax, eax                                                       ; +0x9b, 0x1800b11db\njz      short loc_1800B123C                                            ; +0x9d, 0x1800b11dd\nmov     rax, cs:off_1801AED20                                          ; +0x9f, 0x1800b11df\ntest    byte ptr [rax+10h], 80h                                        ; +0xa6, 0x1800b11e6\njz      short loc_1800B123C                                            ; +0xaa, 0x1800b11ea\nmov     [rsp+1C8h+var_188], r13d                                       ; +0xac, 0x1800b11ec\nlea     rcx, [rsp+1C8h+var_158]                                        ; +0xb1, 0x1800b11f1\nmov     [rsp+1C8h+var_190], r12                                        ; +0xb6, 0x1800b11f6\nmov     r9, rsi                                                        ; +0xbb, 0x1800b11fb\nmov     [rsp+1C8h+var_198], r15                                        ; +0xbe, 0x1800b11fe\nmov     r8, rdi                                                        ; +0xc3, 0x1800b1203\nmov     [rsp+1C8h+var_1A0], r14                                        ; +0xc6, 0x1800b1206\nmov     edx, 100h                                                      ; +0xcb, 0x1800b120b\nmov     [rsp+1C8h+var_1A8], rbp                                        ; +0xd0, 0x1800b1210\ncall    sub_1800AB690                                                  ; +0xd5, 0x1800b1215\nmov     r8, [rsp+1C8h+var_168]                                         ; +0xda, 0x1800b121a\nlea     rax, [rsp+1C8h+var_158]                                        ; +0xdf, 0x1800b121f\nlea     r9, aSystemSetfiles; \"System::setFileSystem\"                   ; +0xe4, 0x1800b1224\nmov     [rsp+1C8h+var_1A8], rax                                        ; +0xeb, 0x1800b122b\nmov     edx, 1                                                         ; +0xf0, 0x1800b1230\nmov     ecx, ebx                                                       ; +0xf5, 0x1800b1235\ncall    sub_1800B20E0                                                  ; +0xf7, 0x1800b1237\nmov     rcx, [rsp+1C8h+var_178]                                        ; +0xfc, 0x1800b123c\ntest    rcx, rcx                                                       ; +0x101, 0x1800b1241\njz      short loc_1800B124B                                            ; +0x104, 0x1800b1244\ncall    sub_180102320                                                  ; +0x106, 0x1800b1246\nmov     eax, ebx                                                       ; +0x10b, 0x1800b124b\nmov     rcx, [rsp+1C8h+var_58]                                         ; +0x10d, 0x1800b124d\nxor     rcx, rsp; StackCookie                                          ; +0x115, 0x1800b1255\ncall    __security_check_cookie                                        ; +0x118, 0x1800b1258\nadd     rsp, 188h                                                      ; +0x11d, 0x1800b125d\npop     r15                                                            ; +0x124, 0x1800b1264\npop     r14                                                            ; +0x126, 0x1800b1266\npop     r13                                                            ; +0x128, 0x1800b1268\npop     r12                                                            ; +0x12a, 0x1800b126a\npop     rdi                                                            ; +0x12c, 0x1800b126c\npop     rsi                                                            ; +0x12d, 0x1800b126d\npop     rbp                                                            ; +0x12e, 0x1800b126e\npop     rbx                                                            ; +0x12f, 0x1800b126f\nretn                                                                   ; +0x130, 0x1800b1270", "xrefs": ["FMOD_System_SetFileSystem @ 0x1800c6ebb", "<???> @ 0x180194348", "<???> @ 0x1801fcb4c"], "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"}