{"type": "func", "start": 7891344, "end": 7891512, "name": "DTLS_RECORD_LAYER_new", "pseudocode": "// \n// DTLS_RECORD_LAYER_new from 0x786990 to 0x786a38 (168 bytes)\n// \n// 2 xrefs:\n// > dtls1_new @ 0x7b5f5c\n// > <???> @ 0x5a48c\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 DTLS_RECORD_LAYER_new(int a1)\n{\n  int v2; // r0\n  _DWORD *v3; // r4\n  int v4; // r3\n  int v5; // r0\n  int v6; // r2\n  bool v7; // zf\n\n  v2 = CRYPTO_malloc(92, \"ssl/record/rec_layer_d1.c\", 22);\n  v3 = (_DWORD *)v2;\n  if ( !v2 )\n    return 0;\n  *(_DWORD *)(a1 + 2288) = v2;\n  *(_DWORD *)(v2 + 32) = pqueue_new();\n  v3[10] = pqueue_new();\n  v4 = pqueue_new();\n  v5 = v3[8];\n  v3[12] = v4;\n  if ( v5 )\n  {\n    v6 = v3[10];\n    v7 = v6 == 0;\n    if ( v6 )\n      v7 = v4 == 0;\n    if ( !v7 )\n      return 1;\n  }\n  ((void (*)(void))pqueue_free)();\n  pqueue_free(v3[10]);\n  pqueue_free(v3[12]);\n  CRYPTO_free(v3, \"ssl/record/rec_layer_d1.c\", 36);\n  *(_DWORD *)(a1 + 2288) = 0;\n  return 0;\n}", "assembly": "; \n; DTLS_RECORD_LAYER_new from 0x786990 to 0x786a38 (168 bytes)\n; \n; 2 xrefs:\n; > dtls1_new @ 0x7b5f5c\n; > <???> @ 0x5a48c\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\nLDR             R1, =(aSslRecordRecLa - 0x7869A0); \"ssl/record/rec_layer_d1.c\" ; +0x0, 0x786990\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x786994\nADD             R1, PC, R1; \"ssl/record/rec_layer_d1.c\"                ; +0x8, 0x786998\nMOV             R5, R0                                                 ; +0xc, 0x78699c\nMOV             R2, #0x16                                              ; +0x10, 0x7869a0\nMOV             R0, #0x5C ; '\\'                                        ; +0x14, 0x7869a4\nBL              CRYPTO_malloc                                          ; +0x18, 0x7869a8\nSUBS            R4, R0, #0                                             ; +0x1c, 0x7869ac\nBEQ             loc_786A30                                             ; +0x20, 0x7869b0\nSTR             R4, [R5,#0x8F0]                                        ; +0x24, 0x7869b4\nBL              pqueue_new                                             ; +0x28, 0x7869b8\nSTR             R0, [R4,#0x20]                                         ; +0x2c, 0x7869bc\nBL              pqueue_new                                             ; +0x30, 0x7869c0\nSTR             R0, [R4,#0x28]                                         ; +0x34, 0x7869c4\nBL              pqueue_new                                             ; +0x38, 0x7869c8\nMOV             R3, R0                                                 ; +0x3c, 0x7869cc\nLDR             R0, [R4,#0x20]                                         ; +0x40, 0x7869d0\nSTR             R3, [R4,#0x30]                                         ; +0x44, 0x7869d4\nCMP             R0, #0                                                 ; +0x48, 0x7869d8\nBEQ             loc_7869F8                                             ; +0x4c, 0x7869dc\nLDR             R2, [R4,#0x28]                                         ; +0x50, 0x7869e0\nCMP             R2, #0                                                 ; +0x54, 0x7869e4\nCMPNE           R3, #0                                                 ; +0x58, 0x7869e8\nBEQ             loc_7869F8                                             ; +0x5c, 0x7869ec\nMOV             R0, #1                                                 ; +0x60, 0x7869f0\nPOP             {R3-R5,PC}                                             ; +0x64, 0x7869f4\nBL              pqueue_free                                            ; +0x68, 0x7869f8\nLDR             R0, [R4,#0x28]                                         ; +0x6c, 0x7869fc\nBL              pqueue_free                                            ; +0x70, 0x786a00\nLDR             R0, [R4,#0x30]                                         ; +0x74, 0x786a04\nBL              pqueue_free                                            ; +0x78, 0x786a08\nLDR             R1, =(aSslRecordRecLa - 0x786A1C); \"ssl/record/rec_layer_d1.c\" ; +0x7c, 0x786a0c\nMOV             R0, R4                                                 ; +0x80, 0x786a10\nADD             R1, PC, R1; \"ssl/record/rec_layer_d1.c\"                ; +0x84, 0x786a14\nMOV             R4, #0                                                 ; +0x88, 0x786a18\nMOV             R2, #0x24 ; '$'                                        ; +0x8c, 0x786a1c\nBL              CRYPTO_free                                            ; +0x90, 0x786a20\nSTR             R4, [R5,#0x8F0]                                        ; +0x94, 0x786a24\nMOV             R0, R4                                                 ; +0x98, 0x786a28\nPOP             {R3-R5,PC}                                             ; +0x9c, 0x786a2c\nMOV             R0, R4                                                 ; +0xa0, 0x786a30\nPOP             {R3-R5,PC}                                             ; +0xa4, 0x786a34", "xrefs": ["dtls1_new @ 0x7b5f5c", "<???> @ 0x5a48c"], "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"}