// // dtls1_retransmit_message from 0x9ba20c to 0x9ba3a0 (404 bytes) // // 2 xrefs: // > dtls1_retransmit_buffered_messages @ 0x9ba418 // > @ 0x76edc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:07:01 +0000 // int __fastcall dtls1_retransmit_message(int a1, __int16 a2, _DWORD *a3) { int v4; // r0 int v6; // r0 int v7; // r5 int v8; // r8 int v9; // r2 int v10; // r3 __int16 v11; // r11 int v12; // r8 int v13; // lr int v14; // r9 int v15; // r12 int v16; // r0 int v17; // r1 int v18; // r2 int v19; // r11 int v20; // r10 int v21; // r9 int v22; // r3 int v23; // r8 int v24; // r1 int v25; // r0 int v26; // r5 int v27; // r0 int v29; // [sp+Ch] [bp-10h] int v30; // [sp+10h] [bp-Ch] BYREF __int16 v31; // [sp+14h] [bp-8h] char v32; // [sp+16h] [bp-6h] char v33; // [sp+17h] [bp-5h] v4 = *(_DWORD *)(*(_DWORD *)(a1 + 108) + 276); v31 = 0; v30 = 0; v32 = HIBYTE(a2); v33 = a2; v6 = pqueue_find(v4, &v30); if ( v6 ) { v7 = *(_DWORD *)(v6 + 8); *a3 = 1; if ( *(_DWORD *)(v7 + 20) ) v8 = 1; else v8 = 12; memcpy(*(void **)(*(_DWORD *)(a1 + 88) + 4), *(const void **)(v7 + 44), v8 + *(_DWORD *)(v7 + 4)); v9 = *(_DWORD *)(v7 + 4); v10 = *(_DWORD *)(a1 + 108); *(_DWORD *)(a1 + 96) = v8 + v9; v11 = *(_WORD *)(v7 + 8); v12 = *(_DWORD *)(v7 + 16); *(_BYTE *)(v10 + 288) = *(_BYTE *)v7; v13 = *(_DWORD *)(a1 + 108); v14 = *(_DWORD *)(a1 + 2844); v15 = *(_DWORD *)(v7 + 24); v16 = *(_DWORD *)(v7 + 28); v17 = *(_DWORD *)(v7 + 32); *(_DWORD *)(v10 + 292) = v9; v18 = *(_DWORD *)(v7 + 36); *(_WORD *)(v10 + 296) = v11; v19 = *(unsigned __int16 *)(v14 + 2); v20 = *(_DWORD *)(a1 + 196); *(_DWORD *)(v10 + 304) = v12; *(_DWORD *)(v10 + 300) = 0; v21 = *(_DWORD *)(a1 + 184); v22 = *(_DWORD *)(a1 + 192); v23 = *(_DWORD *)(a1 + 240); *(_DWORD *)(v13 + 400) = 1; *(_DWORD *)(a1 + 192) = v15; *(_DWORD *)(a1 + 240) = v18; *(_DWORD *)(a1 + 196) = v16; *(_DWORD *)(a1 + 184) = v17; v29 = v22; DTLS_RECORD_LAYER_set_saved_w_epoch((char *)(a1 + 556), *(unsigned __int16 *)(v7 + 40)); if ( *(_DWORD *)(v7 + 20) ) v24 = 20; else v24 = 22; v25 = dtls1_do_write((_DWORD *)a1, v24); *(_DWORD *)(a1 + 192) = v29; *(_DWORD *)(a1 + 196) = v20; *(_DWORD *)(a1 + 184) = v21; *(_DWORD *)(a1 + 240) = v23; v26 = v25; DTLS_RECORD_LAYER_set_saved_w_epoch((char *)(a1 + 556), v19); v27 = *(_DWORD *)(a1 + 12); *(_DWORD *)(*(_DWORD *)(a1 + 108) + 400) = 0; BIO_ctrl(v27, 11, 0, 0); return v26; } else { ERR_put_error(20, 390, 68, "ssl/statem/statem_dtls.c", 1077); *a3 = 0; return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source