{"type": "func", "start": 10073668, "end": 10073936, "name": "DTLS_RECORD_LAYER_clear", "pseudocode": "// \n// DTLS_RECORD_LAYER_clear from 0x99b644 to 0x99b750 (268 bytes)\n// \n// 4 xrefs:\n// > DTLS_RECORD_LAYER_free @ 0x99b764\n// > RECORD_LAYER_clear @ 0x99d170\n// > dtls1_clear @ 0x9cad1c\n// > <???> @ 0x73f3c\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\nvoid *__fastcall DTLS_RECORD_LAYER_clear(int a1)\n{\n  _DWORD *v1; // r5\n  int v2; // r0\n  int v3; // r4\n  int v4; // r0\n  int v5; // r4\n  int v6; // r0\n  int v7; // r4\n  int v8; // r7\n  int v9; // r6\n  int v10; // r4\n  void *result; // r0\n\n  v1 = *(_DWORD **)(a1 + 2288);\n  while ( 1 )\n  {\n    v2 = pqueue_pop(v1[8]);\n    v3 = v2;\n    if ( !v2 )\n      break;\n    CRYPTO_free(*(_DWORD *)(*(_DWORD *)(v2 + 8) + 8), \"ssl/record/rec_layer_d1.c\", 67);\n    CRYPTO_free(*(_DWORD *)(v3 + 8), \"ssl/record/rec_layer_d1.c\", 68);\n    pitem_free(v3);\n  }\n  while ( 1 )\n  {\n    v4 = pqueue_pop(v1[10]);\n    v5 = v4;\n    if ( !v4 )\n      break;\n    CRYPTO_free(*(_DWORD *)(*(_DWORD *)(v4 + 8) + 8), \"ssl/record/rec_layer_d1.c\", 74);\n    CRYPTO_free(*(_DWORD *)(v5 + 8), \"ssl/record/rec_layer_d1.c\", 75);\n    pitem_free(v5);\n  }\n  while ( 1 )\n  {\n    v6 = pqueue_pop(v1[12]);\n    v7 = v6;\n    if ( !v6 )\n      break;\n    CRYPTO_free(*(_DWORD *)(*(_DWORD *)(v6 + 8) + 8), \"ssl/record/rec_layer_d1.c\", 81);\n    CRYPTO_free(*(_DWORD *)(v7 + 8), \"ssl/record/rec_layer_d1.c\", 82);\n    pitem_free(v7);\n  }\n  v8 = v1[8];\n  v9 = v1[10];\n  v10 = v1[12];\n  result = memset(v1, 0, 0x5Cu);\n  v1[8] = v8;\n  v1[10] = v9;\n  v1[12] = v10;\n  return result;\n}", "assembly": "; \n; DTLS_RECORD_LAYER_clear from 0x99b644 to 0x99b750 (268 bytes)\n; \n; 4 xrefs:\n; > DTLS_RECORD_LAYER_free @ 0x99b764\n; > RECORD_LAYER_clear @ 0x99d170\n; > dtls1_clear @ 0x9cad1c\n; > <???> @ 0x73f3c\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; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x99b644\nLDR             R6, =(aSslRecordRecLa - 0x99B658); \"ssl/record/rec_layer_d1.c\" ; +0x4, 0x99b648\nLDR             R5, [R0,#0x8F0]                                        ; +0x8, 0x99b64c\nADD             R6, PC, R6; \"ssl/record/rec_layer_d1.c\"                ; +0xc, 0x99b650\nB               loc_99B67C                                             ; +0x10, 0x99b654\nLDR             R3, [R4,#8]                                            ; +0x14, 0x99b658\nLDR             R0, [R3,#8]                                            ; +0x18, 0x99b65c\nBL              CRYPTO_free                                            ; +0x1c, 0x99b660\nLDR             R0, [R4,#8]                                            ; +0x20, 0x99b664\nMOV             R1, R6                                                 ; +0x24, 0x99b668\nMOV             R2, #0x44 ; 'D'                                        ; +0x28, 0x99b66c\nBL              CRYPTO_free                                            ; +0x2c, 0x99b670\nMOV             R0, R4                                                 ; +0x30, 0x99b674\nBL              pitem_free                                             ; +0x34, 0x99b678\nLDR             R0, [R5,#0x20]                                         ; +0x38, 0x99b67c\nBL              pqueue_pop                                             ; +0x3c, 0x99b680\nMOV             R1, R6                                                 ; +0x40, 0x99b684\nMOV             R2, #0x43 ; 'C'                                        ; +0x44, 0x99b688\nSUBS            R4, R0, #0                                             ; +0x48, 0x99b68c\nBNE             loc_99B658                                             ; +0x4c, 0x99b690\nLDR             R6, =(aSslRecordRecLa - 0x99B6A0); \"ssl/record/rec_layer_d1.c\" ; +0x50, 0x99b694\nADD             R6, PC, R6; \"ssl/record/rec_layer_d1.c\"                ; +0x54, 0x99b698\nB               loc_99B6C4                                             ; +0x58, 0x99b69c\nLDR             R3, [R4,#8]                                            ; +0x5c, 0x99b6a0\nLDR             R0, [R3,#8]                                            ; +0x60, 0x99b6a4\nBL              CRYPTO_free                                            ; +0x64, 0x99b6a8\nLDR             R0, [R4,#8]                                            ; +0x68, 0x99b6ac\nMOV             R1, R6                                                 ; +0x6c, 0x99b6b0\nMOV             R2, #0x4B ; 'K'                                        ; +0x70, 0x99b6b4\nBL              CRYPTO_free                                            ; +0x74, 0x99b6b8\nMOV             R0, R4                                                 ; +0x78, 0x99b6bc\nBL              pitem_free                                             ; +0x7c, 0x99b6c0\nLDR             R0, [R5,#0x28]                                         ; +0x80, 0x99b6c4\nBL              pqueue_pop                                             ; +0x84, 0x99b6c8\nMOV             R1, R6                                                 ; +0x88, 0x99b6cc\nMOV             R2, #0x4A ; 'J'                                        ; +0x8c, 0x99b6d0\nSUBS            R4, R0, #0                                             ; +0x90, 0x99b6d4\nBNE             loc_99B6A0                                             ; +0x94, 0x99b6d8\nLDR             R6, =(aSslRecordRecLa - 0x99B6E8); \"ssl/record/rec_layer_d1.c\" ; +0x98, 0x99b6dc\nADD             R6, PC, R6; \"ssl/record/rec_layer_d1.c\"                ; +0x9c, 0x99b6e0\nB               loc_99B70C                                             ; +0xa0, 0x99b6e4\nLDR             R3, [R4,#8]                                            ; +0xa4, 0x99b6e8\nLDR             R0, [R3,#8]                                            ; +0xa8, 0x99b6ec\nBL              CRYPTO_free                                            ; +0xac, 0x99b6f0\nLDR             R0, [R4,#8]                                            ; +0xb0, 0x99b6f4\nMOV             R1, R6                                                 ; +0xb4, 0x99b6f8\nMOV             R2, #0x52 ; 'R'                                        ; +0xb8, 0x99b6fc\nBL              CRYPTO_free                                            ; +0xbc, 0x99b700\nMOV             R0, R4                                                 ; +0xc0, 0x99b704\nBL              pitem_free                                             ; +0xc4, 0x99b708\nLDR             R0, [R5,#0x30]                                         ; +0xc8, 0x99b70c\nBL              pqueue_pop                                             ; +0xcc, 0x99b710\nMOV             R1, R6                                                 ; +0xd0, 0x99b714\nMOV             R2, #0x51 ; 'Q'                                        ; +0xd4, 0x99b718\nSUBS            R4, R0, #0                                             ; +0xd8, 0x99b71c\nBNE             loc_99B6E8                                             ; +0xdc, 0x99b720\nMOV             R1, R4; int                                            ; +0xe0, 0x99b724\nLDR             R7, [R5,#0x20]                                         ; +0xe4, 0x99b728\nLDR             R6, [R5,#0x28]                                         ; +0xe8, 0x99b72c\nLDR             R4, [R5,#0x30]                                         ; +0xec, 0x99b730\nMOV             R0, R5; void *                                         ; +0xf0, 0x99b734\nMOV             R2, #0x5C ; '\\'; size_t                                ; +0xf4, 0x99b738\nBL              memset                                                 ; +0xf8, 0x99b73c\nSTR             R7, [R5,#0x20]                                         ; +0xfc, 0x99b740\nSTR             R6, [R5,#0x28]                                         ; +0x100, 0x99b744\nSTR             R4, [R5,#0x30]                                         ; +0x104, 0x99b748\nPOP             {R3-R7,PC}                                             ; +0x108, 0x99b74c", "xrefs": ["DTLS_RECORD_LAYER_free @ 0x99b764", "RECORD_LAYER_clear @ 0x99d170", "dtls1_clear @ 0x9cad1c", "<???> @ 0x73f3c"], "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"}