{"type": "func", "start": 297854, "end": 297904, "name": "sub_48B7E", "pseudocode": "// \n// sub_48B7E from 0x48b7e to 0x48bb0 (50 bytes)\n// \n// 0 xrefs:\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_48B7E(_DWORD *a1, _DWORD *a2, int a3, int a4)\n{\n  int result; // r0\n  int v7; // r2\n  int v8; // r3\n  int v9; // [sp+4h] [bp-Ch] BYREF\n\n  v9 = a4;\n  result = (*(int (__fastcall **)(_DWORD *, int *))(*a1 + 76))(a1, &v9);\n  if ( !result )\n  {\n    if ( (v9 & 0x10) != 0 )\n    {\n      if ( a2 )\n      {\n        v7 = a1[33];\n        v8 = a1[34];\n        *a2 = a1[32];\n        a2[1] = v7;\n        a2[2] = v8;\n      }\n      return 0;\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_48B7E from 0x48b7e to 0x48bb0 (50 bytes)\n; \n; 0 xrefs:\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            {R2-R5,R7,LR}                                          ; +0x0, 0x48b7e\nADD             R7, SP, #0x10                                          ; +0x2, 0x48b80\nMOV             R5, R0                                                 ; +0x4, 0x48b82\nLDR             R0, [R0]                                               ; +0x6, 0x48b84\nMOV             R4, R1                                                 ; +0x8, 0x48b86\nADD             R1, SP, #8+var_4                                       ; +0xa, 0x48b88\nLDR             R2, [R0,#0x4C]                                         ; +0xc, 0x48b8a\nMOV             R0, R5                                                 ; +0xe, 0x48b8c\nBLX             R2                                                     ; +0x10, 0x48b8e\nCBNZ            R0, loc_48BAC                                          ; +0x12, 0x48b90\nLDRB.W          R0, [SP,#8+var_4]                                      ; +0x14, 0x48b92\nLSLS            R0, R0, #0x1B                                          ; +0x18, 0x48b96\nBMI             loc_48B9E                                              ; +0x1a, 0x48b98\nMOVS            R0, #0x28 ; '('                                        ; +0x1c, 0x48b9a\nB               loc_48BAC                                              ; +0x1e, 0x48b9c\nCBZ             R4, loc_48BAA                                          ; +0x20, 0x48b9e\nADD.W           R0, R5, #0x80                                          ; +0x22, 0x48ba0\nLDM.W           R0, {R1-R3}                                            ; +0x26, 0x48ba4\nSTM             R4!, {R1-R3}                                           ; +0x2a, 0x48ba8\nMOVS            R0, #0                                                 ; +0x2c, 0x48baa\nADD             SP, SP, #8                                             ; +0x2e, 0x48bac\nPOP             {R4,R5,R7,PC}                                          ; +0x30, 0x48bae", "xrefs": [], "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"}