{"type": "func", "start": 328636, "end": 328664, "name": "sub_503BC", "pseudocode": "// \n// sub_503BC from 0x503bc to 0x503d8 (28 bytes)\n// \n// 2 xrefs:\n// > sub_4FE54 @ 0x4ff58\n// > sub_5033C @ 0x5035a\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_503BC(int a1)\n{\n  int result; // r0\n  int v3; // r2\n\n  result = *(_DWORD *)(a1 + 20);\n  v3 = *(_DWORD *)(result + 56);\n  *(_DWORD *)(a1 + 20) = v3;\n  if ( v3 )\n    *(_DWORD *)(v3 + 44) = 0;\n  *(_DWORD *)(result + 56) = 0;\n  *(_DWORD *)(result + 24) &= ~0x20u;\n  return result;\n}", "assembly": "; \n; sub_503BC from 0x503bc to 0x503d8 (28 bytes)\n; \n; 2 xrefs:\n; > sub_4FE54 @ 0x4ff58\n; > sub_5033C @ 0x5035a\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\nMOV             R1, R0                                                 ; +0x0, 0x503bc\nLDR             R0, [R0,#0x14]                                         ; +0x2, 0x503be\nLDR             R2, [R0,#0x38]                                         ; +0x4, 0x503c0\nSTR             R2, [R1,#0x14]                                         ; +0x6, 0x503c2\nCBZ             R2, loc_503CA                                          ; +0x8, 0x503c4\nMOVS            R1, #0                                                 ; +0xa, 0x503c6\nSTR             R1, [R2,#0x2C]                                         ; +0xc, 0x503c8\nMOVS            R1, #0                                                 ; +0xe, 0x503ca\nSTR             R1, [R0,#0x38]                                         ; +0x10, 0x503cc\nLDR             R1, [R0,#0x18]                                         ; +0x12, 0x503ce\nBIC.W           R1, R1, #0x20 ; ' '                                    ; +0x14, 0x503d0\nSTR             R1, [R0,#0x18]                                         ; +0x18, 0x503d4\nBX              LR                                                     ; +0x1a, 0x503d6", "xrefs": ["sub_4FE54 @ 0x4ff58", "sub_5033C @ 0x5035a"], "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"}