{"type": "func", "start": 10073492, "end": 10073660, "name": "DTLS_RECORD_LAYER_new", "pseudocode": "// \n// DTLS_RECORD_LAYER_new from 0x99b594 to 0x99b63c (168 bytes)\n// \n// 2 xrefs:\n// > dtls1_new @ 0x9cab60\n// > <???> @ 0x73f0c\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:45 +0000\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 0x99b594 to 0x99b63c (168 bytes)\n; \n; 2 xrefs:\n; > dtls1_new @ 0x9cab60\n; > <???> @ 0x73f0c\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:45 +0000\n; \nLDR             R1, =(aSslRecordRecLa - 0x99B5A4); \"ssl/record/rec_layer_d1.c\" ; +0x0, 0x99b594\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x99b598\nADD             R1, PC, R1; \"ssl/record/rec_layer_d1.c\"                ; +0x8, 0x99b59c\nMOV             R5, R0                                                 ; +0xc, 0x99b5a0\nMOV             R2, #0x16                                              ; +0x10, 0x99b5a4\nMOV             R0, #0x5C ; '\\'                                        ; +0x14, 0x99b5a8\nBL              CRYPTO_malloc                                          ; +0x18, 0x99b5ac\nSUBS            R4, R0, #0                                             ; +0x1c, 0x99b5b0\nBEQ             loc_99B634                                             ; +0x20, 0x99b5b4\nSTR             R4, [R5,#0x8F0]                                        ; +0x24, 0x99b5b8\nBL              pqueue_new                                             ; +0x28, 0x99b5bc\nSTR             R0, [R4,#0x20]                                         ; +0x2c, 0x99b5c0\nBL              pqueue_new                                             ; +0x30, 0x99b5c4\nSTR             R0, [R4,#0x28]                                         ; +0x34, 0x99b5c8\nBL              pqueue_new                                             ; +0x38, 0x99b5cc\nMOV             R3, R0                                                 ; +0x3c, 0x99b5d0\nLDR             R0, [R4,#0x20]                                         ; +0x40, 0x99b5d4\nSTR             R3, [R4,#0x30]                                         ; +0x44, 0x99b5d8\nCMP             R0, #0                                                 ; +0x48, 0x99b5dc\nBEQ             loc_99B5FC                                             ; +0x4c, 0x99b5e0\nLDR             R2, [R4,#0x28]                                         ; +0x50, 0x99b5e4\nCMP             R2, #0                                                 ; +0x54, 0x99b5e8\nCMPNE           R3, #0                                                 ; +0x58, 0x99b5ec\nBEQ             loc_99B5FC                                             ; +0x5c, 0x99b5f0\nMOV             R0, #1                                                 ; +0x60, 0x99b5f4\nPOP             {R3-R5,PC}                                             ; +0x64, 0x99b5f8\nBL              pqueue_free                                            ; +0x68, 0x99b5fc\nLDR             R0, [R4,#0x28]                                         ; +0x6c, 0x99b600\nBL              pqueue_free                                            ; +0x70, 0x99b604\nLDR             R0, [R4,#0x30]                                         ; +0x74, 0x99b608\nBL              pqueue_free                                            ; +0x78, 0x99b60c\nLDR             R1, =(aSslRecordRecLa - 0x99B620); \"ssl/record/rec_layer_d1.c\" ; +0x7c, 0x99b610\nMOV             R0, R4                                                 ; +0x80, 0x99b614\nADD             R1, PC, R1; \"ssl/record/rec_layer_d1.c\"                ; +0x84, 0x99b618\nMOV             R4, #0                                                 ; +0x88, 0x99b61c\nMOV             R2, #0x24 ; '$'                                        ; +0x8c, 0x99b620\nBL              CRYPTO_free                                            ; +0x90, 0x99b624\nSTR             R4, [R5,#0x8F0]                                        ; +0x94, 0x99b628\nMOV             R0, R4                                                 ; +0x98, 0x99b62c\nPOP             {R3-R5,PC}                                             ; +0x9c, 0x99b630\nMOV             R0, R4                                                 ; +0xa0, 0x99b634\nPOP             {R3-R5,PC}                                             ; +0xa4, 0x99b638", "xrefs": ["dtls1_new @ 0x9cab60", "<???> @ 0x73f0c"], "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"}