{"type": "func", "start": 298280, "end": 298330, "name": "sub_48D28", "pseudocode": "// \n// sub_48D28 from 0x48d28 to 0x48d5a (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_48D28(_DWORD *a1, _DWORD *a2, int a3, int a4)\n{\n  int result; // r0\n  int v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a4;\n  result = (*(int (__fastcall **)(_DWORD *, int *))(*a1 + 76))(a1, &v7);\n  if ( !result )\n  {\n    if ( (v7 & 0x10) != 0 )\n    {\n      if ( a2 )\n      {\n        *a2 = a1[46];\n        return 0;\n      }\n      else\n      {\n        return 31;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_48D28 from 0x48d28 to 0x48d5a (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, 0x48d28\nADD             R7, SP, #0x10                                          ; +0x2, 0x48d2a\nMOV             R5, R0                                                 ; +0x4, 0x48d2c\nLDR             R0, [R0]                                               ; +0x6, 0x48d2e\nMOV             R4, R1                                                 ; +0x8, 0x48d30\nADD             R1, SP, #8+var_4                                       ; +0xa, 0x48d32\nLDR             R2, [R0,#0x4C]                                         ; +0xc, 0x48d34\nMOV             R0, R5                                                 ; +0xe, 0x48d36\nBLX             R2                                                     ; +0x10, 0x48d38\nCBNZ            R0, loc_48D56                                          ; +0x12, 0x48d3a\nLDRB.W          R0, [SP,#8+var_4]                                      ; +0x14, 0x48d3c\nLSLS            R0, R0, #0x1B                                          ; +0x18, 0x48d40\nBMI             loc_48D48                                              ; +0x1a, 0x48d42\nMOVS            R0, #0x28 ; '('                                        ; +0x1c, 0x48d44\nB               loc_48D56                                              ; +0x1e, 0x48d46\nCBZ             R4, loc_48D54                                          ; +0x20, 0x48d48\nLDR.W           R0, [R5,#0xB8]                                         ; +0x22, 0x48d4a\nSTR             R0, [R4]                                               ; +0x26, 0x48d4e\nMOVS            R0, #0                                                 ; +0x28, 0x48d50\nB               loc_48D56                                              ; +0x2a, 0x48d52\nMOVS            R0, #0x1F                                              ; +0x2c, 0x48d54\nADD             SP, SP, #8                                             ; +0x2e, 0x48d56\nPOP             {R4,R5,R7,PC}                                          ; +0x30, 0x48d58", "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"}