{"type": "func", "start": 7890648, "end": 7890768, "name": "BIO_ssl_copy_session_id", "pseudocode": "// \n// BIO_ssl_copy_session_id from 0x7866d8 to 0x786750 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x59f8c\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\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 0x7866d8 to 0x786750 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x59f8c\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            {R3-R5,LR}                                             ; +0x0, 0x7866d8\nMOV             R4, R1                                                 ; +0x4, 0x7866dc\nLDR             R1, =0x207                                             ; +0x8, 0x7866e0\nBL              BIO_find_type                                          ; +0xc, 0x7866e4\nLDR             R1, =0x207                                             ; +0x10, 0x7866e8\nMOV             R5, R0                                                 ; +0x14, 0x7866ec\nMOV             R0, R4                                                 ; +0x18, 0x7866f0\nBL              BIO_find_type                                          ; +0x1c, 0x7866f4\nCMP             R5, #0                                                 ; +0x20, 0x7866f8\nCMPNE           R0, #0                                                 ; +0x24, 0x7866fc\nMOV             R4, R0                                                 ; +0x28, 0x786700\nBNE             loc_786710                                             ; +0x2c, 0x786704\nMOV             R0, #0                                                 ; +0x30, 0x786708\nPOP             {R3-R5,PC}                                             ; +0x34, 0x78670c\nMOV             R0, R5                                                 ; +0x38, 0x786710\nBL              BIO_get_data                                           ; +0x3c, 0x786714\nMOV             R5, R0                                                 ; +0x40, 0x786718\nMOV             R0, R4                                                 ; +0x44, 0x78671c\nBL              BIO_get_data                                           ; +0x48, 0x786720\nLDR             R3, [R5]                                               ; +0x4c, 0x786724\nCMP             R3, #0                                                 ; +0x50, 0x786728\nBEQ             loc_786708                                             ; +0x54, 0x78672c\nLDR             R1, [R0]                                               ; +0x58, 0x786730\nCMP             R1, #0                                                 ; +0x5c, 0x786734\nBEQ             loc_786708                                             ; +0x60, 0x786738\nMOV             R0, R3                                                 ; +0x64, 0x78673c\nBL              SSL_copy_session_id                                    ; +0x68, 0x786740\nMOVS            R0, R0                                                 ; +0x6c, 0x786744\nMOVNE           R0, #1                                                 ; +0x70, 0x786748\nPOP             {R3-R5,PC}                                             ; +0x74, 0x78674c", "xrefs": ["<???> @ 0x59f8c"], "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"}