Function at 0x414983
Capabilities:
Check for time delay via gettickcount
Lock the desktop
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040e07f
xor ebx, ebx
push ebx
push 0x4acea0
push 0x4974c8
push 0x4974b8
call fcn.00431911
push 6
lea eax, [ebp + 8]
push eax
push 0x4972a0
mov dword [ebp - 0x1c], ebx
call fcn.00437ad0
add esp, 0x1c
test al, al
je 0x4149c9
mov dword [ebp - 0x1c], 0x4000
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
jmp 0x414bed
push 2
lea eax, [ebp + 8]
push eax
push 0x4950b8
call fcn.00437ad0
add esp, 0xc
test al, al
mov eax, dword [ebp + 8]
je 0x414a30
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
call fcn.0040bc51
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
push 0x4949a4
push eax
push dword [ebp - 0x20]
call fcn.00414838
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 0x414a2b
xor esi, esi
mov si, word [eax]
push 8
lea eax, [ebp + 8]
push eax
push 0x4974ac
and esi, 0xffdf
call fcn.00437ad0
add esp, 0xc
test al, al
jne 0x414c23
cmp si, 0x52
jne 0x414a7a
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], eax
jmp 0x414be6
cmp si, 0x4c
je 0x414d64
cmp si, 0x48
je 0x414d8e
cmp si, 0x53
je 0x414dc0
cmp si, 0x4b
je 0x414def
cmp si, 0x45
jne 0x414b76
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x4acea4]
cmp eax, ebx
je 0x414be6
push ebx
push ebx
push ebx
push 0x497480
call eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
add esi, 0x2710
call edi
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jle 0x414be3
cmp byte [0x4ab290], bl
jle 0x414be3
cmp ecx, ebx
jbe 0x414b66
cmp ecx, 0x7d0
jbe 0x414b0c
mov ecx, 0x3e8
jmp 0x414b14
cmp ecx, 0x64
jbe 0x414b14
push 0x64
pop ecx
push 0x4bf
push ecx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.USER32.DLL_MsgWaitForMultipleObjects]
jmp 0x414b66
cmp dword [ebp - 8], ebx
jg 0x414b37
call edi
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x414b6e
push 3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x414b6e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
cmp dword [ebp - 8], ebx
jle 0x414b66
dec dword [ebp - 8]
cmp byte [0x4ab290], bl
jg 0x414b28
mov dword [ebp - 8], ebx
jmp 0x414adf
cmp si, 0x4f
jne 0x414bfb
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.004103b8
add esp, 4
cmp al, bl
je 0x414bc4
xor esi, esi
cmp al, bl
je 0x414bc4
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.004103b8
add esp, 4
test al, al
jne 0x414ba2
mov eax, dword [0x4acea4]
cmp eax, ebx
je 0x414be3
push ebx
push ebx
push ebx
push 0x497480
call eax
push ebx
push esi
mov ecx, 0x4acf10
call fcn.0040d358
xor edi, edi
inc edi
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x4149ea
jmp 0x414a07
cmp si, 0x43
jne 0x414a07
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword [0x4acea4]
cmp eax, ebx
je 0x414be6
push ebx
push ebx
push ebx
push 0x497450
call eax
jmp 0x414be6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x414cf4
cmp word [eax + 2], 0x2d
je 0x414d00
push 2
pop esi
push esi
lea eax, [ebp + 8]
push eax
push 0x49744c
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x414c57
mov dword [ebp - 0xc], ebx
jmp 0x414cd4
push esi
lea eax, [ebp + 8]
push eax
push 0x497448
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x414c72
mov dword [ebp - 0xc], edi
jmp 0x414cd4
push esi
lea eax, [ebp + 8]
push eax
push 0x497444
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x414c8d
mov dword [ebp - 0x10], edi
jmp 0x414cd4
push 3
lea eax, [ebp + 8]
push eax
push 0x497440
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x414caf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
lea ecx, [eax + 6]
jmp 0x414cda
push esi
lea eax, [ebp + 8]
push eax
push 0x49743c
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x414cdf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00438b8e
pop ecx
pop ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x414cf4
lea eax, [ebp + 8]
push eax
call fcn.00410308
pop ecx
lea ecx, [ebp + 8]
call fcn.0040bc51
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x414c2e
jmp 0x414d10
add eax, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00410308
pop ecx
lea ecx, [ebp - 4]
call fcn.0040bc51
mov ecx, dword [ebp - 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x20
push ecx
push dword [eax]
call fcn.0040df1f
push 2
push 0x494fe0
call fcn.0040f24d
push 2
push 0x497408
call fcn.0040f24d
add esp, 0x18
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4949a4
push ebx
call dword [sym.imp.ADVAPI32.DLL_InitiateSystemShutdownW]
xor eax, eax
jmp 0x414a26
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0040bc51
push 2
push dword [eax]
call fcn.0040df1f
pop ecx
pop ecx
push ebx
push 0x10
call dword [sym.imp.USER32.DLL_ExitWindowsEx]
jmp 0x414e23
mov eax, dword [ebp + 8]
add eax, 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0040bc51
push 8
push dword [eax]
call fcn.0040df1f
push 2
push 0x494fe0
call fcn.0040f24d
add esp, 0x10
push edi
push ebx
call sub.KERNEL32.DLL_SetSystemPowerState
jmp 0x414e23
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x4acea0], ebx
mov dword [ebp - 4], eax
je 0x414e00
lea ecx, [ebp - 4]
call fcn.0040bc51
push 4
push dword [eax]
call fcn.0040df1f
pop ecx
pop ecx
push ebx
push edi
push ebx
call dword [0x4acea0]
jmp 0x414e23
mov eax, dword [ebp + 8]
add eax, 2
cmp dword [0x4acea0], ebx
mov dword [ebp - 4], eax
jne 0x414e07
mov eax, edi
jmp 0x414a26
lea ecx, [ebp - 4]
call fcn.0040bc51
push 0x80
push dword [eax]
call fcn.0040df1f
pop ecx
pop ecx
call dword [sym.imp.USER32.DLL_LockWorkStation]
neg eax
sbb eax, eax
inc eax
jmp 0x414a26