{"type": "func", "start": 10965024, "end": 10965164, "name": "ASN1_d2i_fp", "pseudocode": "// \n// ASN1_d2i_fp from 0xa75020 to 0xa750ac (140 bytes)\n// \n// 10 xrefs:\n// > d2i_RSA_PUBKEY_fp @ 0xa5d10c\n// > d2i_DSAPrivateKey_fp @ 0xa5d20c\n// > d2i_DSA_PUBKEY_fp @ 0xa5d250\n// > d2i_EC_PUBKEY_fp @ 0xa5d31c\n// > d2i_ECPrivateKey_fp @ 0xa5d360\n// > d2i_PKCS8_fp @ 0xa5d578\n// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0xa5d600\n// > d2i_PrivateKey_fp @ 0xa5d69c\n// > d2i_PUBKEY_fp @ 0xa5d6e0\n// > <???> @ 0x818ec\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:08:43 +0000\n// \n\nint __fastcall ASN1_d2i_fp(int a1, int (__fastcall *a2)(int, int *), int a3, int a4)\n{\n  void *v8; // r0\n  _DWORD *v9; // r0\n  _DWORD *v10; // r5\n  int v11; // r4\n\n  v8 = BIO_s_file();\n  v9 = BIO_new((int)v8);\n  v10 = v9;\n  if ( v9 )\n  {\n    BIO_ctrl(v9, 106, 0, a3);\n    v11 = ASN1_d2i_bio(a1, a2, (int)v10, a4);\n    BIO_free(v10);\n    return v11;\n  }\n  else\n  {\n    ERR_put_error(13, 109, 7, (int)\"crypto/asn1/a_d2i_fp.c\", 28);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_d2i_fp from 0xa75020 to 0xa750ac (140 bytes)\n; \n; 10 xrefs:\n; > d2i_RSA_PUBKEY_fp @ 0xa5d10c\n; > d2i_DSAPrivateKey_fp @ 0xa5d20c\n; > d2i_DSA_PUBKEY_fp @ 0xa5d250\n; > d2i_EC_PUBKEY_fp @ 0xa5d31c\n; > d2i_ECPrivateKey_fp @ 0xa5d360\n; > d2i_PKCS8_fp @ 0xa5d578\n; > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0xa5d600\n; > d2i_PrivateKey_fp @ 0xa5d69c\n; > d2i_PUBKEY_fp @ 0xa5d6e0\n; > <???> @ 0x818ec\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:08:43 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0xa75020\nSUB             SP, SP, #8                                             ; +0x4, 0xa75024\nMOV             R6, R1                                                 ; +0x8, 0xa75028\nMOV             R8, R2                                                 ; +0xc, 0xa7502c\nMOV             R4, R3                                                 ; +0x10, 0xa75030\nMOV             R7, R0                                                 ; +0x14, 0xa75034\nBL              BIO_s_file                                             ; +0x18, 0xa75038\nBL              BIO_new                                                ; +0x1c, 0xa7503c\nSUBS            R5, R0, #0                                             ; +0x20, 0xa75040\nBEQ             loc_A75084                                             ; +0x24, 0xa75044\nMOV             R3, R8                                                 ; +0x28, 0xa75048\nMOV             R1, #0x6A ; 'j'                                        ; +0x2c, 0xa7504c\nMOV             R2, #0                                                 ; +0x30, 0xa75050\nBL              BIO_ctrl                                               ; +0x34, 0xa75054\nMOV             R3, R4                                                 ; +0x38, 0xa75058\nMOV             R1, R6                                                 ; +0x3c, 0xa7505c\nMOV             R2, R5                                                 ; +0x40, 0xa75060\nMOV             R0, R7                                                 ; +0x44, 0xa75064\nBL              ASN1_d2i_bio                                           ; +0x48, 0xa75068\nMOV             R4, R0                                                 ; +0x4c, 0xa7506c\nMOV             R0, R5                                                 ; +0x50, 0xa75070\nBL              BIO_free                                               ; +0x54, 0xa75074\nMOV             R0, R4                                                 ; +0x58, 0xa75078\nADD             SP, SP, #8                                             ; +0x5c, 0xa7507c\nPOP             {R4-R8,PC}                                             ; +0x60, 0xa75080\nMOV             R3, #0x1C                                              ; +0x64, 0xa75084\nSTR             R3, [SP,#8+var_8]                                      ; +0x68, 0xa75088\nLDR             R3, =(aCryptoAsn1AD2i - 0xA750A4); \"crypto/asn1/a_d2i_fp.c\" ; +0x6c, 0xa7508c\nMOV             R0, #0xD                                               ; +0x70, 0xa75090\nMOV             R1, #0x6D ; 'm'                                        ; +0x74, 0xa75094\nMOV             R2, #7                                                 ; +0x78, 0xa75098\nADD             R3, PC, R3; \"crypto/asn1/a_d2i_fp.c\"                   ; +0x7c, 0xa7509c\nBL              ERR_put_error                                          ; +0x80, 0xa750a0\nMOV             R0, R5                                                 ; +0x84, 0xa750a4\nB               loc_A7507C                                             ; +0x88, 0xa750a8", "xrefs": ["d2i_RSA_PUBKEY_fp @ 0xa5d10c", "d2i_DSAPrivateKey_fp @ 0xa5d20c", "d2i_DSA_PUBKEY_fp @ 0xa5d250", "d2i_EC_PUBKEY_fp @ 0xa5d31c", "d2i_ECPrivateKey_fp @ 0xa5d360", "d2i_PKCS8_fp @ 0xa5d578", "d2i_PKCS8_PRIV_KEY_INFO_fp @ 0xa5d600", "d2i_PrivateKey_fp @ 0xa5d69c", "d2i_PUBKEY_fp @ 0xa5d6e0", "<???> @ 0x818ec"], "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"}