{"type": "func", "start": 10072796, "end": 10072916, "name": "BIO_ssl_copy_session_id", "pseudocode": "// \n// BIO_ssl_copy_session_id from 0x99b2dc to 0x99b354 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x73a0c\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\nbool __fastcall BIO_ssl_copy_session_id(int a1, int a2)\n{\n  int type; // r5\n  int v4; // r0\n  bool v5; // zf\n  int v6; // r4\n  _DWORD *data; // r5\n  _DWORD *v9; // r0\n\n  type = BIO_find_type(a1, 519);\n  v4 = BIO_find_type(a2, 519);\n  v5 = type == 0;\n  if ( type )\n    v5 = v4 == 0;\n  v6 = v4;\n  if ( !v5 && (data = (_DWORD *)BIO_get_data(type), v9 = (_DWORD *)BIO_get_data(v6), *data && *v9) )\n    return SSL_copy_session_id(*data) != 0;\n  else\n    return 0;\n}", "assembly": "; \n; BIO_ssl_copy_session_id from 0x99b2dc to 0x99b354 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x73a0c\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            {R3-R5,LR}                                             ; +0x0, 0x99b2dc\nMOV             R4, R1                                                 ; +0x4, 0x99b2e0\nLDR             R1, =0x207                                             ; +0x8, 0x99b2e4\nBL              BIO_find_type                                          ; +0xc, 0x99b2e8\nLDR             R1, =0x207                                             ; +0x10, 0x99b2ec\nMOV             R5, R0                                                 ; +0x14, 0x99b2f0\nMOV             R0, R4                                                 ; +0x18, 0x99b2f4\nBL              BIO_find_type                                          ; +0x1c, 0x99b2f8\nCMP             R5, #0                                                 ; +0x20, 0x99b2fc\nCMPNE           R0, #0                                                 ; +0x24, 0x99b300\nMOV             R4, R0                                                 ; +0x28, 0x99b304\nBNE             loc_99B314                                             ; +0x2c, 0x99b308\nMOV             R0, #0                                                 ; +0x30, 0x99b30c\nPOP             {R3-R5,PC}                                             ; +0x34, 0x99b310\nMOV             R0, R5                                                 ; +0x38, 0x99b314\nBL              BIO_get_data                                           ; +0x3c, 0x99b318\nMOV             R5, R0                                                 ; +0x40, 0x99b31c\nMOV             R0, R4                                                 ; +0x44, 0x99b320\nBL              BIO_get_data                                           ; +0x48, 0x99b324\nLDR             R3, [R5]                                               ; +0x4c, 0x99b328\nCMP             R3, #0                                                 ; +0x50, 0x99b32c\nBEQ             loc_99B30C                                             ; +0x54, 0x99b330\nLDR             R1, [R0]                                               ; +0x58, 0x99b334\nCMP             R1, #0                                                 ; +0x5c, 0x99b338\nBEQ             loc_99B30C                                             ; +0x60, 0x99b33c\nMOV             R0, R3                                                 ; +0x64, 0x99b340\nBL              SSL_copy_session_id                                    ; +0x68, 0x99b344\nMOVS            R0, R0                                                 ; +0x6c, 0x99b348\nMOVNE           R0, #1                                                 ; +0x70, 0x99b34c\nPOP             {R3-R5,PC}                                             ; +0x74, 0x99b350", "xrefs": ["<???> @ 0x73a0c"], "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"}