{"type": "func", "start": 8800000, "end": 8800088, "name": "ASN1_TYPE_set1", "pseudocode": "// \n// ASN1_TYPE_set1 from 0x864700 to 0x864758 (88 bytes)\n// \n// 2 xrefs:\n// > X509_ATTRIBUTE_set1_data @ 0x83e1f0\n// > <???> @ 0x66c4c\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_TYPE_set1(_DWORD *a1, int a2, const char **a3)\n{\n  bool v3; // zf\n  int v4; // r4\n  _DWORD *v5; // r5\n\n  v3 = a2 == 1;\n  if ( a2 != 1 )\n    v3 = a3 == nullptr;\n  v4 = a2;\n  if ( v3 )\n    goto LABEL_7;\n  v5 = a1;\n  if ( a2 == 6 )\n  {\n    a3 = OBJ_dup(a3);\n    if ( a3 )\n      goto LABEL_6;\n  }\n  else\n  {\n    a3 = (const char **)ASN1_STRING_dup((int)a3);\n    if ( a3 )\n    {\nLABEL_6:\n      a1 = v5;\n      a2 = v4;\nLABEL_7:\n      ASN1_TYPE_set(a1, a2, (int)a3);\n      return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; ASN1_TYPE_set1 from 0x864700 to 0x864758 (88 bytes)\n; \n; 2 xrefs:\n; > X509_ATTRIBUTE_set1_data @ 0x83e1f0\n; > <???> @ 0x66c4c\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\nCMP             R1, #1                                                 ; +0x0, 0x864700\nCMPNE           R2, #0                                                 ; +0x4, 0x864704\nPUSH            {R3-R5,LR}                                             ; +0x8, 0x864708\nMOV             R4, R1                                                 ; +0xc, 0x86470c\nBEQ             loc_864738                                             ; +0x10, 0x864710\nCMP             R1, #6                                                 ; +0x14, 0x864714\nMOV             R5, R0                                                 ; +0x18, 0x864718\nMOV             R0, R2                                                 ; +0x1c, 0x86471c\nBEQ             loc_864744                                             ; +0x20, 0x864720\nBL              ASN1_STRING_dup                                        ; +0x24, 0x864724\nSUBS            R2, R0, #0                                             ; +0x28, 0x864728\nBEQ             loc_864750                                             ; +0x2c, 0x86472c\nMOV             R0, R5                                                 ; +0x30, 0x864730\nMOV             R1, R4                                                 ; +0x34, 0x864734\nBL              ASN1_TYPE_set                                          ; +0x38, 0x864738\nMOV             R0, #1                                                 ; +0x3c, 0x86473c\nPOP             {R3-R5,PC}                                             ; +0x40, 0x864740\nBL              OBJ_dup                                                ; +0x44, 0x864744\nSUBS            R2, R0, #0                                             ; +0x48, 0x864748\nBNE             loc_864730                                             ; +0x4c, 0x86474c\nMOV             R0, #0                                                 ; +0x50, 0x864750\nPOP             {R3-R5,PC}                                             ; +0x54, 0x864754", "xrefs": ["X509_ATTRIBUTE_set1_data @ 0x83e1f0", "<???> @ 0x66c4c"], "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"}