{"type": "func", "start": 297784, "end": 297854, "name": "sub_48B38", "pseudocode": "// \n// sub_48B38 from 0x48b38 to 0x48b7e (70 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_48B38(_DWORD *a1, int *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        result = sub_488B0(a2);\n        if ( !result )\n        {\n          v7 = a2[1];\n          v8 = a2[2];\n          a1[32] = *a2;\n          a1[33] = v7;\n          a1[34] = v8;\n          a1[10] |= 4u;\n          return 0;\n        }\n      }\n      else\n      {\n        return 31;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_48B38 from 0x48b38 to 0x48b7e (70 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, 0x48b38\nADD             R7, SP, #0x10                                          ; +0x2, 0x48b3a\nMOV             R4, R0                                                 ; +0x4, 0x48b3c\nLDR             R0, [R0]                                               ; +0x6, 0x48b3e\nMOV             R5, R1                                                 ; +0x8, 0x48b40\nADD             R1, SP, #8+var_4                                       ; +0xa, 0x48b42\nLDR             R2, [R0,#0x4C]                                         ; +0xc, 0x48b44\nMOV             R0, R4                                                 ; +0xe, 0x48b46\nBLX             R2                                                     ; +0x10, 0x48b48\nCBNZ            R0, loc_48B7A                                          ; +0x12, 0x48b4a\nLDRB.W          R0, [SP,#8+var_4]                                      ; +0x14, 0x48b4c\nLSLS            R0, R0, #0x1B                                          ; +0x18, 0x48b50\nBMI             loc_48B58                                              ; +0x1a, 0x48b52\nMOVS            R0, #0x28 ; '('                                        ; +0x1c, 0x48b54\nB               loc_48B7A                                              ; +0x1e, 0x48b56\nCBZ             R5, loc_48B78                                          ; +0x20, 0x48b58\nMOV             R0, R5                                                 ; +0x22, 0x48b5a\nBL              sub_488B0                                              ; +0x24, 0x48b5c\nCBNZ            R0, loc_48B7A                                          ; +0x28, 0x48b60\nLDM.W           R5, {R1-R3}                                            ; +0x2a, 0x48b62\nADD.W           R0, R4, #0x80                                          ; +0x2e, 0x48b66\nSTM             R0!, {R1-R3}                                           ; +0x32, 0x48b6a\nLDR             R0, [R4,#0x28]                                         ; +0x34, 0x48b6c\nORR.W           R0, R0, #4                                             ; +0x36, 0x48b6e\nSTR             R0, [R4,#0x28]                                         ; +0x3a, 0x48b72\nMOVS            R0, #0                                                 ; +0x3c, 0x48b74\nB               loc_48B7A                                              ; +0x3e, 0x48b76\nMOVS            R0, #0x1F                                              ; +0x40, 0x48b78\nADD             SP, SP, #8                                             ; +0x42, 0x48b7a\nPOP             {R4,R5,R7,PC}                                          ; +0x44, 0x48b7c", "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"}