// // OBJ_bsearch_ex_ from 0x81c6f0 to 0x81c7ec (252 bytes) // // 4 xrefs: // > OBJ_bsearch_ @ 0x81c804 // > OPENSSL_sk_find_ex @ 0x838cb8 // > OPENSSL_sk_find @ 0x838d74 // > @ 0x642ac // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall OBJ_bsearch_ex_(int a1, int a2, int a3, int a4, int (__fastcall *a5)(int, int), char a6) { int v6; // r11 int v10; // r5 int v11; // r4 int v12; // r6 int v13; // r0 int v15; // r5 int v16; // r11 bool v17; // zf int v18; // r0 v6 = a3; if ( !a3 ) return 0; if ( a3 > 0 ) { v10 = 0; do { while ( 1 ) { v11 = (v10 + v6) >> 1; v12 = a2 + a4 * v11; v13 = a5(a1, v12); if ( v13 >= 0 ) break; v6 = (v10 + v6) >> 1; if ( v11 <= v10 ) goto LABEL_8; } if ( !v13 ) { if ( (a6 & 2) != 0 && v11 ) { v15 = v11 - 1; v16 = a2 + (v11 - 1) * a4; while ( 1 ) { v18 = a5(a1, v16); v12 = v16; v16 -= a4; if ( v18 ) break; v17 = v15 == 0; v11 = v15--; if ( v17 ) return v12; } return a2 + v11 * a4; } return v12; } v10 = v11 + 1; } while ( v6 > v11 + 1 ); LABEL_8: if ( (a6 & 1) != 0 ) return v12; return 0; } v12 = a6 & 2; if ( (a6 & 2) != 0 ) return a2; return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source