// // SSL_read from 0x796eb8 to 0x797074 (444 bytes) // // 4 xrefs: // > sub_641BFC @ 0x641c26 // > sub_644B1C @ 0x644b80 // > sub_785B18 @ 0x785b54 // > @ 0x54aec // // 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 SSL_read(_DWORD *a1, int a2, int a3) { int result; // r0 int v5; // r3 int v6; // r12 int v9; // [sp+10h] [bp-18h] BYREF _DWORD v10[5]; // [sp+14h] [bp-14h] BYREF if ( a1[6] ) { if ( (a1[10] & 2) != 0 ) { a1[5] = 1; return 0; } else if ( (a1[76] & 0x100) == 0 || ASYNC_get_current_job() ) { return (*(int (__fastcall **)(_DWORD *))(a1[1] + 32))(a1); } else { v5 = a1[715]; v6 = *(_DWORD *)(a1[1] + 32); v10[0] = a1; v10[1] = a2; v10[2] = a3; v10[3] = 0; v10[4] = v6; if ( v5 || (v5 = ASYNC_WAIT_CTX_new(), (a1[715] = v5) != 0) ) { switch ( ASYNC_start_job((int)(a1 + 714), v5, (int)&v9, (int)sub_795940, v10, 0x14u) ) { case 0: a1[5] = 1; ERR_put_error(20, 389, 405, "ssl/ssl_lib.c", 1488); result = -1; break; case 1: a1[5] = 6; result = -1; break; case 2: a1[5] = 5; result = -1; break; case 3: a1[714] = 0; result = v9; break; default: a1[5] = 1; ERR_put_error(20, 389, 68, "ssl/ssl_lib.c", 1501); result = -1; break; } } else { return -1; } } } else { ERR_put_error(20, 223, 276, "ssl/ssl_lib.c", 1532); return -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source