{"type": "func", "start": 10550488, "end": 10550524, "name": "ERR_peek_last_error", "pseudocode": "// \n// ERR_peek_last_error from 0xa0fcd8 to 0xa0fcfc (36 bytes)\n// \n// 12 xrefs:\n// > ssl_build_cert_chain @ 0x9a72ac\n// > ssl_build_cert_chain @ 0x9a72fc\n// > SSL_CTX_use_certificate_chain_file @ 0x9b17c0\n// > SSL_use_certificate_chain_file @ 0x9b199c\n// > CONF_modules_load_file @ 0x9ef924\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa07208\n// > X509_load_cert_file @ 0xa517e4\n// > X509_load_crl_file @ 0xa519b0\n// > sub_A8E894 @ 0xa8e8e4\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dbc8\n// > PEM_X509_INFO_read_bio @ 0xacf41c\n// > <???> @ 0x74f6c\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_last_error()\n{\n  int state; // r0\n  int v1; // r3\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 384);\n  if ( *(_DWORD *)(state + 388) == v1 )\n    return 0;\n  else\n    return *(_DWORD *)(state + 4 * (v1 + 16));\n}", "assembly": "; \n; ERR_peek_last_error from 0xa0fcd8 to 0xa0fcfc (36 bytes)\n; \n; 12 xrefs:\n; > ssl_build_cert_chain @ 0x9a72ac\n; > ssl_build_cert_chain @ 0x9a72fc\n; > SSL_CTX_use_certificate_chain_file @ 0x9b17c0\n; > SSL_use_certificate_chain_file @ 0x9b199c\n; > CONF_modules_load_file @ 0x9ef924\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa07208\n; > X509_load_cert_file @ 0xa517e4\n; > X509_load_crl_file @ 0xa519b0\n; > sub_A8E894 @ 0xa8e8e4\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dbc8\n; > PEM_X509_INFO_read_bio @ 0xacf41c\n; > <???> @ 0x74f6c\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, 0xa0fcd8\nBL              ERR_get_state                                          ; +0x4, 0xa0fcdc\nLDR             R3, [R0,#0x180]                                        ; +0x8, 0xa0fce0\nLDR             R2, [R0,#0x184]                                        ; +0xc, 0xa0fce4\nCMP             R2, R3                                                 ; +0x10, 0xa0fce8\nADDNE           R3, R3, #0x10                                          ; +0x14, 0xa0fcec\nLDRNE           R0, [R0,R3,LSL#2]                                      ; +0x18, 0xa0fcf0\nMOVEQ           R0, #0                                                 ; +0x1c, 0xa0fcf4\nPOP             {R3,PC}                                                ; +0x20, 0xa0fcf8", "xrefs": ["ssl_build_cert_chain @ 0x9a72ac", "ssl_build_cert_chain @ 0x9a72fc", "SSL_CTX_use_certificate_chain_file @ 0x9b17c0", "SSL_use_certificate_chain_file @ 0x9b199c", "CONF_modules_load_file @ 0x9ef924", "ec_GFp_simple_set_compressed_coordinates @ 0xa07208", "X509_load_cert_file @ 0xa517e4", "X509_load_crl_file @ 0xa519b0", "sub_A8E894 @ 0xa8e8e4", "ec_GF2m_simple_set_compressed_coordinates @ 0xa9dbc8", "PEM_X509_INFO_read_bio @ 0xacf41c", "<???> @ 0x74f6c"], "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"}