// // ossl_statem_client_post_work from 0xfc90c8 to 0xfc9214 (332 bytes) // // 5 xrefs: // > sub_FC5998 @ 0xfc5b08 // > sub_FC5998 @ 0xfc5bb0 // > @ 0xab340 // > sub_FC5998 @ 0xfc5a98 // > @ 0x1544d60 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:15:25 +0000 // __int64 __fastcall ossl_statem_client_post_work(__int64 a1, int a2) { int v2; // w2 __int64 result; // x0 bool v5; // zf __int64 v6; // x0 __int64 v7; // x2 __int64 v8; // x1 int *v9; // x0 int v10; // w1 __int64 v11; // x3 v2 = *(_DWORD *)(a1 + 92) - 12; *(_DWORD *)(a1 + 136) = 0; switch ( v2 ) { case 0: if ( a2 != 3 || (v5 = (unsigned int)statem_flush(a1) == 1, result = 3, v5) ) { if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 104LL) & 8) == 0 ) return 2; *(_DWORD *)(a1 + 512) = 1; return 2; } return result; case 2: if ( (unsigned int)tls_client_key_exchange_post_work(a1) ) return 2; return 0; case 4: v6 = *(_QWORD *)(a1 + 144); v7 = *(_QWORD *)(a1 + 376); v8 = *(_QWORD *)(v6 + 552); v9 = *(int **)(v6 + 640); *(_QWORD *)(v7 + 216) = v8; if ( v9 ) v10 = *v9; else v10 = 0; v11 = *(_QWORD *)(a1 + 8); *(_DWORD *)(v7 + 208) = v10; if ( !(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)(v11 + 192) + 16LL))(a1) || !(*(unsigned int (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 32LL))(a1, 18) ) { return 0; } if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 104LL) & 8) == 0 ) return 2; dtls1_reset_seq_numbers((_QWORD *)a1, 2); return 2; case 6: v5 = (unsigned int)statem_flush(a1) == 1; result = 4; if ( !v5 ) return result; return 2; default: return 2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source