Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; BOOL __stdcall ExitWindowsEx(UINT uFlags,DWORD dwReserved)
- public _ExitWindowsEx@8
- _ExitWindowsEx@8 proc near
- uFlags = dword ptr 8
- dwReserved = dword ptr 0Ch
- push ebp
- mov ebp, esp
- sub esp, 40h
- push ebx
- push esi
- push edi
- cmp [ebp+uFlags], 0
- jnz short loc_10001020
- push offset Name ; "EndSession"
- push 1 ; bInitialState
- push 1 ; bManualReset
- push 0 ; lpEventAttributes
- call ds:CreateEventA
- loc_10001020: ; CODE XREF: ExitWindowsEx(x,x)+Dj
- cmp [ebp+uFlags], 1
- jnz short loc_10001037
- push offset aShutdown ; "Shutdown"
- push 1 ; bInitialState
- push 1 ; bManualReset
- push 0 ; lpEventAttributes
- call ds:CreateEventA
- loc_10001037: ; CODE XREF: ExitWindowsEx(x,x)+24j
- cmp [ebp+uFlags], 2
- jnz short loc_1000104E
- push offset aReboot ; "Reboot"
- push 1 ; bInitialState
- push 1 ; bManualReset
- push 0 ; lpEventAttributes
- call ds:CreateEventA
- loc_1000104E: ; CODE XREF: ExitWindowsEx(x,x)+3Bj
- pop edi
- pop esi
- pop ebx
- mov esp, ebp
- pop ebp
- retn 8
- _ExitWindowsEx@8 endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement