{"type": "func", "start": 10312732, "end": 10312928, "name": "ASN1_TIME_adj", "pseudocode": "// \n// ASN1_TIME_adj from 0x9d5c1c to 0x9d5ce0 (196 bytes)\n// \n// 3 xrefs:\n// > ASN1_TIME_set @ 0x9d5cec\n// > X509_time_adj_ex @ 0xa575a8\n// > <???> @ 0x77e5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:14 +0000\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 0x9d5c1c to 0x9d5ce0 (196 bytes)\n; \n; 3 xrefs:\n; > ASN1_TIME_set @ 0x9d5cec\n; > X509_time_adj_ex @ 0xa575a8\n; > <???> @ 0x77e5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:14 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x9d5c1c\nSUB             SP, SP, #0x44                                          ; +0x4, 0x9d5c20\nADD             R12, SP, #0x44+var_4                                   ; +0x8, 0x9d5c24\nSTR             R1, [R12,#-0x34]!                                      ; +0xc, 0x9d5c28\nMOV             R7, R0                                                 ; +0x10, 0x9d5c2c\nADD             R1, SP, #0x44+var_30                                   ; +0x14, 0x9d5c30\nMOV             R0, R12                                                ; +0x18, 0x9d5c34\nMOV             R5, R2                                                 ; +0x1c, 0x9d5c38\nMOV             R4, R3                                                 ; +0x20, 0x9d5c3c\nBL              OPENSSL_gmtime                                         ; +0x24, 0x9d5c40\nSUBS            R6, R0, #0                                             ; +0x28, 0x9d5c44\nBEQ             loc_9D5CB8                                             ; +0x2c, 0x9d5c48\nCMP             R4, #0                                                 ; +0x30, 0x9d5c4c\nCMPEQ           R5, #0                                                 ; +0x34, 0x9d5c50\nBNE             loc_9D5CA0                                             ; +0x38, 0x9d5c54\nLDR             R12, [R6,#0x14]                                        ; +0x3c, 0x9d5c58\nSUB             R12, R12, #0x32 ; '2'                                  ; +0x40, 0x9d5c5c\nCMP             R12, #0x63 ; 'c'                                       ; +0x44, 0x9d5c60\nBLS             loc_9D5C84                                             ; +0x48, 0x9d5c64\nMOV             R0, R7                                                 ; +0x4c, 0x9d5c68\nMOV             R2, R5                                                 ; +0x50, 0x9d5c6c\nMOV             R3, R4                                                 ; +0x54, 0x9d5c70\nLDR             R1, [SP,#0x44+var_38]                                  ; +0x58, 0x9d5c74\nBL              ASN1_GENERALIZEDTIME_adj                               ; +0x5c, 0x9d5c78\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x60, 0x9d5c7c\nPOP             {R4-R7,PC}                                             ; +0x64, 0x9d5c80\nMOV             R0, R7                                                 ; +0x68, 0x9d5c84\nMOV             R2, R5                                                 ; +0x6c, 0x9d5c88\nMOV             R3, R4                                                 ; +0x70, 0x9d5c8c\nLDR             R1, [SP,#0x44+var_38]                                  ; +0x74, 0x9d5c90\nBL              ASN1_UTCTIME_adj                                       ; +0x78, 0x9d5c94\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x7c, 0x9d5c98\nPOP             {R4-R7,PC}                                             ; +0x80, 0x9d5c9c\nMOV             R1, R5                                                 ; +0x84, 0x9d5ca0\nMOV             R2, R4                                                 ; +0x88, 0x9d5ca4\nBL              OPENSSL_gmtime_adj                                     ; +0x8c, 0x9d5ca8\nCMP             R0, #0                                                 ; +0x90, 0x9d5cac\nBNE             loc_9D5C58                                             ; +0x94, 0x9d5cb0\nB               loc_9D5C7C                                             ; +0x98, 0x9d5cb4\nMOV             R3, #0x28 ; '('                                        ; +0x9c, 0x9d5cb8\nSTR             R3, [SP,#0x44+var_44]                                  ; +0xa0, 0x9d5cbc\nLDR             R3, =(aCryptoAsn1ATim - 0x9D5CD8); \"crypto/asn1/a_time.c\" ; +0xa4, 0x9d5cc0\nMOV             R0, #0xD                                               ; +0xa8, 0x9d5cc4\nMOV             R1, #0xD9                                              ; +0xac, 0x9d5cc8\nMOV             R2, #0xAD                                              ; +0xb0, 0x9d5ccc\nADD             R3, PC, R3; \"crypto/asn1/a_time.c\"                     ; +0xb4, 0x9d5cd0\nBL              ERR_put_error                                          ; +0xb8, 0x9d5cd4\nMOV             R0, R6                                                 ; +0xbc, 0x9d5cd8\nB               loc_9D5C7C                                             ; +0xc0, 0x9d5cdc", "xrefs": ["ASN1_TIME_set @ 0x9d5cec", "X509_time_adj_ex @ 0xa575a8", "<???> @ 0x77e5c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}