{"type": "func", "start": 10551524, "end": 10551600, "name": "ERR_set_error_data", "pseudocode": "// \n// ERR_set_error_data from 0xa100e4 to 0xa10130 (76 bytes)\n// \n// 2 xrefs:\n// > ERR_add_error_vdata @ 0xa101ec\n// > <???> @ 0x7c44c\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 12:07:45 +0000\n// \n\nint __fastcall ERR_set_error_data(int a1, int a2)\n{\n  int result; // r0\n  int v5; // r4\n  int v6; // r4\n\n  result = ERR_get_state();\n  v5 = *(_DWORD *)(result + 384);\n  if ( !v5 )\n    v5 = 15;\n  v6 = result + 4 * v5;\n  if ( (*(_DWORD *)(v6 + 192) & 1) != 0 )\n    result = CRYPTO_free(*(_DWORD *)(v6 + 128), \"crypto/err/err.c\", 694);\n  *(_DWORD *)(v6 + 128) = a1;\n  *(_DWORD *)(v6 + 192) = a2;\n  return result;\n}", "assembly": "; \n; ERR_set_error_data from 0xa100e4 to 0xa10130 (76 bytes)\n; \n; 2 xrefs:\n; > ERR_add_error_vdata @ 0xa101ec\n; > <???> @ 0x7c44c\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 12:07:45 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0xa100e4\nMOV             R6, R0                                                 ; +0x4, 0xa100e8\nMOV             R5, R1                                                 ; +0x8, 0xa100ec\nBL              ERR_get_state                                          ; +0xc, 0xa100f0\nLDR             R4, [R0,#0x180]                                        ; +0x10, 0xa100f4\nCMP             R4, #0                                                 ; +0x14, 0xa100f8\nMOVEQ           R4, #0xF                                               ; +0x18, 0xa100fc\nADD             R4, R0, R4,LSL#2                                       ; +0x1c, 0xa10100\nLDR             R3, [R4,#0xC0]                                         ; +0x20, 0xa10104\nTST             R3, #1                                                 ; +0x24, 0xa10108\nBEQ             loc_A10124                                             ; +0x28, 0xa1010c\nLDR             R1, =(aCryptoErrErrC - 0xA10120); \"crypto/err/err.c\"   ; +0x2c, 0xa10110\nLDR             R0, [R4,#0x80]                                         ; +0x30, 0xa10114\nADD             R1, PC, R1; \"crypto/err/err.c\"                         ; +0x34, 0xa10118\nLDR             R2, =0x2B6                                             ; +0x38, 0xa1011c\nBL              CRYPTO_free                                            ; +0x3c, 0xa10120\nSTR             R6, [R4,#0x80]                                         ; +0x40, 0xa10124\nSTR             R5, [R4,#0xC0]                                         ; +0x44, 0xa10128\nPOP             {R4-R6,PC}                                             ; +0x48, 0xa1012c", "xrefs": ["ERR_add_error_vdata @ 0xa101ec", "<???> @ 0x7c44c"], "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"}