{"type": "func", "start": 8868676, "end": 8868860, "name": "CMS_get0_eContentType", "pseudocode": "// \n// CMS_get0_eContentType from 0x875344 to 0x8753fc (184 bytes)\n// \n// 2 xrefs:\n// > SMIME_write_CMS @ 0x874448\n// > <???> @ 0x6a2ec\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 CMS_get0_eContentType(int *a1)\n{\n  char *v2; // r0\n  int v4; // r3\n\n  v2 = OBJ_obj2nid(*a1);\n  if ( v2 == (_BYTE *)&dword_18 + 1 )\n    goto LABEL_13;\n  if ( (int)v2 <= 25 )\n  {\n    if ( v2 != (_BYTE *)&dword_14 + 2 )\n    {\n      if ( v2 != (_BYTE *)&dword_14 + 3 )\n        goto LABEL_6;\n      goto LABEL_9;\n    }\nLABEL_13:\n    v4 = *(_DWORD *)(a1[1] + 8);\n    goto LABEL_10;\n  }\n  if ( v2 == (_BYTE *)&dword_CC + 1 )\n  {\n    v4 = *(_DWORD *)(a1[1] + 20);\n    goto LABEL_10;\n  }\n  if ( v2 == (_BYTE *)&stru_30C.st_value + 2 )\n  {\nLABEL_9:\n    v4 = *(_DWORD *)(a1[1] + 12);\n    goto LABEL_10;\n  }\n  if ( v2 != (_BYTE *)&dword_18 + 2 )\n  {\nLABEL_6:\n    ERR_put_error(46, 130, 152, (int)\"crypto/cms/cms_lib.c\", 218);\n    return 0;\n  }\n  v4 = *(_DWORD *)(a1[1] + 4);\nLABEL_10:\n  if ( v4 )\n    return *(_DWORD *)v4;\n  else\n    return 0;\n}", "assembly": "; \n; CMS_get0_eContentType from 0x875344 to 0x8753fc (184 bytes)\n; \n; 2 xrefs:\n; > SMIME_write_CMS @ 0x874448\n; > <???> @ 0x6a2ec\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,LR}                                                ; +0x0, 0x875344\nMOV             R4, R0                                                 ; +0x4, 0x875348\nSUB             SP, SP, #8                                             ; +0x8, 0x87534c\nLDR             R0, [R0]                                               ; +0xc, 0x875350\nBL              OBJ_obj2nid                                            ; +0x10, 0x875354\nCMP             R0, #0x19                                              ; +0x14, 0x875358\nBEQ             loc_8753D8                                             ; +0x18, 0x87535c\nBLE             loc_8753AC                                             ; +0x1c, 0x875360\nCMP             R0, #0xCD                                              ; +0x20, 0x875364\nBEQ             loc_8753E4                                             ; +0x24, 0x875368\nLDR             R2, =0x312                                             ; +0x28, 0x87536c\nCMP             R0, R2                                                 ; +0x2c, 0x875370\nBEQ             loc_8753BC                                             ; +0x30, 0x875374\nCMP             R0, #0x1A                                              ; +0x34, 0x875378\nBEQ             loc_8753F0                                             ; +0x38, 0x87537c\nMOV             R3, #0xDA                                              ; +0x3c, 0x875380\nSTR             R3, [SP,#8+var_8]                                      ; +0x40, 0x875384\nLDR             R3, =(aCryptoCmsCmsLi - 0x8753A0); \"crypto/cms/cms_lib.c\" ; +0x44, 0x875388\nMOV             R0, #0x2E ; '.'                                        ; +0x48, 0x87538c\nMOV             R1, #0x82                                              ; +0x4c, 0x875390\nMOV             R2, #0x98                                              ; +0x50, 0x875394\nADD             R3, PC, R3; \"crypto/cms/cms_lib.c\"                     ; +0x54, 0x875398\nBL              ERR_put_error                                          ; +0x58, 0x87539c\nMOV             R0, #0                                                 ; +0x5c, 0x8753a0\nADD             SP, SP, #8                                             ; +0x60, 0x8753a4\nPOP             {R4,PC}                                                ; +0x64, 0x8753a8\nCMP             R0, #0x16                                              ; +0x68, 0x8753ac\nBEQ             loc_8753D8                                             ; +0x6c, 0x8753b0\nCMP             R0, #0x17                                              ; +0x70, 0x8753b4\nBNE             loc_875380                                             ; +0x74, 0x8753b8\nLDR             R3, [R4,#4]                                            ; +0x78, 0x8753bc\nLDR             R3, [R3,#0xC]                                          ; +0x7c, 0x8753c0\nCMP             R3, #0                                                 ; +0x80, 0x8753c4\nMOVEQ           R0, R3                                                 ; +0x84, 0x8753c8\nLDRNE           R0, [R3]                                               ; +0x88, 0x8753cc\nADD             SP, SP, #8                                             ; +0x8c, 0x8753d0\nPOP             {R4,PC}                                                ; +0x90, 0x8753d4\nLDR             R3, [R4,#4]                                            ; +0x94, 0x8753d8\nLDR             R3, [R3,#8]                                            ; +0x98, 0x8753dc\nB               loc_8753C4                                             ; +0x9c, 0x8753e0\nLDR             R3, [R4,#4]                                            ; +0xa0, 0x8753e4\nLDR             R3, [R3,#0x14]                                         ; +0xa4, 0x8753e8\nB               loc_8753C4                                             ; +0xa8, 0x8753ec\nLDR             R3, [R4,#4]                                            ; +0xac, 0x8753f0\nLDR             R3, [R3,#4]                                            ; +0xb0, 0x8753f4\nB               loc_8753C4                                             ; +0xb4, 0x8753f8", "xrefs": ["SMIME_write_CMS @ 0x874448", "<???> @ 0x6a2ec"], "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"}