{"type": "func", "start": 10413316, "end": 10413420, "name": "COMP_CTX_new", "pseudocode": "// \n// COMP_CTX_new from 0x9ee504 to 0x9ee56c (104 bytes)\n// \n// 5 xrefs:\n// > ssl3_change_cipher_state @ 0x9ccd28\n// > ssl3_change_cipher_state @ 0x9cce2c\n// > tls1_change_cipher_state @ 0x9cee70\n// > tls1_change_cipher_state @ 0x9cf130\n// > <???> @ 0x7776c\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:28 +0000\n// \n\n_DWORD *__fastcall COMP_CTX_new(int a1)\n{\n  _DWORD *result; // r0\n  _DWORD *v3; // r4\n  int (*v4)(void); // r3\n  int v5; // r5\n\n  result = (_DWORD *)CRYPTO_zalloc(24, \"crypto/comp/comp_lib.c\", 21);\n  v3 = result;\n  if ( result )\n  {\n    v4 = *(int (**)(void))(a1 + 8);\n    *result = a1;\n    if ( v4 )\n    {\n      v5 = v4();\n      result = v3;\n      if ( !v5 )\n      {\n        CRYPTO_free(v3, \"crypto/comp/comp_lib.c\", 25);\n        return nullptr;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; COMP_CTX_new from 0x9ee504 to 0x9ee56c (104 bytes)\n; \n; 5 xrefs:\n; > ssl3_change_cipher_state @ 0x9ccd28\n; > ssl3_change_cipher_state @ 0x9cce2c\n; > tls1_change_cipher_state @ 0x9cee70\n; > tls1_change_cipher_state @ 0x9cf130\n; > <???> @ 0x7776c\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:28 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x9ee504\nLDR             R6, =(aCryptoCompComp - 0x9EE518); \"crypto/comp/comp_lib.c\" ; +0x4, 0x9ee508\nMOV             R5, R0                                                 ; +0x8, 0x9ee50c\nADD             R6, PC, R6; \"crypto/comp/comp_lib.c\"                   ; +0xc, 0x9ee510\nMOV             R1, R6                                                 ; +0x10, 0x9ee514\nMOV             R0, #0x18                                              ; +0x14, 0x9ee518\nMOV             R2, #0x15                                              ; +0x18, 0x9ee51c\nBL              CRYPTO_zalloc                                          ; +0x1c, 0x9ee520\nSUBS            R4, R0, #0                                             ; +0x20, 0x9ee524\nBEQ             loc_9EE550                                             ; +0x24, 0x9ee528\nLDR             R3, [R5,#8]                                            ; +0x28, 0x9ee52c\nSTR             R5, [R4]                                               ; +0x2c, 0x9ee530\nCMP             R3, #0                                                 ; +0x30, 0x9ee534\nBEQ             loc_9EE550                                             ; +0x34, 0x9ee538\nBLX             R3                                                     ; +0x38, 0x9ee53c\nSUBS            R5, R0, #0                                             ; +0x3c, 0x9ee540\nMOV             R0, R4                                                 ; +0x40, 0x9ee544\nBEQ             loc_9EE558                                             ; +0x44, 0x9ee548\nPOP             {R4-R6,PC}                                             ; +0x48, 0x9ee54c\nMOV             R0, R4                                                 ; +0x4c, 0x9ee550\nPOP             {R4-R6,PC}                                             ; +0x50, 0x9ee554\nMOV             R1, R6                                                 ; +0x54, 0x9ee558\nMOV             R2, #0x19                                              ; +0x58, 0x9ee55c\nBL              CRYPTO_free                                            ; +0x5c, 0x9ee560\nMOV             R0, R5                                                 ; +0x60, 0x9ee564\nPOP             {R4-R6,PC}                                             ; +0x64, 0x9ee568", "xrefs": ["ssl3_change_cipher_state @ 0x9ccd28", "ssl3_change_cipher_state @ 0x9cce2c", "tls1_change_cipher_state @ 0x9cee70", "tls1_change_cipher_state @ 0x9cf130", "<???> @ 0x7776c"], "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"}