{"type": "func", "start": 547880, "end": 548006, "name": "sub_85C28", "pseudocode": "// \n// sub_85C28 from 0x85c28 to 0x85ca6 (126 bytes)\n// \n// 1 xrefs:\n// > sub_853C0 @ 0x853c8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:20 +0000\n// \n\nint __fastcall sub_85C28(int a1, int a2, int a3, int a4, int a5, _DWORD *a6)\n{\n  int v6; // r2\n  int v7; // r2\n  unsigned __int16 *v8; // r2\n  int v9; // r1\n  bool v10; // zf\n\n  v6 = a6[5];\n  if ( v6 == 15 )\n  {\n    v8 = (unsigned __int16 *)a6[95];\n    *(_DWORD *)(a1 + 380) = v8;\n    v9 = *v8;\n    v10 = v9 == 105;\n    if ( v9 != 105 )\n      v10 = v9 == 17;\n    if ( v10 )\n    {\n      *(_DWORD *)(a1 + 332) = v8[6];\n      *(_DWORD *)(a1 + 324) = v8[9];\n    }\n    if ( (*(_BYTE *)(a1 + 209) & 2) == 0 || (v9 | 2) == 3 )\n      return 0;\n    return 19;\n  }\n  if ( v6 != 5 )\n    return 19;\n  v7 = 0;\n  *(_DWORD *)(a1 + 332) = 0;\n  *(_WORD *)(a1 + 340) = 1;\n  *(_DWORD *)(a1 + 380) = a1 + 340;\n  if ( *(_DWORD *)(a6[56] + 36) == 7 )\n  {\n    *(_WORD *)(a1 + 340) = 17;\n    *(_DWORD *)(a1 + 324) = 64;\n    *(_DWORD *)(a1 + 332) = 36 * a2;\n    return 0;\n  }\n  return v7;\n}", "assembly": "; \n; sub_85C28 from 0x85c28 to 0x85ca6 (126 bytes)\n; \n; 1 xrefs:\n; > sub_853C0 @ 0x853c8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:20 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x85c28\nADD             R7, SP, #8                                             ; +0x2, 0x85c2a\nLDR             R3, [R7,#-8+arg_4]                                     ; +0x4, 0x85c2c\nLDR             R2, [R3,#0x14]                                         ; +0x6, 0x85c2e\nCMP             R2, #0xF                                               ; +0x8, 0x85c30\nBEQ             loc_85C6E                                              ; +0xa, 0x85c32\nCMP             R2, #5                                                 ; +0xc, 0x85c34\nBNE             loc_85CA0                                              ; +0xe, 0x85c36\nMOVS            R2, #0                                                 ; +0x10, 0x85c38\nMOVS            R4, #1                                                 ; +0x12, 0x85c3a\nSTR.W           R2, [R0,#0x14C]                                        ; +0x14, 0x85c3c\nSTRH.W          R4, [R0,#0x154]                                        ; +0x18, 0x85c40\nADD.W           R4, R0, #0x154                                         ; +0x1c, 0x85c44\nSTR.W           R4, [R0,#0x17C]                                        ; +0x20, 0x85c48\nLDR.W           R3, [R3,#0xE0]                                         ; +0x24, 0x85c4c\nLDR             R3, [R3,#0x24]                                         ; +0x28, 0x85c50\nCMP             R3, #7                                                 ; +0x2a, 0x85c52\nBNE             loc_85CA2                                              ; +0x2c, 0x85c54\nADD.W           R1, R1, R1,LSL#3                                       ; +0x2e, 0x85c56\nMOVS            R2, #0x11                                              ; +0x32, 0x85c5a\nSTRH.W          R2, [R0,#0x154]                                        ; +0x34, 0x85c5c\nMOVS            R2, #0x40 ; '@'                                        ; +0x38, 0x85c60\nLSLS            R1, R1, #2                                             ; +0x3a, 0x85c62\nSTR.W           R2, [R0,#0x144]                                        ; +0x3c, 0x85c64\nSTR.W           R1, [R0,#0x14C]                                        ; +0x40, 0x85c68\nB               loc_85C9C                                              ; +0x44, 0x85c6c\nLDR.W           R2, [R3,#0x17C]                                        ; +0x46, 0x85c6e\nSTR.W           R2, [R0,#0x17C]                                        ; +0x4a, 0x85c72\nLDRH            R1, [R2]                                               ; +0x4e, 0x85c76\nCMP             R1, #0x69 ; 'i'                                        ; +0x50, 0x85c78\nIT NE                                                                  ; +0x52, 0x85c7a\nCMPNE           R1, #0x11                                              ; +0x54, 0x85c7c\nBNE             loc_85C8C                                              ; +0x56, 0x85c7e\nLDRH            R3, [R2,#0xC]                                          ; +0x58, 0x85c80\nSTR.W           R3, [R0,#0x14C]                                        ; +0x5a, 0x85c82\nLDRH            R2, [R2,#0x12]                                         ; +0x5e, 0x85c86\nSTR.W           R2, [R0,#0x144]                                        ; +0x60, 0x85c88\nLDRB.W          R0, [R0,#0xD1]                                         ; +0x64, 0x85c8c\nLSLS            R0, R0, #0x1E                                          ; +0x68, 0x85c90\nBPL             loc_85C9C                                              ; +0x6a, 0x85c92\nORR.W           R0, R1, #2                                             ; +0x6c, 0x85c94\nCMP             R0, #3                                                 ; +0x70, 0x85c98\nBNE             loc_85CA0                                              ; +0x72, 0x85c9a\nMOVS            R2, #0                                                 ; +0x74, 0x85c9c\nB               loc_85CA2                                              ; +0x76, 0x85c9e\nMOVS            R2, #0x13                                              ; +0x78, 0x85ca0\nMOV             R0, R2                                                 ; +0x7a, 0x85ca2\nPOP             {R4,R6,R7,PC}                                          ; +0x7c, 0x85ca4", "xrefs": ["sub_853C0 @ 0x853c8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}