{"type": "func", "start": 8132912, "end": 8133392, "name": "ASN1_UTCTIME_print", "pseudocode": "// \n// ASN1_UTCTIME_print from 0x7c1930 to 0x7c1b10 (480 bytes)\n// \n// 5 xrefs:\n// > ASN1_TIME_print @ 0x7c13f0\n// > sub_867C80 @ 0x868704\n// > sub_867C80 @ 0x868978\n// > ASN1_item_print @ 0x869364\n// > <???> @ 0x5e52c\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\nbool __fastcall ASN1_UTCTIME_print(int a1, int *a2, int a3, int a4)\n{\n  int v4; // r4\n  unsigned __int8 *v5; // r2\n  int v6; // r12\n  int v7; // lr\n  int v8; // r5\n  int v9; // r8\n  int v10; // r6\n  int v11; // r9\n  int v12; // r7\n  int v13; // r10\n  int v14; // r1\n  unsigned int v15; // r12\n  int v16; // r9\n  int v17; // r10\n  int v18; // lr\n  int v19; // r1\n  const char *v20; // r2\n  const char *v21; // r12\n  int v23; // lr\n  int v24; // r2\n  int v25; // [sp+1Ch] [bp-8h]\n\n  v4 = *a2;\n  v5 = (unsigned __int8 *)a2[2];\n  if ( *a2 <= 9 )\n    goto LABEL_20;\n  a4 = v5[v4 - 1];\n  v25 = a4;\n  if ( (unsigned __int8)(*v5 - 48) > 9u )\n    goto LABEL_20;\n  a4 = v5[1];\n  if ( (unsigned int)(a4 - 48) > 9 )\n    goto LABEL_20;\n  v6 = v5[2];\n  if ( (unsigned int)(v6 - 48) > 9 )\n    goto LABEL_20;\n  v7 = v5[3];\n  if ( (unsigned int)(v7 - 48) > 9 )\n    goto LABEL_20;\n  v8 = v5[4];\n  if ( (unsigned int)(v8 - 48) > 9 )\n    goto LABEL_20;\n  v9 = v5[5];\n  if ( (unsigned int)(v9 - 48) > 9 )\n    goto LABEL_20;\n  v10 = v5[6];\n  if ( (unsigned int)(v10 - 48) > 9 )\n    goto LABEL_20;\n  v11 = v5[7];\n  if ( (unsigned int)(v11 - 48) > 9 )\n    goto LABEL_20;\n  v12 = v5[8];\n  if ( (unsigned int)(v12 - 48) > 9 )\n    goto LABEL_20;\n  v13 = v5[9];\n  if ( (unsigned int)(v13 - 48) > 9 )\n    goto LABEL_20;\n  a4 -= 48;\n  v14 = a4 + 10 * (*v5 - 48);\n  v15 = v7 + 10 * (v6 - 48) - 49;\n  if ( v14 <= 49 )\n    v14 += 100;\n  if ( v15 > 0xB )\n  {\nLABEL_20:\n    BIO_write(a1, \"Bad time value\", 14, a4);\n    return 0;\n  }\n  else\n  {\n    v16 = v11 - 48 + 10 * (v10 - 48);\n    v17 = v13 - 48 + 10 * (v12 - 48);\n    if ( v4 <= 11\n      || (v23 = v5[10] - 48, (unsigned __int8)(v5[10] - 48) > 9u)\n      || (v24 = v5[11] - 48, (unsigned __int8)v24 > 9u) )\n    {\n      v18 = 0;\n    }\n    else\n    {\n      v18 = v24 + 10 * v23;\n    }\n    v19 = v14 + 1900;\n    v20 = asn1_mon[v15];\n    if ( v25 == 90 )\n      v21 = \" GMT\";\n    else\n      v21 = &byte_9B1912;\n    return BIO_printf(a1, \"%s %2d %02d:%02d:%02d %d%s\", v20, v9 - 48 + 10 * (v8 - 48), v16, v17, v18, v19, v21) > 0;\n  }\n}", "assembly": "; \n; ASN1_UTCTIME_print from 0x7c1930 to 0x7c1b10 (480 bytes)\n; \n; 5 xrefs:\n; > ASN1_TIME_print @ 0x7c13f0\n; > sub_867C80 @ 0x868704\n; > sub_867C80 @ 0x868978\n; > ASN1_item_print @ 0x869364\n; > <???> @ 0x5e52c\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-R11,LR}                                            ; +0x0, 0x7c1930\nLDR             R4, [R1]                                               ; +0x4, 0x7c1934\nSUB             SP, SP, #0x24                                          ; +0x8, 0x7c1938\nCMP             R4, #9                                                 ; +0xc, 0x7c193c\nLDR             R2, [R1,#8]                                            ; +0x10, 0x7c1940\nBLE             loc_7C1AB4                                             ; +0x14, 0x7c1944\nLDRB            R1, [R2]                                               ; +0x18, 0x7c1948\nADD             R3, R2, R4                                             ; +0x1c, 0x7c194c\nSUB             R1, R1, #0x30 ; '0'                                    ; +0x20, 0x7c1950\nAND             R12, R1, #0xFF                                         ; +0x24, 0x7c1954\nLDRB            R3, [R3,#-1]                                           ; +0x28, 0x7c1958\nCMP             R12, #9                                                ; +0x2c, 0x7c195c\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x30, 0x7c1960\nBHI             loc_7C1AB4                                             ; +0x34, 0x7c1964\nLDRB            R3, [R2,#1]                                            ; +0x38, 0x7c1968\nSUB             R12, R3, #0x30 ; '0'                                   ; +0x3c, 0x7c196c\nCMP             R12, #9                                                ; +0x40, 0x7c1970\nBHI             loc_7C1AB4                                             ; +0x44, 0x7c1974\nLDRB            R12, [R2,#2]                                           ; +0x48, 0x7c1978\nSUB             LR, R12, #0x30 ; '0'                                   ; +0x4c, 0x7c197c\nCMP             LR, #9                                                 ; +0x50, 0x7c1980\nBHI             loc_7C1AB4                                             ; +0x54, 0x7c1984\nLDRB            LR, [R2,#3]                                            ; +0x58, 0x7c1988\nSUB             R5, LR, #0x30 ; '0'                                    ; +0x5c, 0x7c198c\nCMP             R5, #9                                                 ; +0x60, 0x7c1990\nBHI             loc_7C1AB4                                             ; +0x64, 0x7c1994\nLDRB            R5, [R2,#4]                                            ; +0x68, 0x7c1998\nSUB             R6, R5, #0x30 ; '0'                                    ; +0x6c, 0x7c199c\nCMP             R6, #9                                                 ; +0x70, 0x7c19a0\nBHI             loc_7C1AB4                                             ; +0x74, 0x7c19a4\nLDRB            R8, [R2,#5]                                            ; +0x78, 0x7c19a8\nSUB             R6, R8, #0x30 ; '0'                                    ; +0x7c, 0x7c19ac\nCMP             R6, #9                                                 ; +0x80, 0x7c19b0\nBHI             loc_7C1AB4                                             ; +0x84, 0x7c19b4\nLDRB            R6, [R2,#6]                                            ; +0x88, 0x7c19b8\nSUB             R7, R6, #0x30 ; '0'                                    ; +0x8c, 0x7c19bc\nCMP             R7, #9                                                 ; +0x90, 0x7c19c0\nBHI             loc_7C1AB4                                             ; +0x94, 0x7c19c4\nLDRB            R9, [R2,#7]                                            ; +0x98, 0x7c19c8\nSUB             R7, R9, #0x30 ; '0'                                    ; +0x9c, 0x7c19cc\nCMP             R7, #9                                                 ; +0xa0, 0x7c19d0\nBHI             loc_7C1AB4                                             ; +0xa4, 0x7c19d4\nLDRB            R7, [R2,#8]                                            ; +0xa8, 0x7c19d8\nSUB             R10, R7, #0x30 ; '0'                                   ; +0xac, 0x7c19dc\nCMP             R10, #9                                                ; +0xb0, 0x7c19e0\nBHI             loc_7C1AB4                                             ; +0xb4, 0x7c19e4\nLDRB            R10, [R2,#9]                                           ; +0xb8, 0x7c19e8\nSUB             R11, R10, #0x30 ; '0'                                  ; +0xbc, 0x7c19ec\nCMP             R11, #9                                                ; +0xc0, 0x7c19f0\nBHI             loc_7C1AB4                                             ; +0xc4, 0x7c19f4\nSUB             R12, R12, #0x30 ; '0'                                  ; +0xc8, 0x7c19f8\nADD             R1, R1, R1,LSL#2                                       ; +0xcc, 0x7c19fc\nSUB             R3, R3, #0x30 ; '0'                                    ; +0xd0, 0x7c1a00\nADD             R12, R12, R12,LSL#2                                    ; +0xd4, 0x7c1a04\nADD             R1, R3, R1,LSL#1                                       ; +0xd8, 0x7c1a08\nADD             R12, LR, R12,LSL#1                                     ; +0xdc, 0x7c1a0c\nCMP             R1, #0x31 ; '1'                                        ; +0xe0, 0x7c1a10\nSUB             R12, R12, #0x31 ; '1'                                  ; +0xe4, 0x7c1a14\nADDLE           R1, R1, #0x64 ; 'd'                                    ; +0xe8, 0x7c1a18\nCMP             R12, #0xB                                              ; +0xec, 0x7c1a1c\nBHI             loc_7C1AB4                                             ; +0xf0, 0x7c1a20\nSUB             R5, R5, #0x30 ; '0'                                    ; +0xf4, 0x7c1a24\nSUB             R6, R6, #0x30 ; '0'                                    ; +0xf8, 0x7c1a28\nSUB             R7, R7, #0x30 ; '0'                                    ; +0xfc, 0x7c1a2c\nADD             R5, R5, R5,LSL#2                                       ; +0x100, 0x7c1a30\nADD             R6, R6, R6,LSL#2                                       ; +0x104, 0x7c1a34\nADD             R7, R7, R7,LSL#2                                       ; +0x108, 0x7c1a38\nSUB             R3, R8, #0x30 ; '0'                                    ; +0x10c, 0x7c1a3c\nSUB             R9, R9, #0x30 ; '0'                                    ; +0x110, 0x7c1a40\nSUB             R10, R10, #0x30 ; '0'                                  ; +0x114, 0x7c1a44\nCMP             R4, #0xB                                               ; +0x118, 0x7c1a48\nADD             R3, R3, R5,LSL#1                                       ; +0x11c, 0x7c1a4c\nADD             R9, R9, R6,LSL#1                                       ; +0x120, 0x7c1a50\nADD             R10, R10, R7,LSL#1                                     ; +0x124, 0x7c1a54\nBGT             loc_7C1AD0                                             ; +0x128, 0x7c1a58\nMOV             LR, #0                                                 ; +0x12c, 0x7c1a5c\nLDR             R2, =(_asn1_mon_ptr - 0x7C1A70)                        ; +0x130, 0x7c1a60\nLDR             R4, [SP,#0x24+var_8]                                   ; +0x134, 0x7c1a64\nLDR             R2, [PC,R2]; _asn1_mon                                 ; +0x138, 0x7c1a68\nADD             R1, R1, #0x760                                         ; +0x13c, 0x7c1a6c\nCMP             R4, #0x5A ; 'Z'                                        ; +0x140, 0x7c1a70\nADD             R1, R1, #0xC                                           ; +0x144, 0x7c1a74\nLDR             R2, [R2,R12,LSL#2]                                     ; +0x148, 0x7c1a78\nBEQ             loc_7C1B04                                             ; +0x14c, 0x7c1a7c\nLDR             R12, =(byte_9B1912 - 0x7C1A8C)                         ; +0x150, 0x7c1a80\nADD             R12, PC, R12; byte_9B1912                              ; +0x154, 0x7c1a84\nSTR             R1, [SP,#0x24+var_18]                                  ; +0x158, 0x7c1a88\nLDR             R1, =(aS2d02d02d02dDS - 0x7C1AA0); \"%s %2d %02d:%02d:%02d %d%s\" ; +0x15c, 0x7c1a8c\nSTMEA           SP, {R9,R10,LR}                                        ; +0x160, 0x7c1a90\nSTR             R12, [SP,#0x24+var_14]                                 ; +0x164, 0x7c1a94\nADD             R1, PC, R1; \"%s %2d %02d:%02d:%02d %d%s\"               ; +0x168, 0x7c1a98\nBL              BIO_printf                                             ; +0x16c, 0x7c1a9c\nCMP             R0, #0                                                 ; +0x170, 0x7c1aa0\nMOVLE           R0, #0                                                 ; +0x174, 0x7c1aa4\nMOVGT           R0, #1                                                 ; +0x178, 0x7c1aa8\nADD             SP, SP, #0x24 ; '$'                                    ; +0x17c, 0x7c1aac\nPOP             {R4-R11,PC}                                            ; +0x180, 0x7c1ab0\nLDR             R1, =(aBadTimeValue - 0x7C1AC4); \"Bad time value\"      ; +0x184, 0x7c1ab4\nMOV             R2, #0xE                                               ; +0x188, 0x7c1ab8\nADD             R1, PC, R1; \"Bad time value\"                           ; +0x18c, 0x7c1abc\nBL              BIO_write                                              ; +0x190, 0x7c1ac0\nMOV             R0, #0                                                 ; +0x194, 0x7c1ac4\nADD             SP, SP, #0x24 ; '$'                                    ; +0x198, 0x7c1ac8\nPOP             {R4-R11,PC}                                            ; +0x19c, 0x7c1acc\nLDRB            LR, [R2,#0xA]                                          ; +0x1a0, 0x7c1ad0\nSUB             LR, LR, #0x30 ; '0'                                    ; +0x1a4, 0x7c1ad4\nAND             R4, LR, #0xFF                                          ; +0x1a8, 0x7c1ad8\nCMP             R4, #9                                                 ; +0x1ac, 0x7c1adc\nBHI             loc_7C1A5C                                             ; +0x1b0, 0x7c1ae0\nLDRB            R2, [R2,#0xB]                                          ; +0x1b4, 0x7c1ae4\nSUB             R2, R2, #0x30 ; '0'                                    ; +0x1b8, 0x7c1ae8\nAND             R4, R2, #0xFF                                          ; +0x1bc, 0x7c1aec\nCMP             R4, #9                                                 ; +0x1c0, 0x7c1af0\nADDLS           LR, LR, LR,LSL#2                                       ; +0x1c4, 0x7c1af4\nADDLS           LR, R2, LR,LSL#1                                       ; +0x1c8, 0x7c1af8\nBLS             loc_7C1A60                                             ; +0x1cc, 0x7c1afc\nB               loc_7C1A5C                                             ; +0x1d0, 0x7c1b00\nLDR             R12, =(aGmt_0 - 0x7C1B10); \" GMT\"                      ; +0x1d4, 0x7c1b04\nADD             R12, PC, R12; \" GMT\"                                   ; +0x1d8, 0x7c1b08\nB               loc_7C1A88                                             ; +0x1dc, 0x7c1b0c", "xrefs": ["ASN1_TIME_print @ 0x7c13f0", "sub_867C80 @ 0x868704", "sub_867C80 @ 0x868978", "ASN1_item_print @ 0x869364", "<???> @ 0x5e52c"], "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"}