// // ossl_statem_server_write_transition from 0x9bccb0 to 0x9bcfb4 (772 bytes) // // 4 xrefs: // > sub_9B3990 @ 0x9b3c4c // > @ 0x7693c // > sub_9B3990 @ 0x9b3fdc // > @ 0xd1d4ec // // 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:02 +0000 // int __fastcall ossl_statem_server_write_transition(_DWORD *a1) { int v2; // r3 int v3; // r3 int result; // r0 int v5; // r3 int v6; // r2 int v7; // r1 int v8; // r1 int v9; // r2 switch ( a1[16] ) { case 0: case 0x15: case 0x1A: return 2; case 1: a1[16] = 19; return 1; case 0x13: goto LABEL_15; case 0x14: if ( (*(_DWORD *)(*(_DWORD *)(a1[1] + 100) + 52) & 8) != 0 && !*(_DWORD *)(a1[27] + 260) && (SSL_get_options((int)a1) & 0x2000) != 0 ) { a1[16] = 21; return 1; } else { a1[16] = 22; return 1; } case 0x16: if ( a1[30] ) goto LABEL_13; v5 = *(_DWORD *)(a1[26] + 528); v6 = *(_DWORD *)(v5 + 16); if ( (v6 & 0x54) != 0 ) { v7 = *(_DWORD *)(v5 + 12); if ( (v7 & 6) != 0 || (v7 & 0x48) != 0 && *(_DWORD *)(a1[50] + 236) || (v7 & 0x1A0) != 0 ) { LABEL_38: a1[16] = 24; result = 1; } else { v8 = a1[62]; if ( (v8 & 1) == 0 || *(_DWORD *)(a1[60] + 140) && (v8 & 4) != 0 || (v6 & 4) != 0 && (v8 & 2) == 0 || (*(_DWORD *)(v5 + 16) & 0x50) != 0 ) { a1[16] = 26; result = 1; } else { LABEL_42: a1[16] = 25; result = 1; } } } else { a1[16] = 23; result = 1; } break; case 0x17: if ( !a1[96] ) goto LABEL_3; a1[16] = 34; return 1; case 0x18: goto LABEL_6; case 0x19: goto LABEL_9; case 0x20: if ( a1[30] ) goto LABEL_15; LABEL_13: if ( a1[101] ) { a1[16] = 33; return 1; } else { LABEL_14: a1[16] = 35; return 1; } case 0x21: goto LABEL_14; case 0x22: LABEL_3: v2 = *(_DWORD *)(*(_DWORD *)(a1[26] + 528) + 12); if ( (v2 & 6) != 0 || (v2 & 0x48) != 0 && *(_DWORD *)(a1[50] + 236) || (v2 & 0x1A0) != 0 ) goto LABEL_38; LABEL_6: v3 = a1[62]; if ( (v3 & 1) != 0 && (!*(_DWORD *)(a1[60] + 140) || (v3 & 4) == 0) ) { v9 = *(_DWORD *)(a1[26] + 528); if ( ((*(_DWORD *)(v9 + 16) & 4) == 0 || (v3 & 2) != 0) && (*(_DWORD *)(v9 + 16) & 0x50) == 0 ) goto LABEL_42; } LABEL_9: a1[16] = 26; result = 1; break; case 0x23: a1[16] = 36; return 1; case 0x24: if ( a1[30] ) return 2; LABEL_15: a1[16] = 1; ossl_statem_set_in_init((int)a1, 0); return 1; default: return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source