Function at 0x1002b2c8
Capabilities:
Lock the desktop
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1001213f
xor ebx, ebx
push ebx
push 0x100e3048
push str.powrprof.DLL
push str.SetSuspendState
call fcn.10040e9d
push 6
lea eax, [ebp + 8]
push eax
push 0x100cbc94
mov dword [ebp - 0x18], ebx
call fcn.10048195
add esp, 0x1c
test al, al
je 0x1002b30e
mov dword [ebp - 0x18], 0x4000
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
jmp 0x1002b49c
push 2
lea eax, [ebp + 8]
push eax
push 0x100c7a50
call fcn.10048195
add esp, 0xc
test al, al
mov eax, dword [ebp + 8]
je 0x1002b375
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
call fcn.1000f804
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x18]
push 0x100cc088
push eax
push dword [ebp - 0x1c]
call fcn.1002aef7
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2d
je 0x1002b370
xor esi, esi
mov si, word [eax]
push 8
lea eax, [ebp + 8]
push eax
push str.SHUTDOWN
and esi, 0xffdf
call fcn.10048195
add esp, 0xc
test al, al
jne 0x1002b4d2
cmp si, 0x52
jne 0x1002b3bf
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], eax
jmp 0x1002b495
cmp si, 0x4c
je 0x1002b64f
cmp si, 0x48
je 0x1002b6bb
cmp si, 0x53
je 0x1002b6ee
cmp si, 0x4b
je 0x1002b71d
cmp si, 0x45
jne 0x1002b420
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x100e304c]
cmp eax, ebx
je 0x1002b495
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_open
call eax
push ebx
push ebx
push 0x2710
mov ecx, 0x100e3108
call fcn.10011621
jmp 0x1002b495
cmp si, 0x4f
jne 0x1002b4aa
mov ecx, dword [ebp + 8]
add ecx, 2
xor edi, edi
mov dword [ebp - 4], ecx
mov di, word [ecx]
mov esi, 0x2710
push edi
call fcn.10045b88
add esp, 4
cmp al, bl
je 0x1002b472
xor esi, esi
cmp al, bl
je 0x1002b472
movzx edx, di
mov dword [ebp + 8], ecx
add ecx, 2
xor edi, edi
mov di, word [ecx]
lea eax, [esi + esi*4]
lea esi, [edx + eax*2 - 0x30]
push edi
call fcn.10045b88
add esp, 4
test al, al
jne 0x1002b450
mov eax, dword [0x100e304c]
cmp eax, ebx
je 0x1002b492
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_open
call eax
push ebx
push ebx
push esi
mov ecx, 0x100e3108
call fcn.10011621
xor edi, edi
inc edi
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x1002b32f
jmp 0x1002b34c
cmp si, 0x43
jne 0x1002b34c
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x100e304c]
cmp eax, ebx
je 0x1002b495
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_close
call eax
jmp 0x1002b495
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x1002b5a3
cmp word [eax + 2], 0x2d
je 0x1002b5af
push 2
pop esi
push esi
lea eax, [ebp + 8]
push eax
push 0x100cc01c
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002b506
mov dword [ebp - 8], ebx
jmp 0x1002b583
push esi
lea eax, [ebp + 8]
push eax
push 0x100cc018
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002b521
mov dword [ebp - 8], edi
jmp 0x1002b583
push esi
lea eax, [ebp + 8]
push eax
push 0x100cc014
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002b53c
mov dword [ebp - 0xc], edi
jmp 0x1002b583
push 3
lea eax, [ebp + 8]
push eax
push 0x100cc010
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002b55e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
lea ecx, [eax + 6]
jmp 0x1002b589
push esi
lea eax, [ebp + 8]
push eax
push 0x100cc00c
call fcn.10048195
add esp, 0xc
test al, al
je 0x1002b58e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10053abc
pop ecx
pop ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x1002b5a3
lea eax, [ebp + 8]
push eax
call fcn.10005b74
pop ecx
lea ecx, [ebp + 8]
call fcn.1000f804
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x1002b4dd
jmp 0x1002b5bf
add eax, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10005b74
pop ecx
mov esi, dword [ebp - 8]
neg esi
sbb esi, esi
and esi, 0xfffffff0
lea ecx, [ebp - 4]
add esi, 0x20
call fcn.1000f804
push esi
push dword [eax]
call fcn.1002ade0
push ebx
push 2
push str.SeShutdownPrivilege
call fcn.10013699
push ebx
push 2
push str.SeRemoteShutdownPrivilege
call fcn.10013699
add esp, 0x20
push 0x12c
lea ecx, [ebp - 0x10]
call fcn.10045fcc
movzx eax, byte [0x100e6003]
push eax
push esi
push dword [ebp - 8]
push str._nSHUTDOWN__0x_X__0x_X___CMD___Main0x_X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x10]
call fcn.1000fde0
add esp, 0x18
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0x100c6a64
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
lea ecx, [ebp - 0x10]
call fcn.1003f96c
xor eax, eax
jmp 0x1002b36b
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1000f804
push 2
push dword [eax]
call fcn.1002ade0
pop ecx
pop ecx
push 0x12c
lea ecx, [ebp - 0x10]
call fcn.10045fcc
movzx eax, byte [0x100e6003]
push eax
push 2
push ebx
push str._nLOGOUT__0x_X__0x_X___CMD___Main0x_X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 0x10]
call fcn.1000fde0
add esp, 0x18
push ebx
push 0x10
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [ebp - 0x10]
inc esi
call fcn.1003f96c
mov eax, esi
jmp 0x1002b36b
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1000f804
push 8
push dword [eax]
call fcn.1002ade0
push ebx
push 2
push str.SeShutdownPrivilege
call fcn.10013699
add esp, 0x14
push edi
push ebx
call sub.KERNEL32.dll_SetSystemPowerState
jmp 0x1002b751
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x100e3048], ebx
mov dword [ebp - 4], eax
je 0x1002b72e
lea ecx, [ebp - 4]
call fcn.1000f804
push 4
push dword [eax]
call fcn.1002ade0
pop ecx
pop ecx
push ebx
push edi
push ebx
call dword [0x100e3048]
jmp 0x1002b751
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x100e3048], ebx
mov dword [ebp - 4], eax
jne 0x1002b735
mov eax, edi
jmp 0x1002b36b
lea ecx, [ebp - 4]
call fcn.1000f804
push 0x80
push dword [eax]
call fcn.1002ade0
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_LockWorkStation]
neg eax
sbb eax, eax
inc eax
jmp 0x1002b36b