{"type": "func", "start": 786800, "end": 786858, "name": "sub_C0170", "pseudocode": "// \n// sub_C0170 from 0xc0170 to 0xc01aa (58 bytes)\n// \n// 2 xrefs:\n// > FMOD_OS_File_Open @ 0xc0128\n// > FMOD_OS_File_Close @ 0xc01c8\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\nint __fastcall sub_C0170(_DWORD *a1)\n{\n  (*(void (__fastcall **)(_DWORD *))*a1)(a1);\n  return sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1);\n}", "assembly": "; \n; sub_C0170 from 0xc0170 to 0xc01aa (58 bytes)\n; \n; 2 xrefs:\n; > FMOD_OS_File_Open @ 0xc0128\n; > FMOD_OS_File_Close @ 0xc01c8\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            {R4-R7,LR}                                             ; +0x0, 0xc0170\nADD             R7, SP, #0xC                                           ; +0x2, 0xc0172\nPUSH.W          {R11}                                                  ; +0x4, 0xc0174\nSUB             SP, SP, #8                                             ; +0x8, 0xc0178\nMOV             R6, R0                                                 ; +0xa, 0xc017a\nLDR             R0, [R0]                                               ; +0xc, 0xc017c\nMOV             R5, R1                                                 ; +0xe, 0xc017e\nMOV             R4, R2                                                 ; +0x10, 0xc0180\nLDR             R1, [R0]                                               ; +0x12, 0xc0182\nMOV             R0, R6                                                 ; +0x14, 0xc0184\nBLX             R1                                                     ; +0x16, 0xc0186\nLDR             R0, =(off_E6144 - 0xC0194)                             ; +0x18, 0xc0188\nMOVS            R1, #1                                                 ; +0x1a, 0xc018a\nMOV             R2, R5                                                 ; +0x1c, 0xc018c\nMOV             R3, R4                                                 ; +0x1e, 0xc018e\nADD             R0, PC; off_E6144                                      ; +0x20, 0xc0190\nLDR             R0, [R0]; off_E8000                                    ; +0x22, 0xc0192\nLDR             R0, [R0]; dword_F2488                                  ; +0x24, 0xc0194\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x26, 0xc0196\nSTR             R1, [SP,#8+var_8]                                      ; +0x2a, 0xc019a\nMOV             R1, R6                                                 ; +0x2c, 0xc019c\nBL              sub_BD7AC                                              ; +0x2e, 0xc019e\nADD             SP, SP, #8                                             ; +0x32, 0xc01a2\nPOP.W           {R11}                                                  ; +0x34, 0xc01a4\nPOP             {R4-R7,PC}                                             ; +0x38, 0xc01a8", "xrefs": ["FMOD_OS_File_Open @ 0xc0128", "FMOD_OS_File_Close @ 0xc01c8"], "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"}