{"type": "func", "start": 13827804, "end": 13827932, "name": "BIO_new_ssl", "pseudocode": "// \n// BIO_new_ssl from 0xd2fedc to 0xd2ff5c (128 bytes)\n// \n// 2 xrefs:\n// > BIO_new_ssl_connect @ 0xd2ff84\n// > <???> @ 0x4dbb0\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__int64 __fastcall BIO_new_ssl(__int64 a1, int a2)\n{\n  void *v4; // x0\n  __int64 result; // x0\n  __int64 v6; // x19\n  __int64 v7; // x0\n  __int64 v8; // x20\n\n  v4 = BIO_f_ssl();\n  result = BIO_new(v4);\n  v6 = result;\n  if ( result )\n  {\n    v7 = SSL_new(a1);\n    v8 = v7;\n    if ( v7 )\n    {\n      if ( a2 )\n        SSL_set_connect_state(v7);\n      else\n        SSL_set_accept_state(v7);\n      BIO_ctrl(v6, 109, 1, v8);\n      return v6;\n    }\n    else\n    {\n      BIO_free(v6);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; BIO_new_ssl from 0xd2fedc to 0xd2ff5c (128 bytes)\n; \n; 2 xrefs:\n; > BIO_new_ssl_connect @ 0xd2ff84\n; > <???> @ 0x4dbb0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xd2fedc\nMOV             X29, SP                                                ; +0x4, 0xd2fee0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xd2fee4\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xd2fee8\nMOV             X20, X0                                                ; +0x10, 0xd2feec\nMOV             W21, W1                                                ; +0x14, 0xd2fef0\nBL              BIO_f_ssl                                              ; +0x18, 0xd2fef4\nBL              BIO_new                                                ; +0x1c, 0xd2fef8\nMOV             X19, X0                                                ; +0x20, 0xd2fefc\nCBZ             X0, loc_D2FF34                                         ; +0x24, 0xd2ff00\nMOV             X0, X20                                                ; +0x28, 0xd2ff04\nBL              SSL_new                                                ; +0x2c, 0xd2ff08\nMOV             X20, X0                                                ; +0x30, 0xd2ff0c\nCBZ             X0, loc_D2FF4C                                         ; +0x34, 0xd2ff10\nCBNZ            W21, loc_D2FF44                                        ; +0x38, 0xd2ff14\nBL              SSL_set_accept_state                                   ; +0x3c, 0xd2ff18\nMOV             X0, X19                                                ; +0x40, 0xd2ff1c\nMOV             W1, #0x6D ; 'm'                                        ; +0x44, 0xd2ff20\nMOV             X2, #1                                                 ; +0x48, 0xd2ff24\nMOV             X3, X20                                                ; +0x4c, 0xd2ff28\nBL              BIO_ctrl                                               ; +0x50, 0xd2ff2c\nMOV             X0, X19                                                ; +0x54, 0xd2ff30\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0xd2ff34\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x5c, 0xd2ff38\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x60, 0xd2ff3c\nRET                                                                    ; +0x64, 0xd2ff40\nBL              SSL_set_connect_state                                  ; +0x68, 0xd2ff44\nB               loc_D2FF1C                                             ; +0x6c, 0xd2ff48\nMOV             X0, X19                                                ; +0x70, 0xd2ff4c\nBL              BIO_free                                               ; +0x74, 0xd2ff50\nMOV             X0, X20                                                ; +0x78, 0xd2ff54\nB               loc_D2FF34                                             ; +0x7c, 0xd2ff58", "xrefs": ["BIO_new_ssl_connect @ 0xd2ff84", "<???> @ 0x4dbb0"], "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"}