{"type": "func", "start": 8784072, "end": 8784204, "name": "ASN1_item_d2i_fp", "pseudocode": "// \n// ASN1_item_d2i_fp from 0x8608c8 to 0x86094c (132 bytes)\n// \n// 8 xrefs:\n// > d2i_PKCS12_fp @ 0x826528\n// > d2i_X509_fp @ 0x848334\n// > d2i_X509_CRL_fp @ 0x848394\n// > d2i_PKCS7_fp @ 0x8483f4\n// > d2i_X509_REQ_fp @ 0x848454\n// > d2i_RSAPrivateKey_fp @ 0x8484b4\n// > d2i_RSAPublicKey_fp @ 0x8484e4\n// > <???> @ 0x659fc\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_item_d2i_fp(int a1, int a2, int *a3)\n{\n  void *v6; // r0\n  _DWORD *v7; // r0\n  _DWORD *v8; // r5\n  int v9; // r4\n\n  v6 = BIO_s_file();\n  v7 = BIO_new((int)v6);\n  v8 = v7;\n  if ( v7 )\n  {\n    BIO_ctrl(v7, 106, 0, a2);\n    v9 = ASN1_item_d2i_bio(a1, (int)v8, a3);\n    BIO_free(v8);\n    return v9;\n  }\n  else\n  {\n    ERR_put_error(13, 206, 7, (int)\"crypto/asn1/a_d2i_fp.c\", 83);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_item_d2i_fp from 0x8608c8 to 0x86094c (132 bytes)\n; \n; 8 xrefs:\n; > d2i_PKCS12_fp @ 0x826528\n; > d2i_X509_fp @ 0x848334\n; > d2i_X509_CRL_fp @ 0x848394\n; > d2i_PKCS7_fp @ 0x8483f4\n; > d2i_X509_REQ_fp @ 0x848454\n; > d2i_RSAPrivateKey_fp @ 0x8484b4\n; > d2i_RSAPublicKey_fp @ 0x8484e4\n; > <???> @ 0x659fc\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-R7,LR}                                             ; +0x0, 0x8608c8\nSUB             SP, SP, #0xC                                           ; +0x4, 0x8608cc\nMOV             R7, R1                                                 ; +0x8, 0x8608d0\nMOV             R4, R2                                                 ; +0xc, 0x8608d4\nMOV             R6, R0                                                 ; +0x10, 0x8608d8\nBL              BIO_s_file                                             ; +0x14, 0x8608dc\nBL              BIO_new                                                ; +0x18, 0x8608e0\nSUBS            R5, R0, #0                                             ; +0x1c, 0x8608e4\nBEQ             loc_860924                                             ; +0x20, 0x8608e8\nMOV             R3, R7                                                 ; +0x24, 0x8608ec\nMOV             R1, #0x6A ; 'j'                                        ; +0x28, 0x8608f0\nMOV             R2, #0                                                 ; +0x2c, 0x8608f4\nBL              BIO_ctrl                                               ; +0x30, 0x8608f8\nMOV             R2, R4                                                 ; +0x34, 0x8608fc\nMOV             R1, R5                                                 ; +0x38, 0x860900\nMOV             R0, R6                                                 ; +0x3c, 0x860904\nBL              ASN1_item_d2i_bio                                      ; +0x40, 0x860908\nMOV             R4, R0                                                 ; +0x44, 0x86090c\nMOV             R0, R5                                                 ; +0x48, 0x860910\nBL              BIO_free                                               ; +0x4c, 0x860914\nMOV             R0, R4                                                 ; +0x50, 0x860918\nADD             SP, SP, #0xC                                           ; +0x54, 0x86091c\nPOP             {R4-R7,PC}                                             ; +0x58, 0x860920\nMOV             R3, #0x53 ; 'S'                                        ; +0x5c, 0x860924\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x860928\nLDR             R3, =(aCryptoAsn1AD2i - 0x860944); \"crypto/asn1/a_d2i_fp.c\" ; +0x64, 0x86092c\nMOV             R0, #0xD                                               ; +0x68, 0x860930\nMOV             R1, #0xCE                                              ; +0x6c, 0x860934\nMOV             R2, #7                                                 ; +0x70, 0x860938\nADD             R3, PC, R3; \"crypto/asn1/a_d2i_fp.c\"                   ; +0x74, 0x86093c\nBL              ERR_put_error                                          ; +0x78, 0x860940\nMOV             R0, R5                                                 ; +0x7c, 0x860944\nB               loc_86091C                                             ; +0x80, 0x860948", "xrefs": ["d2i_PKCS12_fp @ 0x826528", "d2i_X509_fp @ 0x848334", "d2i_X509_CRL_fp @ 0x848394", "d2i_PKCS7_fp @ 0x8483f4", "d2i_X509_REQ_fp @ 0x848454", "d2i_RSAPrivateKey_fp @ 0x8484b4", "d2i_RSAPublicKey_fp @ 0x8484e4", "<???> @ 0x659fc"], "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"}