{"type": "func", "start": 10550524, "end": 10550584, "name": "ERR_peek_error", "pseudocode": "// \n// ERR_peek_error from 0xa0fcfc to 0xa0fd38 (60 bytes)\n// \n// 8 xrefs:\n// > sub_8539B8 @ 0x853e9c\n// > SSL_get_error @ 0x9ae6c8\n// > SSL_CTX_use_certificate_chain_file @ 0x9b1730\n// > SSL_use_certificate_chain_file @ 0x9b190c\n// > PEM_bytes_read_bio @ 0xa37e04\n// > ASN1_d2i_bio @ 0xa74e38\n// > ASN1_item_d2i_bio @ 0xa752dc\n// > <???> @ 0x6814c\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 ERR_peek_error()\n{\n  int state; // r0\n  int v1; // r3\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 388);\n  if ( v1 == *(_DWORD *)(state + 384) )\n    return 0;\n  else\n    return *(_DWORD *)(state + 4 * ((v1 + 1) % 16 + 16));\n}", "assembly": "; \n; ERR_peek_error from 0xa0fcfc to 0xa0fd38 (60 bytes)\n; \n; 8 xrefs:\n; > sub_8539B8 @ 0x853e9c\n; > SSL_get_error @ 0x9ae6c8\n; > SSL_CTX_use_certificate_chain_file @ 0x9b1730\n; > SSL_use_certificate_chain_file @ 0x9b190c\n; > PEM_bytes_read_bio @ 0xa37e04\n; > ASN1_d2i_bio @ 0xa74e38\n; > ASN1_item_d2i_bio @ 0xa752dc\n; > <???> @ 0x6814c\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            {R3,LR}                                                ; +0x0, 0xa0fcfc\nBL              ERR_get_state                                          ; +0x4, 0xa0fd00\nLDR             R3, [R0,#0x184]                                        ; +0x8, 0xa0fd04\nLDR             R2, [R0,#0x180]                                        ; +0xc, 0xa0fd08\nCMP             R3, R2                                                 ; +0x10, 0xa0fd0c\nADDNE           R3, R3, #1                                             ; +0x14, 0xa0fd10\nMOVNE           R2, R3,ASR#31                                          ; +0x18, 0xa0fd14\nMOVNE           R2, R2,LSR#28                                          ; +0x1c, 0xa0fd18\nADDNE           R3, R3, R2                                             ; +0x20, 0xa0fd1c\nANDNE           R3, R3, #0xF                                           ; +0x24, 0xa0fd20\nRSBNE           R3, R2, R3                                             ; +0x28, 0xa0fd24\nADDNE           R3, R3, #0x10                                          ; +0x2c, 0xa0fd28\nLDRNE           R0, [R0,R3,LSL#2]                                      ; +0x30, 0xa0fd2c\nMOVEQ           R0, #0                                                 ; +0x34, 0xa0fd30\nPOP             {R3,PC}                                                ; +0x38, 0xa0fd34", "xrefs": ["sub_8539B8 @ 0x853e9c", "SSL_get_error @ 0x9ae6c8", "SSL_CTX_use_certificate_chain_file @ 0x9b1730", "SSL_use_certificate_chain_file @ 0x9b190c", "PEM_bytes_read_bio @ 0xa37e04", "ASN1_d2i_bio @ 0xa74e38", "ASN1_item_d2i_bio @ 0xa752dc", "<???> @ 0x6814c"], "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"}