Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __fastcall PaintWatermark( HDC hdcIn, const struct tagRECT *rectIn )
- {
- const struct tagRECT *rect; // r14
- HDC hDc; // rbx
- __int64 hFont; // rdi
- __int64 v5; // rsi
- __int64 v6; // rcx
- __int64 v7; // rcx
- __int64 v8; // rcx
- struct tagSIZE size; // [rsp+90h] [rbp+18h]
- rect = rectIn;
- hDc = hdcIn;
- hFont = NULL;
- if ( gbGreTextReady && *(*gpsi + 0x874) )
- {
- v5 = GetDPIServerInfo( );
- if ( *(v5 + 8) )
- hFont = GreSelectFont( hDc );
- if ( *gdwInAtomicOperation && *gdwExtraInstrumentations & 1 )
- {
- //WIN32K_ATOMIC_CHECK_FAILURE
- KeBugCheckEx( 0x160u, *gdwInAtomicOperation, NULL, NULL, NULL );
- }
- EnterRenderBlock( );
- UserSessionSwitchLeaveCrit( );
- EnterSharedCrit( NULL, 1 );
- EnterSharedRenderCrit( );
- GreSetBkMode( hDc );
- GreSetTextColor( hDc );
- if ( GreGetTextExtentW( hDc, &gwszSafeModeStr, gSafeModeStrLen, &size ) )
- {
- GreExtTextOutWInternal( hDc, rect->left, rect->top, 0, NULL, &gwszSafeModeStr, gSafeModeStrLen, NULL, NULL, 0 );
- GreExtTextOutWInternal( hDc,(rect->right - size.cx), rect->top, 0,NULL,&gwszSafeModeStr,gSafeModeStrLen,NULL,NULL,0 );
- GreExtTextOutWInternal( hDc,(rect->right - size.cx),(rect->bottom - *(v5 + 40)),0,NULL,&gwszSafeModeStr,gSafeModeStrLen,NULL,NULL,0 );
- GreExtTextOutWInternal( hDc,rect->left,(rect->bottom - *(v5 + 40)),0,NULL,&gwszSafeModeStr,gSafeModeStrLen,NULL,NULL,0 );
- }
- GreSetBkMode( hDc );
- GreSetTextColor( hDc );
- LeaveRenderBlock( v6 );
- LeaveRenderCrit( v7 );
- UserSessionSwitchLeaveCrit( v8 );
- EnterCrit( NULL, 1i64 );
- if ( hFont )
- GreSelectFont(hDc);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement