{"type": "func", "start": 8231172, "end": 8231276, "name": "COMP_CTX_new", "pseudocode": "// \n// COMP_CTX_new from 0x7d9904 to 0x7d996c (104 bytes)\n// \n// 5 xrefs:\n// > ssl3_change_cipher_state @ 0x7b8124\n// > ssl3_change_cipher_state @ 0x7b8228\n// > tls1_change_cipher_state @ 0x7ba26c\n// > tls1_change_cipher_state @ 0x7ba52c\n// > <???> @ 0x5dcec\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\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 0x7d9904 to 0x7d996c (104 bytes)\n; \n; 5 xrefs:\n; > ssl3_change_cipher_state @ 0x7b8124\n; > ssl3_change_cipher_state @ 0x7b8228\n; > tls1_change_cipher_state @ 0x7ba26c\n; > tls1_change_cipher_state @ 0x7ba52c\n; > <???> @ 0x5dcec\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-R6,LR}                                             ; +0x0, 0x7d9904\nLDR             R6, =(aCryptoCompComp - 0x7D9918); \"crypto/comp/comp_lib.c\" ; +0x4, 0x7d9908\nMOV             R5, R0                                                 ; +0x8, 0x7d990c\nADD             R6, PC, R6; \"crypto/comp/comp_lib.c\"                   ; +0xc, 0x7d9910\nMOV             R1, R6                                                 ; +0x10, 0x7d9914\nMOV             R0, #0x18                                              ; +0x14, 0x7d9918\nMOV             R2, #0x15                                              ; +0x18, 0x7d991c\nBL              CRYPTO_zalloc                                          ; +0x1c, 0x7d9920\nSUBS            R4, R0, #0                                             ; +0x20, 0x7d9924\nBEQ             loc_7D9950                                             ; +0x24, 0x7d9928\nLDR             R3, [R5,#8]                                            ; +0x28, 0x7d992c\nSTR             R5, [R4]                                               ; +0x2c, 0x7d9930\nCMP             R3, #0                                                 ; +0x30, 0x7d9934\nBEQ             loc_7D9950                                             ; +0x34, 0x7d9938\nBLX             R3                                                     ; +0x38, 0x7d993c\nSUBS            R5, R0, #0                                             ; +0x3c, 0x7d9940\nMOV             R0, R4                                                 ; +0x40, 0x7d9944\nBEQ             loc_7D9958                                             ; +0x44, 0x7d9948\nPOP             {R4-R6,PC}                                             ; +0x48, 0x7d994c\nMOV             R0, R4                                                 ; +0x4c, 0x7d9950\nPOP             {R4-R6,PC}                                             ; +0x50, 0x7d9954\nMOV             R1, R6                                                 ; +0x54, 0x7d9958\nMOV             R2, #0x19                                              ; +0x58, 0x7d995c\nBL              CRYPTO_free                                            ; +0x5c, 0x7d9960\nMOV             R0, R5                                                 ; +0x60, 0x7d9964\nPOP             {R4-R6,PC}                                             ; +0x64, 0x7d9968", "xrefs": ["ssl3_change_cipher_state @ 0x7b8124", "ssl3_change_cipher_state @ 0x7b8228", "tls1_change_cipher_state @ 0x7ba26c", "tls1_change_cipher_state @ 0x7ba52c", "<???> @ 0x5dcec"], "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"}