{"type": "func", "start": 8787076, "end": 8787212, "name": "ASN1_i2d_fp", "pseudocode": "// \n// ASN1_i2d_fp from 0x861484 to 0x86150c (136 bytes)\n// \n// 10 xrefs:\n// > i2d_RSA_PUBKEY_fp @ 0x848540\n// > i2d_DSAPrivateKey_fp @ 0x848628\n// > i2d_DSA_PUBKEY_fp @ 0x84866c\n// > i2d_EC_PUBKEY_fp @ 0x848738\n// > i2d_ECPrivateKey_fp @ 0x84877c\n// > i2d_PKCS8_fp @ 0x848994\n// > i2d_PKCS8_PRIV_KEY_INFO_fp @ 0x848a1c\n// > i2d_PrivateKey_fp @ 0x848a74\n// > i2d_PUBKEY_fp @ 0x848ab8\n// > <???> @ 0x67e9c\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_i2d_fp(int (__fastcall *a1)(int, void **), 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_i2d_bio(a1, (int)v8, a3);\n    BIO_free(v8);\n    return v9;\n  }\n  else\n  {\n    ERR_put_error(13, 117, 7, (int)\"crypto/asn1/a_i2d_fp.c\", 24);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_i2d_fp from 0x861484 to 0x86150c (136 bytes)\n; \n; 10 xrefs:\n; > i2d_RSA_PUBKEY_fp @ 0x848540\n; > i2d_DSAPrivateKey_fp @ 0x848628\n; > i2d_DSA_PUBKEY_fp @ 0x84866c\n; > i2d_EC_PUBKEY_fp @ 0x848738\n; > i2d_ECPrivateKey_fp @ 0x84877c\n; > i2d_PKCS8_fp @ 0x848994\n; > i2d_PKCS8_PRIV_KEY_INFO_fp @ 0x848a1c\n; > i2d_PrivateKey_fp @ 0x848a74\n; > i2d_PUBKEY_fp @ 0x848ab8\n; > <???> @ 0x67e9c\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, 0x861484\nSUB             SP, SP, #0xC                                           ; +0x4, 0x861488\nMOV             R7, R1                                                 ; +0x8, 0x86148c\nMOV             R4, R2                                                 ; +0xc, 0x861490\nMOV             R6, R0                                                 ; +0x10, 0x861494\nBL              BIO_s_file                                             ; +0x14, 0x861498\nBL              BIO_new                                                ; +0x18, 0x86149c\nSUBS            R5, R0, #0                                             ; +0x1c, 0x8614a0\nBEQ             loc_8614E0                                             ; +0x20, 0x8614a4\nMOV             R3, R7                                                 ; +0x24, 0x8614a8\nMOV             R1, #0x6A ; 'j'                                        ; +0x28, 0x8614ac\nMOV             R2, #0                                                 ; +0x2c, 0x8614b0\nBL              BIO_ctrl                                               ; +0x30, 0x8614b4\nMOV             R2, R4                                                 ; +0x34, 0x8614b8\nMOV             R1, R5                                                 ; +0x38, 0x8614bc\nMOV             R0, R6                                                 ; +0x3c, 0x8614c0\nBL              ASN1_i2d_bio                                           ; +0x40, 0x8614c4\nMOV             R4, R0                                                 ; +0x44, 0x8614c8\nMOV             R0, R5                                                 ; +0x48, 0x8614cc\nBL              BIO_free                                               ; +0x4c, 0x8614d0\nMOV             R0, R4                                                 ; +0x50, 0x8614d4\nADD             SP, SP, #0xC                                           ; +0x54, 0x8614d8\nPOP             {R4-R7,PC}                                             ; +0x58, 0x8614dc\nMOV             R3, #0x18                                              ; +0x5c, 0x8614e0\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0x8614e4\nLDR             R3, =(aCryptoAsn1AI2d - 0x861500); \"crypto/asn1/a_i2d_fp.c\" ; +0x64, 0x8614e8\nMOV             R0, #0xD                                               ; +0x68, 0x8614ec\nMOV             R1, #0x75 ; 'u'                                        ; +0x6c, 0x8614f0\nMOV             R2, #7                                                 ; +0x70, 0x8614f4\nADD             R3, PC, R3; \"crypto/asn1/a_i2d_fp.c\"                   ; +0x74, 0x8614f8\nBL              ERR_put_error                                          ; +0x78, 0x8614fc\nMOV             R0, R5                                                 ; +0x7c, 0x861500\nADD             SP, SP, #0xC                                           ; +0x80, 0x861504\nPOP             {R4-R7,PC}                                             ; +0x84, 0x861508", "xrefs": ["i2d_RSA_PUBKEY_fp @ 0x848540", "i2d_DSAPrivateKey_fp @ 0x848628", "i2d_DSA_PUBKEY_fp @ 0x84866c", "i2d_EC_PUBKEY_fp @ 0x848738", "i2d_ECPrivateKey_fp @ 0x84877c", "i2d_PKCS8_fp @ 0x848994", "i2d_PKCS8_PRIV_KEY_INFO_fp @ 0x848a1c", "i2d_PrivateKey_fp @ 0x848a74", "i2d_PUBKEY_fp @ 0x848ab8", "<???> @ 0x67e9c"], "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"}