Function at 0x434d6b
Capabilities:
Lock the desktop
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00420ddd
xor ebx, ebx
push ebx
push 0x51d240
push str.powrprof.DLL
push str.SetSuspendState
call fcn.00444a50
push 6
lea eax, [ebp + 8]
push eax
push 0x4f6d9c
mov dword [ebp - 0x18], ebx
call fcn.0044b960
add esp, 0x1c
test al, al
je 0x434db1
mov dword [ebp - 0x18], 0x4000
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
jmp 0x434f37
push 2
lea eax, [ebp + 8]
push eax
push 0x4f3dd4
call fcn.0044b960
add esp, 0xc
test al, al
mov eax, dword [ebp + 8]
je 0x434e18
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
call fcn.0041edaf
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
push 0x4efd50
push eax
push dword [ebp - 0x1c]
call fcn.00434c60
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 0x434e13
xor esi, esi
mov si, word [eax]
push 8
lea eax, [ebp + 8]
push eax
push str.SHUTDOWN
and esi, 0xffdf
call fcn.0044b960
add esp, 0xc
test al, al
jne 0x434f6d
cmp si, 0x52
jne 0x434e62
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], eax
jmp 0x434f30
cmp si, 0x4c
je 0x4350ae
cmp si, 0x48
je 0x4350d8
cmp si, 0x53
je 0x43510a
cmp si, 0x4b
je 0x435139
cmp si, 0x45
jne 0x434ec1
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x51d244]
cmp eax, ebx
je 0x434f30
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_open
call eax
push 0x2710
mov ecx, 0x51d2a0
call fcn.0042072b
jmp 0x434f30
cmp si, 0x4f
jne 0x434f45
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.00423b98
add esp, 4
cmp al, bl
je 0x434f0f
xor esi, esi
cmp al, bl
je 0x434f0f
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.00423b98
add esp, 4
test al, al
jne 0x434eed
mov eax, dword [0x51d244]
cmp eax, ebx
je 0x434f2d
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_open
call eax
push esi
mov ecx, 0x51d2a0
call fcn.0042072b
xor edi, edi
inc edi
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x434dd2
jmp 0x434def
cmp si, 0x43
jne 0x434def
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x51d244]
cmp eax, ebx
je 0x434f30
push ebx
push ebx
push ebx
push str.Set_cdAudio_door_close
call eax
jmp 0x434f30
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x43503e
cmp word [eax + 2], 0x2d
je 0x43504a
push 2
pop esi
push esi
lea eax, [ebp + 8]
push eax
push 0x4f6ec8
call fcn.0044b960
add esp, 0xc
test al, al
je 0x434fa1
mov dword [ebp - 8], ebx
jmp 0x43501e
push esi
lea eax, [ebp + 8]
push eax
push 0x4f6ec4
call fcn.0044b960
add esp, 0xc
test al, al
je 0x434fbc
mov dword [ebp - 8], edi
jmp 0x43501e
push esi
lea eax, [ebp + 8]
push eax
push 0x4f6ec0
call fcn.0044b960
add esp, 0xc
test al, al
je 0x434fd7
mov dword [ebp - 0xc], edi
jmp 0x43501e
push 3
lea eax, [ebp + 8]
push eax
push 0x4f6ebc
call fcn.0044b960
add esp, 0xc
test al, al
je 0x434ff9
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
lea ecx, [eax + 6]
jmp 0x435024
push esi
lea eax, [ebp + 8]
push eax
push 0x4f6eb8
call fcn.0044b960
add esp, 0xc
test al, al
je 0x435029
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce90
pop ecx
pop ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x43503e
lea eax, [ebp + 8]
push eax
call fcn.00423ae8
pop ecx
lea ecx, [ebp + 8]
call fcn.0041edaf
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x434f78
jmp 0x43505a
add eax, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00423ae8
pop ecx
lea ecx, [ebp - 4]
call fcn.0041edaf
mov ecx, dword [ebp - 8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x20
push ecx
push dword [eax]
call fcn.00434b55
push 2
push str.SeShutdownPrivilege
call fcn.004226a0
push 2
push str.SeRemoteShutdownPrivilege
call fcn.004226a0
add esp, 0x18
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x4efd50
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
xor eax, eax
jmp 0x434e0e
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0041edaf
push 2
push dword [eax]
call fcn.00434b55
pop ecx
pop ecx
push ebx
push 0x10
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x43516d
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0041edaf
push 8
push dword [eax]
call fcn.00434b55
push 2
push str.SeShutdownPrivilege
call fcn.004226a0
add esp, 0x10
push edi
push ebx
call sub.KERNEL32.dll_SetSystemPowerState
jmp 0x43516d
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x51d240], ebx
mov dword [ebp - 4], eax
je 0x43514a
lea ecx, [ebp - 4]
call fcn.0041edaf
push 4
push dword [eax]
call fcn.00434b55
pop ecx
pop ecx
push ebx
push edi
push ebx
call dword [0x51d240]
jmp 0x43516d
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x51d240], ebx
mov dword [ebp - 4], eax
jne 0x435151
mov eax, edi
jmp 0x434e0e
lea ecx, [ebp - 4]
call fcn.0041edaf
push 0x80
push dword [eax]
call fcn.00434b55
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_LockWorkStation]
neg eax
sbb eax, eax
inc eax
jmp 0x434e0e