// // ossl_statem_client_post_work from 0x9b768c to 0x9b77cc (320 bytes) // // 5 xrefs: // > sub_9B3990 @ 0x9b3b00 // > sub_9B3990 @ 0x9b3bb0 // > @ 0x7689c // > sub_9B3990 @ 0x9b3a8c // > @ 0xd1d4c4 // // 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:00 +0000 // int __fastcall ossl_statem_client_post_work(_DWORD *a1, int a2) { int v2; // r3 int result; // r0 int v5; // r1 int v6; // r2 _DWORD *v7; // r3 int v8; // r1 v2 = a1[16] - 12; a1[24] = 0; switch ( v2 ) { case 0: if ( a2 != 3 || statem_flush((int)a1) == 1 ) { if ( (*(_DWORD *)(*(_DWORD *)(a1[1] + 100) + 52) & 8) != 0 ) a1[80] = 1; goto LABEL_5; } return 3; case 2: if ( tls_client_key_exchange_post_work(a1) ) goto LABEL_5; goto LABEL_12; case 4: v5 = a1[26]; v6 = a1[60]; v7 = *(_DWORD **)(v5 + 584); *(_DWORD *)(v6 + 172) = *(_DWORD *)(v5 + 528); v8 = a1[1]; if ( v7 ) v7 = (_DWORD *)*v7; *(_DWORD *)(v6 + 168) = v7; if ( (*(int (**)(void))(*(_DWORD *)(v8 + 100) + 8))() && (*(int (__fastcall **)(_DWORD *, int))(*(_DWORD *)(a1[1] + 100) + 16))(a1, 18) ) { if ( (*(_DWORD *)(*(_DWORD *)(a1[1] + 100) + 52) & 8) != 0 ) { dtls1_reset_seq_numbers((int)a1, 2); result = 2; } else { LABEL_5: result = 2; } } else { LABEL_12: result = 0; } break; case 6: if ( statem_flush((int)a1) == 1 ) goto LABEL_5; result = 4; break; default: goto LABEL_5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source