{"type": "func", "start": 8859484, "end": 8859596, "name": "CMS_RecipientInfo_ktri_get0_algs", "pseudocode": "// \n// CMS_RecipientInfo_ktri_get0_algs from 0x872f5c to 0x872fcc (112 bytes)\n// \n// 3 xrefs:\n// > sub_82C9FC @ 0x82cb8c\n// > sub_82C9FC @ 0x82cd20\n// > <???> @ 0x6615c\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_RecipientInfo_ktri_get0_algs(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)\n{\n  _DWORD *v4; // r0\n\n  if ( *a1 )\n  {\n    ERR_put_error(46, 142, 124, (int)\"crypto/cms/cms_env.c\", 238);\n    return 0;\n  }\n  else\n  {\n    v4 = (_DWORD *)a1[1];\n    if ( a2 )\n      *a2 = v4[5];\n    if ( a3 )\n      *a3 = v4[4];\n    if ( a4 )\n      *a4 = v4[2];\n    return 1;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_ktri_get0_algs from 0x872f5c to 0x872fcc (112 bytes)\n; \n; 3 xrefs:\n; > sub_82C9FC @ 0x82cb8c\n; > sub_82C9FC @ 0x82cd20\n; > <???> @ 0x6615c\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\nLDR             R12, [R0]                                              ; +0x0, 0x872f5c\nCMP             R12, #0                                                ; +0x4, 0x872f60\nBNE             loc_872F98                                             ; +0x8, 0x872f64\nLDR             R0, [R0,#4]                                            ; +0xc, 0x872f68\nCMP             R1, #0                                                 ; +0x10, 0x872f6c\nLDRNE           R12, [R0,#0x14]                                        ; +0x14, 0x872f70\nSTRNE           R12, [R1]                                              ; +0x18, 0x872f74\nCMP             R2, #0                                                 ; +0x1c, 0x872f78\nLDRNE           R1, [R0,#0x10]                                         ; +0x20, 0x872f7c\nSTRNE           R1, [R2]                                               ; +0x24, 0x872f80\nCMP             R3, #0                                                 ; +0x28, 0x872f84\nLDRNE           R2, [R0,#8]                                            ; +0x2c, 0x872f88\nSTRNE           R2, [R3]                                               ; +0x30, 0x872f8c\nMOV             R0, #1                                                 ; +0x34, 0x872f90\nBX              LR                                                     ; +0x38, 0x872f94\nPUSH            {LR}                                                   ; +0x3c, 0x872f98\nMOV             R3, #0xEE                                              ; +0x40, 0x872f9c\nSUB             SP, SP, #0xC                                           ; +0x44, 0x872fa0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x48, 0x872fa4\nLDR             R3, =(aCryptoCmsCmsEn - 0x872FC0); \"crypto/cms/cms_env.c\" ; +0x4c, 0x872fa8\nMOV             R0, #0x2E ; '.'                                        ; +0x50, 0x872fac\nMOV             R1, #0x8E                                              ; +0x54, 0x872fb0\nMOV             R2, #0x7C ; '|'                                        ; +0x58, 0x872fb4\nADD             R3, PC, R3; \"crypto/cms/cms_env.c\"                     ; +0x5c, 0x872fb8\nBL              ERR_put_error                                          ; +0x60, 0x872fbc\nMOV             R0, #0                                                 ; +0x64, 0x872fc0\nADD             SP, SP, #0xC                                           ; +0x68, 0x872fc4\nPOP             {PC}                                                   ; +0x6c, 0x872fc8", "xrefs": ["sub_82C9FC @ 0x82cb8c", "sub_82C9FC @ 0x82cd20", "<???> @ 0x6615c"], "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"}