{"type": "func", "start": 547828, "end": 547880, "name": "sub_85BF4", "pseudocode": "// \n// sub_85BF4 from 0x85bf4 to 0x85c28 (52 bytes)\n// \n// 1 xrefs:\n// > sub_853A2 @ 0x853a8\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_85BF4(int a1, int a2, _DWORD *a3, int *a4)\n{\n  unsigned __int16 *v4; // r1\n  int v5; // r0\n\n  if ( a3 )\n    *a3 = 0;\n  if ( a4 )\n  {\n    *a4 = 64;\n    v4 = *(unsigned __int16 **)(a1 + 380);\n    if ( v4 && (*v4 | 2) != 3 )\n    {\n      v5 = v4[9];\n      if ( !v4[9] )\n        return 0;\n    }\n    else if ( *(_DWORD *)(a1 + 96) == 2 )\n    {\n      v5 = 64;\n    }\n    else\n    {\n      v5 = 0;\n    }\n    *a4 = v5;\n  }\n  return 0;\n}", "assembly": "; \n; sub_85BF4 from 0x85bf4 to 0x85c28 (52 bytes)\n; \n; 1 xrefs:\n; > sub_853A2 @ 0x853a8\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\nCBZ             R2, loc_85BFA                                          ; +0x0, 0x85bf4\nMOVS            R1, #0                                                 ; +0x2, 0x85bf6\nSTR             R1, [R2]                                               ; +0x4, 0x85bf8\nCBZ             R3, loc_85C1C                                          ; +0x6, 0x85bfa\nMOVS            R1, #0x40 ; '@'                                        ; +0x8, 0x85bfc\nSTR             R1, [R3]                                               ; +0xa, 0x85bfe\nLDR.W           R1, [R0,#0x17C]                                        ; +0xc, 0x85c00\nCBZ             R1, loc_85C10                                          ; +0x10, 0x85c04\nLDRH            R2, [R1]                                               ; +0x12, 0x85c06\nORR.W           R2, R2, #2                                             ; +0x14, 0x85c08\nCMP             R2, #3                                                 ; +0x18, 0x85c0c\nBNE             loc_85C20                                              ; +0x1a, 0x85c0e\nLDR             R0, [R0,#0x60]                                         ; +0x1c, 0x85c10\nCMP             R0, #2                                                 ; +0x1e, 0x85c12\nITE NE                                                                 ; +0x20, 0x85c14\nMOVNE           R0, #0                                                 ; +0x22, 0x85c16\nMOVEQ           R0, #0x40 ; '@'                                        ; +0x24, 0x85c18\nSTR             R0, [R3]                                               ; +0x26, 0x85c1a\nMOVS            R0, #0                                                 ; +0x28, 0x85c1c\nBX              LR                                                     ; +0x2a, 0x85c1e\nLDRH            R0, [R1,#0x12]                                         ; +0x2c, 0x85c20\nCMP             R0, #0                                                 ; +0x2e, 0x85c22\nBNE             loc_85C1A                                              ; +0x30, 0x85c24\nB               loc_85C1C                                              ; +0x32, 0x85c26", "xrefs": ["sub_853A2 @ 0x853a8"], "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"}