{"type": "func", "start": 8130588, "end": 8130784, "name": "ASN1_TIME_adj", "pseudocode": "// \n// ASN1_TIME_adj from 0x7c101c to 0x7c10e0 (196 bytes)\n// \n// 3 xrefs:\n// > ASN1_TIME_set @ 0x7c10ec\n// > X509_time_adj_ex @ 0x8429a8\n// > <???> @ 0x5e3dc\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_TIME_adj(int a1, int a2, int a3, int a4)\n{\n  int v7; // r6\n  bool v8; // zf\n  int result; // r0\n  int v10; // [sp+Ch] [bp-38h] BYREF\n  _BYTE v11[44]; // [sp+14h] [bp-30h] BYREF\n\n  v10 = a2;\n  v7 = OPENSSL_gmtime(&v10, v11);\n  if ( v7 )\n  {\n    v8 = a4 == 0;\n    if ( !a4 )\n      v8 = a3 == 0;\n    if ( v8 || (result = OPENSSL_gmtime_adj()) != 0 )\n    {\n      if ( (unsigned int)(*(_DWORD *)(v7 + 20) - 50) <= 0x63 )\n        return ASN1_UTCTIME_adj(a1, v10, a3, a4);\n      else\n        return ASN1_GENERALIZEDTIME_adj(a1, v10, a3, a4);\n    }\n  }\n  else\n  {\n    ERR_put_error(13, 217, 173, \"crypto/asn1/a_time.c\", 40);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_TIME_adj from 0x7c101c to 0x7c10e0 (196 bytes)\n; \n; 3 xrefs:\n; > ASN1_TIME_set @ 0x7c10ec\n; > X509_time_adj_ex @ 0x8429a8\n; > <???> @ 0x5e3dc\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, 0x7c101c\nSUB             SP, SP, #0x44                                          ; +0x4, 0x7c1020\nADD             R12, SP, #0x44+var_4                                   ; +0x8, 0x7c1024\nSTR             R1, [R12,#-0x34]!                                      ; +0xc, 0x7c1028\nMOV             R7, R0                                                 ; +0x10, 0x7c102c\nADD             R1, SP, #0x44+var_30                                   ; +0x14, 0x7c1030\nMOV             R0, R12                                                ; +0x18, 0x7c1034\nMOV             R5, R2                                                 ; +0x1c, 0x7c1038\nMOV             R4, R3                                                 ; +0x20, 0x7c103c\nBL              OPENSSL_gmtime                                         ; +0x24, 0x7c1040\nSUBS            R6, R0, #0                                             ; +0x28, 0x7c1044\nBEQ             loc_7C10B8                                             ; +0x2c, 0x7c1048\nCMP             R4, #0                                                 ; +0x30, 0x7c104c\nCMPEQ           R5, #0                                                 ; +0x34, 0x7c1050\nBNE             loc_7C10A0                                             ; +0x38, 0x7c1054\nLDR             R12, [R6,#0x14]                                        ; +0x3c, 0x7c1058\nSUB             R12, R12, #0x32 ; '2'                                  ; +0x40, 0x7c105c\nCMP             R12, #0x63 ; 'c'                                       ; +0x44, 0x7c1060\nBLS             loc_7C1084                                             ; +0x48, 0x7c1064\nMOV             R0, R7                                                 ; +0x4c, 0x7c1068\nMOV             R2, R5                                                 ; +0x50, 0x7c106c\nMOV             R3, R4                                                 ; +0x54, 0x7c1070\nLDR             R1, [SP,#0x44+var_38]                                  ; +0x58, 0x7c1074\nBL              ASN1_GENERALIZEDTIME_adj                               ; +0x5c, 0x7c1078\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x60, 0x7c107c\nPOP             {R4-R7,PC}                                             ; +0x64, 0x7c1080\nMOV             R0, R7                                                 ; +0x68, 0x7c1084\nMOV             R2, R5                                                 ; +0x6c, 0x7c1088\nMOV             R3, R4                                                 ; +0x70, 0x7c108c\nLDR             R1, [SP,#0x44+var_38]                                  ; +0x74, 0x7c1090\nBL              ASN1_UTCTIME_adj                                       ; +0x78, 0x7c1094\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x7c, 0x7c1098\nPOP             {R4-R7,PC}                                             ; +0x80, 0x7c109c\nMOV             R1, R5                                                 ; +0x84, 0x7c10a0\nMOV             R2, R4                                                 ; +0x88, 0x7c10a4\nBL              OPENSSL_gmtime_adj                                     ; +0x8c, 0x7c10a8\nCMP             R0, #0                                                 ; +0x90, 0x7c10ac\nBNE             loc_7C1058                                             ; +0x94, 0x7c10b0\nB               loc_7C107C                                             ; +0x98, 0x7c10b4\nMOV             R3, #0x28 ; '('                                        ; +0x9c, 0x7c10b8\nSTR             R3, [SP,#0x44+var_44]                                  ; +0xa0, 0x7c10bc\nLDR             R3, =(aCryptoAsn1ATim - 0x7C10D8); \"crypto/asn1/a_time.c\" ; +0xa4, 0x7c10c0\nMOV             R0, #0xD                                               ; +0xa8, 0x7c10c4\nMOV             R1, #0xD9                                              ; +0xac, 0x7c10c8\nMOV             R2, #0xAD                                              ; +0xb0, 0x7c10cc\nADD             R3, PC, R3; \"crypto/asn1/a_time.c\"                     ; +0xb4, 0x7c10d0\nBL              ERR_put_error                                          ; +0xb8, 0x7c10d4\nMOV             R0, R6                                                 ; +0xbc, 0x7c10d8\nB               loc_7C107C                                             ; +0xc0, 0x7c10dc", "xrefs": ["ASN1_TIME_set @ 0x7c10ec", "X509_time_adj_ex @ 0x8429a8", "<???> @ 0x5e3dc"], "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"}