{"type": "func", "start": 8808696, "end": 8808796, "name": "ASN1_item_unpack", "pseudocode": "// \n// ASN1_item_unpack from 0x8668f8 to 0x86695c (100 bytes)\n// \n// 7 xrefs:\n// > OCSP_response_get1_basic @ 0x81dcc4\n// > PKCS12_SAFEBAG_get1_cert @ 0x825d7c\n// > PKCS12_SAFEBAG_get1_crl @ 0x825dc8\n// > ASN1_TYPE_unpack_sequence @ 0x864870\n// > PKCS12_unpack_p7data @ 0x8bb2b0\n// > PKCS12_unpack_authsafes @ 0x8bb550\n// > <???> @ 0x6483c\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_unpack(int *a1, int a2)\n{\n  int v2; // r2\n  int result; // r0\n  unsigned __int8 *v4; // [sp+Ch] [bp-4h] BYREF\n\n  v2 = *a1;\n  v4 = (unsigned __int8 *)a1[2];\n  result = ASN1_item_d2i(nullptr, &v4, v2, a2);\n  if ( !result )\n  {\n    ERR_put_error(13, 199, 110, (int)\"crypto/asn1/asn_pack.c\", 60);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_item_unpack from 0x8668f8 to 0x86695c (100 bytes)\n; \n; 7 xrefs:\n; > OCSP_response_get1_basic @ 0x81dcc4\n; > PKCS12_SAFEBAG_get1_cert @ 0x825d7c\n; > PKCS12_SAFEBAG_get1_crl @ 0x825dc8\n; > ASN1_TYPE_unpack_sequence @ 0x864870\n; > PKCS12_unpack_p7data @ 0x8bb2b0\n; > PKCS12_unpack_authsafes @ 0x8bb550\n; > <???> @ 0x6483c\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,LR}                                                ; +0x0, 0x8668f8\nSUB             SP, SP, #0x10                                          ; +0x4, 0x8668fc\nLDR             R12, [R0,#8]                                           ; +0x8, 0x866900\nMOV             R3, R1                                                 ; +0xc, 0x866904\nADD             R1, SP, #0x10+var_s0                                   ; +0x10, 0x866908\nLDR             R2, [R0]                                               ; +0x14, 0x86690c\nSTR             R12, [R1,#-4]!                                         ; +0x18, 0x866910\nMOV             R0, #0                                                 ; +0x1c, 0x866914\nBL              ASN1_item_d2i                                          ; +0x20, 0x866918\nSUBS            R4, R0, #0                                             ; +0x24, 0x86691c\nBEQ             loc_866930                                             ; +0x28, 0x866920\nMOV             R0, R4                                                 ; +0x2c, 0x866924\nADD             SP, SP, #0x10                                          ; +0x30, 0x866928\nPOP             {R4,PC}                                                ; +0x34, 0x86692c\nMOV             R3, #0x3C ; '<'                                        ; +0x38, 0x866930\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3c, 0x866934\nLDR             R3, =(aCryptoAsn1AsnP - 0x866950); \"crypto/asn1/asn_pack.c\" ; +0x40, 0x866938\nMOV             R0, #0xD                                               ; +0x44, 0x86693c\nMOV             R1, #0xC7                                              ; +0x48, 0x866940\nMOV             R2, #0x6E ; 'n'                                        ; +0x4c, 0x866944\nADD             R3, PC, R3; \"crypto/asn1/asn_pack.c\"                   ; +0x50, 0x866948\nBL              ERR_put_error                                          ; +0x54, 0x86694c\nMOV             R0, R4                                                 ; +0x58, 0x866950\nADD             SP, SP, #0x10                                          ; +0x5c, 0x866954\nPOP             {R4,PC}                                                ; +0x60, 0x866958", "xrefs": ["OCSP_response_get1_basic @ 0x81dcc4", "PKCS12_SAFEBAG_get1_cert @ 0x825d7c", "PKCS12_SAFEBAG_get1_crl @ 0x825dc8", "ASN1_TYPE_unpack_sequence @ 0x864870", "PKCS12_unpack_p7data @ 0x8bb2b0", "PKCS12_unpack_authsafes @ 0x8bb550", "<???> @ 0x6483c"], "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"}