{"type": "func", "start": 8782880, "end": 8783020, "name": "ASN1_d2i_fp", "pseudocode": "// \n// ASN1_d2i_fp from 0x860420 to 0x8604ac (140 bytes)\n// \n// 10 xrefs:\n// > d2i_RSA_PUBKEY_fp @ 0x84850c\n// > d2i_DSAPrivateKey_fp @ 0x84860c\n// > d2i_DSA_PUBKEY_fp @ 0x848650\n// > d2i_EC_PUBKEY_fp @ 0x84871c\n// > d2i_ECPrivateKey_fp @ 0x848760\n// > d2i_PKCS8_fp @ 0x848978\n// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x848a00\n// > d2i_PrivateKey_fp @ 0x848a9c\n// > d2i_PUBKEY_fp @ 0x848ae0\n// > <???> @ 0x67e6c\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 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 0x860420 to 0x8604ac (140 bytes)\n; \n; 10 xrefs:\n; > d2i_RSA_PUBKEY_fp @ 0x84850c\n; > d2i_DSAPrivateKey_fp @ 0x84860c\n; > d2i_DSA_PUBKEY_fp @ 0x848650\n; > d2i_EC_PUBKEY_fp @ 0x84871c\n; > d2i_ECPrivateKey_fp @ 0x848760\n; > d2i_PKCS8_fp @ 0x848978\n; > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x848a00\n; > d2i_PrivateKey_fp @ 0x848a9c\n; > d2i_PUBKEY_fp @ 0x848ae0\n; > <???> @ 0x67e6c\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-R8,LR}                                             ; +0x0, 0x860420\nSUB             SP, SP, #8                                             ; +0x4, 0x860424\nMOV             R6, R1                                                 ; +0x8, 0x860428\nMOV             R8, R2                                                 ; +0xc, 0x86042c\nMOV             R4, R3                                                 ; +0x10, 0x860430\nMOV             R7, R0                                                 ; +0x14, 0x860434\nBL              BIO_s_file                                             ; +0x18, 0x860438\nBL              BIO_new                                                ; +0x1c, 0x86043c\nSUBS            R5, R0, #0                                             ; +0x20, 0x860440\nBEQ             loc_860484                                             ; +0x24, 0x860444\nMOV             R3, R8                                                 ; +0x28, 0x860448\nMOV             R1, #0x6A ; 'j'                                        ; +0x2c, 0x86044c\nMOV             R2, #0                                                 ; +0x30, 0x860450\nBL              BIO_ctrl                                               ; +0x34, 0x860454\nMOV             R3, R4                                                 ; +0x38, 0x860458\nMOV             R1, R6                                                 ; +0x3c, 0x86045c\nMOV             R2, R5                                                 ; +0x40, 0x860460\nMOV             R0, R7                                                 ; +0x44, 0x860464\nBL              ASN1_d2i_bio                                           ; +0x48, 0x860468\nMOV             R4, R0                                                 ; +0x4c, 0x86046c\nMOV             R0, R5                                                 ; +0x50, 0x860470\nBL              BIO_free                                               ; +0x54, 0x860474\nMOV             R0, R4                                                 ; +0x58, 0x860478\nADD             SP, SP, #8                                             ; +0x5c, 0x86047c\nPOP             {R4-R8,PC}                                             ; +0x60, 0x860480\nMOV             R3, #0x1C                                              ; +0x64, 0x860484\nSTR             R3, [SP,#8+var_8]                                      ; +0x68, 0x860488\nLDR             R3, =(aCryptoAsn1AD2i - 0x8604A4); \"crypto/asn1/a_d2i_fp.c\" ; +0x6c, 0x86048c\nMOV             R0, #0xD                                               ; +0x70, 0x860490\nMOV             R1, #0x6D ; 'm'                                        ; +0x74, 0x860494\nMOV             R2, #7                                                 ; +0x78, 0x860498\nADD             R3, PC, R3; \"crypto/asn1/a_d2i_fp.c\"                   ; +0x7c, 0x86049c\nBL              ERR_put_error                                          ; +0x80, 0x8604a0\nMOV             R0, R5                                                 ; +0x84, 0x8604a4\nB               loc_86047C                                             ; +0x88, 0x8604a8", "xrefs": ["d2i_RSA_PUBKEY_fp @ 0x84850c", "d2i_DSAPrivateKey_fp @ 0x84860c", "d2i_DSA_PUBKEY_fp @ 0x848650", "d2i_EC_PUBKEY_fp @ 0x84871c", "d2i_ECPrivateKey_fp @ 0x848760", "d2i_PKCS8_fp @ 0x848978", "d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x848a00", "d2i_PrivateKey_fp @ 0x848a9c", "d2i_PUBKEY_fp @ 0x848ae0", "<???> @ 0x67e6c"], "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"}