{"type": "func", "start": 14290516, "end": 14290572, "name": "ERR_peek_last_error", "pseudocode": "// \n// ERR_peek_last_error from 0xda0e54 to 0xda0e8c (56 bytes)\n// \n// 12 xrefs:\n// > ssl_build_cert_chain @ 0xd3b87c\n// > ssl_build_cert_chain @ 0xd3b8cc\n// > SSL_CTX_use_certificate_chain_file @ 0xd455f8\n// > SSL_use_certificate_chain_file @ 0xd457c4\n// > CONF_modules_load_file @ 0xd827c8\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd98934\n// > X509_load_cert_file @ 0xde4aa4\n// > X509_load_crl_file @ 0xde4c58\n// > sub_E24408 @ 0xe24460\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xe327d8\n// > PEM_X509_INFO_read_bio @ 0xe648a4\n// > <???> @ 0x9dcb0\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\n__int64 ERR_peek_last_error()\n{\n  __int64 state; // x0\n  int v1; // w1\n\n  state = ERR_get_state();\n  v1 = *(_DWORD *)(state + 576);\n  if ( *(_DWORD *)(state + 580) == v1 )\n    return 0;\n  else\n    return *(_QWORD *)(state + 8LL * v1 + 64);\n}", "assembly": "; \n; ERR_peek_last_error from 0xda0e54 to 0xda0e8c (56 bytes)\n; \n; 12 xrefs:\n; > ssl_build_cert_chain @ 0xd3b87c\n; > ssl_build_cert_chain @ 0xd3b8cc\n; > SSL_CTX_use_certificate_chain_file @ 0xd455f8\n; > SSL_use_certificate_chain_file @ 0xd457c4\n; > CONF_modules_load_file @ 0xd827c8\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd98934\n; > X509_load_cert_file @ 0xde4aa4\n; > X509_load_crl_file @ 0xde4c58\n; > sub_E24408 @ 0xe24460\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xe327d8\n; > PEM_X509_INFO_read_bio @ 0xe648a4\n; > <???> @ 0x9dcb0\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0xda0e54\nMOV             X29, SP                                                ; +0x4, 0xda0e58\nBL              ERR_get_state                                          ; +0x8, 0xda0e5c\nLDR             W1, [X0,#0x240]                                        ; +0xc, 0xda0e60\nLDR             W2, [X0,#0x244]                                        ; +0x10, 0xda0e64\nCMP             W2, W1                                                 ; +0x14, 0xda0e68\nB.EQ            loc_DA0E80                                             ; +0x18, 0xda0e6c\nADD             X0, X0, W1,SXTW#3                                      ; +0x1c, 0xda0e70\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x20, 0xda0e74\nLDR             X0, [X0,#0x40]                                         ; +0x24, 0xda0e78\nRET                                                                    ; +0x28, 0xda0e7c\nMOV             X0, #0                                                 ; +0x2c, 0xda0e80\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x30, 0xda0e84\nRET                                                                    ; +0x34, 0xda0e88", "xrefs": ["ssl_build_cert_chain @ 0xd3b87c", "ssl_build_cert_chain @ 0xd3b8cc", "SSL_CTX_use_certificate_chain_file @ 0xd455f8", "SSL_use_certificate_chain_file @ 0xd457c4", "CONF_modules_load_file @ 0xd827c8", "ec_GFp_simple_set_compressed_coordinates @ 0xd98934", "X509_load_cert_file @ 0xde4aa4", "X509_load_crl_file @ 0xde4c58", "sub_E24408 @ 0xe24460", "ec_GF2m_simple_set_compressed_coordinates @ 0xe327d8", "PEM_X509_INFO_read_bio @ 0xe648a4", "<???> @ 0x9dcb0"], "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"}