{"type": "func", "start": 7890364, "end": 7890480, "name": "BIO_new_ssl", "pseudocode": "// \n// BIO_new_ssl from 0x7865bc to 0x786630 (116 bytes)\n// \n// 2 xrefs:\n// > BIO_new_ssl_connect @ 0x786650\n// > <???> @ 0x59f3c\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 BIO_new_ssl(int a1, int a2)\n{\n  void *v4; // r0\n  int v5; // r4\n  int v6; // r0\n  int v7; // r5\n\n  v4 = BIO_f_ssl();\n  v5 = BIO_new(v4);\n  if ( !v5 )\n    return 0;\n  v6 = SSL_new(a1);\n  v7 = v6;\n  if ( v6 )\n  {\n    if ( a2 )\n      SSL_set_connect_state(v6);\n    else\n      SSL_set_accept_state(v6);\n    BIO_ctrl(v5, 109, 1, v7);\n    return v5;\n  }\n  else\n  {\n    BIO_free(v5);\n    return 0;\n  }\n}", "assembly": "; \n; BIO_new_ssl from 0x7865bc to 0x786630 (116 bytes)\n; \n; 2 xrefs:\n; > BIO_new_ssl_connect @ 0x786650\n; > <???> @ 0x59f3c\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, 0x7865bc\nMOV             R6, R1                                                 ; +0x4, 0x7865c0\nMOV             R5, R0                                                 ; +0x8, 0x7865c4\nBL              BIO_f_ssl                                              ; +0xc, 0x7865c8\nBL              BIO_new                                                ; +0x10, 0x7865cc\nSUBS            R4, R0, #0                                             ; +0x14, 0x7865d0\nBEQ             loc_786618                                             ; +0x18, 0x7865d4\nMOV             R0, R5                                                 ; +0x1c, 0x7865d8\nBL              SSL_new                                                ; +0x20, 0x7865dc\nSUBS            R5, R0, #0                                             ; +0x24, 0x7865e0\nBEQ             loc_786620                                             ; +0x28, 0x7865e4\nCMP             R6, #0                                                 ; +0x2c, 0x7865e8\nBNE             loc_786610                                             ; +0x30, 0x7865ec\nBL              SSL_set_accept_state                                   ; +0x34, 0x7865f0\nMOV             R3, R5                                                 ; +0x38, 0x7865f4\nMOV             R0, R4                                                 ; +0x3c, 0x7865f8\nMOV             R1, #0x6D ; 'm'                                        ; +0x40, 0x7865fc\nMOV             R2, #1                                                 ; +0x44, 0x786600\nBL              BIO_ctrl                                               ; +0x48, 0x786604\nMOV             R0, R4                                                 ; +0x4c, 0x786608\nPOP             {R4-R6,PC}                                             ; +0x50, 0x78660c\nBL              SSL_set_connect_state                                  ; +0x54, 0x786610\nB               loc_7865F4                                             ; +0x58, 0x786614\nMOV             R0, R4                                                 ; +0x5c, 0x786618\nPOP             {R4-R6,PC}                                             ; +0x60, 0x78661c\nMOV             R0, R4                                                 ; +0x64, 0x786620\nBL              BIO_free                                               ; +0x68, 0x786624\nMOV             R0, R5                                                 ; +0x6c, 0x786628\nPOP             {R4-R6,PC}                                             ; +0x70, 0x78662c", "xrefs": ["BIO_new_ssl_connect @ 0x786650", "<???> @ 0x59f3c"], "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"}