{"type": "func", "start": 10072512, "end": 10072628, "name": "BIO_new_ssl", "pseudocode": "// \n// BIO_new_ssl from 0x99b1c0 to 0x99b234 (116 bytes)\n// \n// 2 xrefs:\n// > BIO_new_ssl_connect @ 0x99b254\n// > <???> @ 0x739bc\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:06:44 +0000\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 0x99b1c0 to 0x99b234 (116 bytes)\n; \n; 2 xrefs:\n; > BIO_new_ssl_connect @ 0x99b254\n; > <???> @ 0x739bc\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:06:44 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x99b1c0\nMOV             R6, R1                                                 ; +0x4, 0x99b1c4\nMOV             R5, R0                                                 ; +0x8, 0x99b1c8\nBL              BIO_f_ssl                                              ; +0xc, 0x99b1cc\nBL              BIO_new                                                ; +0x10, 0x99b1d0\nSUBS            R4, R0, #0                                             ; +0x14, 0x99b1d4\nBEQ             loc_99B21C                                             ; +0x18, 0x99b1d8\nMOV             R0, R5                                                 ; +0x1c, 0x99b1dc\nBL              SSL_new                                                ; +0x20, 0x99b1e0\nSUBS            R5, R0, #0                                             ; +0x24, 0x99b1e4\nBEQ             loc_99B224                                             ; +0x28, 0x99b1e8\nCMP             R6, #0                                                 ; +0x2c, 0x99b1ec\nBNE             loc_99B214                                             ; +0x30, 0x99b1f0\nBL              SSL_set_accept_state                                   ; +0x34, 0x99b1f4\nMOV             R3, R5                                                 ; +0x38, 0x99b1f8\nMOV             R0, R4                                                 ; +0x3c, 0x99b1fc\nMOV             R1, #0x6D ; 'm'                                        ; +0x40, 0x99b200\nMOV             R2, #1                                                 ; +0x44, 0x99b204\nBL              BIO_ctrl                                               ; +0x48, 0x99b208\nMOV             R0, R4                                                 ; +0x4c, 0x99b20c\nPOP             {R4-R6,PC}                                             ; +0x50, 0x99b210\nBL              SSL_set_connect_state                                  ; +0x54, 0x99b214\nB               loc_99B1F8                                             ; +0x58, 0x99b218\nMOV             R0, R4                                                 ; +0x5c, 0x99b21c\nPOP             {R4-R6,PC}                                             ; +0x60, 0x99b220\nMOV             R0, R4                                                 ; +0x64, 0x99b224\nBL              BIO_free                                               ; +0x68, 0x99b228\nMOV             R0, R5                                                 ; +0x6c, 0x99b22c\nPOP             {R4-R6,PC}                                             ; +0x70, 0x99b230", "xrefs": ["BIO_new_ssl_connect @ 0x99b254", "<???> @ 0x739bc"], "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"}