Function at 0x422949
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x496fc8]
push ebx
push esi
xor ecx, ecx
cmp eax, ecx
push edi
mov ebx, 0x456
mov edi, str.PECMD2012
mov esi, 0x4971e8
je 0x422987
cmp byte [0x496dcc], cl
je 0x422987
cmp eax, dword [ebp + 0x10]
jne 0x422987
push ebx
push ecx
push edi
push dword [ebp + 0xc]
push esi
call fcn.004278ae
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, 0x312
cmp edx, eax
ja 0x422bcd
je 0x422b01
mov eax, edx
dec eax
je 0x422adc
dec eax
je 0x422a9f
sub eax, 0x10f
je 0x422c4f
mov edi, dword [sym.imp.USER32.dll_KillTimer]
dec eax
dec eax
je 0x422a03
sub eax, 0x106
jne 0x422be3
mov ebx, dword [ebp + 0x14]
mov esi, 0x8000
cmp ebx, esi
jne 0x4229e0
push esi
call fcn.00430622
pop ecx
cmp ebx, 0x8004
je 0x422c4f
cmp ebx, esi
je 0x422c4f
cmp ebx, 0x17
jb 0x422a10
cmp ebx, 0x19
ja 0x422a10
jmp 0x422c4f
cmp dword [ebp + 0x14], 0x14
jne 0x422a55
push 0x14
push dword [ebp + 0xc]
call edi
mov al, byte [0x495277]
test al, al
jle 0x422c4f
cmp al, 0x10
je 0x422c4f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xa
push dword [ebp + 0xc]
mov dword [0x496e50], eax
mov byte [0x495277], 2
call edi
push 0
push 0xc8
push 0xa
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x422c4f
cmp dword [ebp + 0x14], 0xa
jne 0x422c4f
mov esi, dword [0x496e50]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [0x49527c]
jb 0x422c4f
push 0xa
push dword [ebp + 0xc]
mov byte [0x495277], 0x10
call dword [sym.imp.USER32.dll_KillTimer]
push 0
call fcn.00430622
pop ecx
mov byte [0x495277], 1
jmp 0x422c4f
cmp word [0x496de0], 1
jle 0x422ad0
dec word [0x496de0]
movsx eax, word [0x496de0]
push eax
push dword [0x496dd8]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
cmp word [0x496de0], 1
jg 0x422aa9
xor ecx, ecx
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x422c4f
cmp byte [0x496dcc], 0
je 0x422c4f
push ecx
push ecx
push 0x44b
push dword [0x496dd8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x422c4f
mov dword [ebp + 0xc], ecx
push 0x303a
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x18], 0x80070057
call fcn.0042c827
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
lea esi, [eax + 0x64]
push str.HotKey_d
xor edi, edi
push eax
mov ebx, eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x3000
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x186a0
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.SOFTWAREPELOGON
push 0x80000002
mov word [esi], di
call fcn.00428081
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ecx]
add esp, 0x24
cmp ax, di
je 0x422bbd
push eax
call fcn.0040efef
add esp, 4
test al, al
je 0x422ba9
push 0x2c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042ee9d
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042ee9d
mov ecx, dword [ebp + 0xc]
add esp, 0x18
cmp word [ecx], di
je 0x422bbd
push edi
push edi
push edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.00420f64
mov dword [ebp + 0x18], eax
lea ecx, [ebp + 0x10]
call fcn.00427365
mov eax, dword [ebp + 0x18]
jmp 0x422c51
mov eax, edx
sub eax, 0x446
je 0x422c3e
sub eax, 4
je 0x422c47
dec eax
je 0x422c27
sub eax, 0xb
je 0x422bf5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x422c51
cmp byte [0x4971e8], 0
je 0x422c4f
mov eax, dword [ebp + 0x18]
cmp eax, 0x206
je 0x422c16
cmp eax, 0x205
je 0x422c16
cmp eax, 0x204
jne 0x422c4f
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0042282d
add esp, 0xc
jmp 0x422c4f
cmp byte [0x4971e8], 0
jne 0x422c4f
push ebx
push ecx
push edi
push dword [ebp + 0xc]
push esi
call fcn.004278ae
jmp 0x422c4f
push ecx
mov ecx, dword [ebp + 8]
call fcn.004121b0
mov ecx, dword [ebp + 8]
call fcn.00412421
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14