{"type": "func", "start": 339628, "end": 339676, "name": "sub_52EAC", "pseudocode": "// \n// sub_52EAC from 0x52eac to 0x52edc (48 bytes)\n// \n// 2 xrefs:\n// > sub_52A58 @ 0x52ae4\n// > sub_52A58 @ 0x52cae\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_52EAC(__int64 *a1, __int64 *a2)\n{\n  int result; // r0\n  __int64 v5; // kr00_8\n  __int64 v6; // kr08_8\n\n  result = sub_53460(a1, *((_DWORD *)a1 + 1) + 1);\n  if ( !result )\n  {\n    v5 = *a2;\n    v6 = *a1;\n    *(_DWORD *)(*(_DWORD *)a1 + 8 * *((_DWORD *)a1 + 1)) = *(_DWORD *)a2;\n    *(_DWORD *)(v6 + 8 * HIDWORD(v6) + 4) = HIDWORD(v5);\n    ++*((_DWORD *)a1 + 1);\n  }\n  return result;\n}", "assembly": "; \n; sub_52EAC from 0x52eac to 0x52edc (48 bytes)\n; \n; 2 xrefs:\n; > sub_52A58 @ 0x52ae4\n; > sub_52A58 @ 0x52cae\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            {R4,R5,R7,LR}                                          ; +0x0, 0x52eac\nADD             R7, SP, #8                                             ; +0x2, 0x52eae\nMOV             R4, R0                                                 ; +0x4, 0x52eb0\nLDR             R0, [R0,#4]                                            ; +0x6, 0x52eb2\nMOV             R5, R1                                                 ; +0x8, 0x52eb4\nADDS            R1, R0, #1                                             ; +0xa, 0x52eb6\nMOV             R0, R4                                                 ; +0xc, 0x52eb8\nBL              sub_53460                                              ; +0xe, 0x52eba\nCBZ             R0, loc_52EC2                                          ; +0x12, 0x52ebe\nPOP             {R4,R5,R7,PC}                                          ; +0x14, 0x52ec0\nLDRD.W          R1, R2, [R5]                                           ; +0x16, 0x52ec2\nLDRD.W          R3, R5, [R4]                                           ; +0x1a, 0x52ec6\nSTR.W           R1, [R3,R5,LSL#3]                                      ; +0x1e, 0x52eca\nADD.W           R1, R3, R5,LSL#3                                       ; +0x22, 0x52ece\nSTR             R2, [R1,#4]                                            ; +0x26, 0x52ed2\nLDR             R1, [R4,#4]                                            ; +0x28, 0x52ed4\nADDS            R1, #1                                                 ; +0x2a, 0x52ed6\nSTR             R1, [R4,#4]                                            ; +0x2c, 0x52ed8\nPOP             {R4,R5,R7,PC}                                          ; +0x2e, 0x52eda", "xrefs": ["sub_52A58 @ 0x52ae4", "sub_52A58 @ 0x52cae"], "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"}