{"type": "func", "start": 299584, "end": 299634, "name": "sub_49240", "pseudocode": "// \n// sub_49240 from 0x49240 to 0x49272 (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_49240(int a1, _DWORD *a2, int a3, int a4)\n{\n  int result; // r0\n  int v6; // [sp+4h] [bp-Ch] BYREF\n\n  v6 = a4;\n  result = (*(int (__fastcall **)(int, int, int *))(*(_DWORD *)a1 + 144))(a1, -2, &v6);\n  if ( !result )\n  {\n    result = sub_A7654(v6, 0, a2, 0);\n    if ( !result )\n    {\n      if ( !*a2 )\n        *a2 = 1;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_49240 from 0x49240 to 0x49272 (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-R4,R6,R7,LR}                                       ; +0x0, 0x49240\nADD             R7, SP, #0x10                                          ; +0x2, 0x49242\nMOV             R4, R1                                                 ; +0x4, 0x49244\nLDR             R1, [R0]                                               ; +0x6, 0x49246\nADD             R2, SP, #8+var_4                                       ; +0x8, 0x49248\nLDR.W           R3, [R1,#0x90]                                         ; +0xa, 0x4924a\nMOV             R1, #0xFFFFFFFE                                        ; +0xe, 0x4924e\nBLX             R3                                                     ; +0x12, 0x49252\nCBNZ            R0, loc_4926E                                          ; +0x14, 0x49254\nLDR             R0, [SP,#8+var_4]                                      ; +0x16, 0x49256\nMOVS            R1, #0                                                 ; +0x18, 0x49258\nMOV             R2, R4                                                 ; +0x1a, 0x4925a\nMOVS            R3, #0                                                 ; +0x1c, 0x4925c\nBL              sub_A7654                                              ; +0x1e, 0x4925e\nCBNZ            R0, loc_4926E                                          ; +0x22, 0x49262\nLDR             R0, [R4]                                               ; +0x24, 0x49264\nCBNZ            R0, loc_4926C                                          ; +0x26, 0x49266\nMOVS            R0, #1                                                 ; +0x28, 0x49268\nSTR             R0, [R4]                                               ; +0x2a, 0x4926a\nMOVS            R0, #0                                                 ; +0x2c, 0x4926c\nADD             SP, SP, #8                                             ; +0x2e, 0x4926e\nPOP             {R4,R6,R7,PC}                                          ; +0x30, 0x49270", "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"}