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