{"type": "func", "start": 362376, "end": 362438, "name": "sub_58788", "pseudocode": "// \n// sub_58788 from 0x58788 to 0x587c6 (62 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setPluginPath @ 0xb7bb4\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_58788(int a1, int a2)\n{\n  int v5; // r0\n\n  if ( sub_BE198(a2) > 255 )\n    return 31;\n  sub_BE220(a1 + 68276, a2, 256);\n  v5 = *(_DWORD *)(a1 + 68272);\n  if ( v5 )\n    sub_50F44(v5, a1 + 68276);\n  return 0;\n}", "assembly": "; \n; sub_58788 from 0x58788 to 0x587c6 (62 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setPluginPath @ 0xb7bb4\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, 0x58788\nADD             R7, SP, #0xC                                           ; +0x2, 0x5878a\nPUSH.W          {R11}                                                  ; +0x4, 0x5878c\nMOV             R4, R0                                                 ; +0x8, 0x58790\nMOV             R0, R1                                                 ; +0xa, 0x58792\nMOV             R6, R1                                                 ; +0xc, 0x58794\nBL              sub_BE198                                              ; +0xe, 0x58796\nCMP             R0, #0xFF                                              ; +0x12, 0x5879a\nBLE             loc_587A2                                              ; +0x14, 0x5879c\nMOVS            R0, #0x1F                                              ; +0x16, 0x5879e\nB               loc_587C0                                              ; +0x18, 0x587a0\nLDR             R0, =0x10AB4                                           ; +0x1a, 0x587a2\nMOV             R1, R6                                                 ; +0x1c, 0x587a4\nMOV.W           R2, #0x100                                             ; +0x1e, 0x587a6\nADDS            R5, R4, R0                                             ; +0x22, 0x587aa\nMOV             R0, R5                                                 ; +0x24, 0x587ac\nBL              sub_BE220                                              ; +0x26, 0x587ae\nLDR             R0, =0x10AB0                                           ; +0x2a, 0x587b2\nLDR             R0, [R4,R0]                                            ; +0x2c, 0x587b4\nCBZ             R0, loc_587BE                                          ; +0x2e, 0x587b6\nMOV             R1, R5                                                 ; +0x30, 0x587b8\nBL              sub_50F44                                              ; +0x32, 0x587ba\nMOVS            R0, #0                                                 ; +0x36, 0x587be\nPOP.W           {R11}                                                  ; +0x38, 0x587c0\nPOP             {R4-R7,PC}                                             ; +0x3c, 0x587c4", "xrefs": ["FMOD::System::setPluginPath @ 0xb7bb4"], "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"}