{"type": "func", "start": 8785644, "end": 8785764, "name": "ASN1_GENERALIZEDTIME_set_string", "pseudocode": "// \n// ASN1_GENERALIZEDTIME_set_string from 0x860eec to 0x860f64 (120 bytes)\n// \n// 4 xrefs:\n// > OCSP_crlID_new @ 0x81e634\n// > OCSP_archive_cutoff_new @ 0x81e72c\n// > SCT_print @ 0x8cfe88\n// > <???> @ 0x64bec\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_GENERALIZEDTIME_set_string(signed int *a1, char *a2)\n{\n  int v5[4]; // [sp+0h] [bp-10h] BYREF\n\n  v5[1] = 24;\n  v5[2] = (int)a2;\n  v5[0] = strlen(a2);\n  if ( !ASN1_GENERALIZEDTIME_check(v5) )\n    return 0;\n  if ( !a1 )\n    return 1;\n  if ( !ASN1_STRING_set(a1, a2, v5[0]) )\n    return 0;\n  a1[1] = 24;\n  return 1;\n}", "assembly": "; \n; ASN1_GENERALIZEDTIME_set_string from 0x860eec to 0x860f64 (120 bytes)\n; \n; 4 xrefs:\n; > OCSP_crlID_new @ 0x81e634\n; > OCSP_archive_cutoff_new @ 0x81e72c\n; > SCT_print @ 0x8cfe88\n; > <???> @ 0x64bec\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-R6,LR}                                             ; +0x0, 0x860eec\nMOV             R5, R0                                                 ; +0x4, 0x860ef0\nSUB             SP, SP, #0x10                                          ; +0x8, 0x860ef4\nMOV             R0, R1; char *                                         ; +0xc, 0x860ef8\nMOV             R6, #0x18                                              ; +0x10, 0x860efc\nMOV             R4, R1                                                 ; +0x14, 0x860f00\nSTR             R6, [SP,#0x10+var_C]                                   ; +0x18, 0x860f04\nBL              strlen                                                 ; +0x1c, 0x860f08\nSTR             R4, [SP,#0x10+var_8]                                   ; +0x20, 0x860f0c\nSTR             R0, [SP,#0x10+var_10]                                  ; +0x24, 0x860f10\nMOV             R0, SP                                                 ; +0x28, 0x860f14\nBL              ASN1_GENERALIZEDTIME_check                             ; +0x2c, 0x860f18\nCMP             R0, #0                                                 ; +0x30, 0x860f1c\nBEQ             loc_860F58                                             ; +0x34, 0x860f20\nCMP             R5, #0                                                 ; +0x38, 0x860f24\nMOVEQ           R0, #1                                                 ; +0x3c, 0x860f28\nBEQ             loc_860F50                                             ; +0x40, 0x860f2c\nMOV             R1, R4; void *                                         ; +0x44, 0x860f30\nMOV             R0, R5; int                                            ; +0x48, 0x860f34\nLDR             R2, [SP,#0x10+var_10]                                  ; +0x4c, 0x860f38\nBL              ASN1_STRING_set                                        ; +0x50, 0x860f3c\nCMP             R0, #0                                                 ; +0x54, 0x860f40\nSTRNE           R6, [R5,#4]                                            ; +0x58, 0x860f44\nMOVNE           R0, #1                                                 ; +0x5c, 0x860f48\nBEQ             loc_860F58                                             ; +0x60, 0x860f4c\nADD             SP, SP, #0x10                                          ; +0x64, 0x860f50\nPOP             {R4-R6,PC}                                             ; +0x68, 0x860f54\nMOV             R0, #0                                                 ; +0x6c, 0x860f58\nADD             SP, SP, #0x10                                          ; +0x70, 0x860f5c\nPOP             {R4-R6,PC}                                             ; +0x74, 0x860f60", "xrefs": ["OCSP_crlID_new @ 0x81e634", "OCSP_archive_cutoff_new @ 0x81e72c", "SCT_print @ 0x8cfe88", "<???> @ 0x64bec"], "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"}