{"type": "func", "start": 8369380, "end": 8369456, "name": "ERR_set_error_data", "pseudocode": "// \n// ERR_set_error_data from 0x7fb4e4 to 0x7fb530 (76 bytes)\n// \n// 2 xrefs:\n// > ERR_add_error_vdata @ 0x7fb5ec\n// > <???> @ 0x629cc\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 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 0x7fb4e4 to 0x7fb530 (76 bytes)\n; \n; 2 xrefs:\n; > ERR_add_error_vdata @ 0x7fb5ec\n; > <???> @ 0x629cc\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-R6,LR}                                             ; +0x0, 0x7fb4e4\nMOV             R6, R0                                                 ; +0x4, 0x7fb4e8\nMOV             R5, R1                                                 ; +0x8, 0x7fb4ec\nBL              ERR_get_state                                          ; +0xc, 0x7fb4f0\nLDR             R4, [R0,#0x180]                                        ; +0x10, 0x7fb4f4\nCMP             R4, #0                                                 ; +0x14, 0x7fb4f8\nMOVEQ           R4, #0xF                                               ; +0x18, 0x7fb4fc\nADD             R4, R0, R4,LSL#2                                       ; +0x1c, 0x7fb500\nLDR             R3, [R4,#0xC0]                                         ; +0x20, 0x7fb504\nTST             R3, #1                                                 ; +0x24, 0x7fb508\nBEQ             loc_7FB524                                             ; +0x28, 0x7fb50c\nLDR             R1, =(aCryptoErrErrC - 0x7FB520); \"crypto/err/err.c\"   ; +0x2c, 0x7fb510\nLDR             R0, [R4,#0x80]                                         ; +0x30, 0x7fb514\nADD             R1, PC, R1; \"crypto/err/err.c\"                         ; +0x34, 0x7fb518\nLDR             R2, =0x2B6                                             ; +0x38, 0x7fb51c\nBL              CRYPTO_free                                            ; +0x3c, 0x7fb520\nSTR             R6, [R4,#0x80]                                         ; +0x40, 0x7fb524\nSTR             R5, [R4,#0xC0]                                         ; +0x44, 0x7fb528\nPOP             {R4-R6,PC}                                             ; +0x48, 0x7fb52c", "xrefs": ["ERR_add_error_vdata @ 0x7fb5ec", "<???> @ 0x629cc"], "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"}