SleepstudyHelper_RegisterComponentEx
__int64 __fastcall SleepstudyHelper_RegisterComponentEx(
__int64 a1,
__int128 *a2,
__int128 *a3,
const UNICODE_STRING *a4,
KSPIN_LOCK **a5){
KSPIN_LOCK *v5;
PVOID v6;
KSPIN_LOCK **v7;
__int128 v8;
int v9;
int v10;
PVOID P;
__int128 a3a;
__int128 v14;
KSPIN_LOCK *a2a;
v5 = 0i64;
v6 = 0i64;
a2a = 0i64;
P = 0i64;
if( a1 && a4 && (v7 = a5) != 0i64 )
{
v8 = *a3;
v14 = *a2;
a3a = v8;
v9 = SleepstudyHelperCreateBlockerFromGuid(a1, &v14, &a3a, a4, 0, &P);
v6 = P;
v10 = v9;
if( v9 >= 0 )
{
v10 = SleepstudyHelperBuildBlocker(P, &a2a);
if( v10 >= 0 )
{
*v7 = a2a;
return(unsigned int)v10;
}
v5 = a2a;
}
}
else
{
v10 = -1073741811;
}
if( v6 )
SleepstudyHelperDestroyBlockerBuilder(v6);
if( v5 )
SleepstudyHelperDestroyBlocker(v5);
return(unsigned int)v10;
}Referenced by:
No references.