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

Disassembly:
push 0xffffffffffffffff
push 0x4a3d40
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
xor esi, esi
push eax
mov dword [esp + 0x30], esi
call fcn.00459560
add esp, 4
mov dword [esp + 0x7c], esi
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45acf8
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x7c], 1
call fcn.00468b49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45ad27
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x84]
mov ecx, ebx
mov byte [esp + 0x7c], 2
call fcn.00401580
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x38], eax
mov eax, 1
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str._Spowercfg.exe___devicequery_wake_armed
mov dword [esp + 0x48], 0x1d0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], str._Spowercfg.exe___lastwake
mov dword [esp + 0x54], 0x1cf
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], str._Spowercfg.exe___waketimers
mov dword [esp + 0x60], 0x1ce
mov dword [esp + 0x64], 3
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 0x1d2
mov dword [esp + 0x70], 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
jmp 0x45adc4
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x24], 0
je 0x45b0ef
mov ecx, dword [edi + 4]
mov ebp, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00401dd0
mov eax, dword [eax]
push eax
push str.__s_
push ebx
mov byte [esp + 0x94], 3
call fcn.004191f0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x7c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ae20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
test edx, edx
jne 0x45ae2b
mov edx, 0x4a7664
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ae30
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401760
mov ecx, dword [esp + 0x30]
push ecx
push 0x4bac48
lea ecx, [esp + 0x28]
call fcn.004066b0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x45aeb8
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x45ae92
cmp dword [ecx - 8], 0
jl 0x45b179
mov dword [ecx - 0xc], 0
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax], dx
jmp 0x45aeb8
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45aea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x38]
mov ecx, 0x32c8
sub ecx, eax
js 0x45b068
or edi, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
cmp ebp, 3
jne 0x45af46
cmp dword [0x4d7dfc], 0
jne 0x45af5d
push 1
lea ecx, [esp + 0x44]
push 0x6e4
push ecx
call fcn.004285d0
mov eax, dword [eax]
push eax
push 0x6e4
lea edx, [esp + 0x28]
push str.___d___s_
push edx
mov byte [esp + 0x98], 5
call fcn.004191f0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x7c], 2
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x45b08b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45b08b
cmp ebp, 4
jne 0x45af5d
lea ecx, [esp + 0x14]
push ecx
call fcn.00459b30
add esp, 4
jmp 0x45b08b
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
push 0
push ecx
push eax
call fcn.004312d0
add esp, 0x1c
test eax, eax
jne 0x45aff0
cmp ebp, 1
jne 0x45afd3
lea ecx, [esp + 0x14]
call fcn.00401ce0
mov ecx, eax
call fcn.00401810
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x45afd3
push ebp
lea edx, [esp + 0x40]
push 0x1d1
push edx
call fcn.00401dd0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 4
call fcn.00401a50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 2
call fcn.0041f860
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45b08b
push eax
push 0x4bac2c
push ebx
call fcn.004191f0
jmp 0x45b088
cmp eax, 2
jne 0x45b024
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
lea edx, [esp + 0x20]
push str._Error:___d__Timed_out_for_command__d__exitCode0x_X_
push edx
call fcn.004191f0
add esp, 0x14
mov dword [esp + 0x2c], 0x102
mov dword [esp + 0x24], 0
jmp 0x45b08b
cmp eax, 3
jne 0x45b048
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
lea edx, [esp + 0x20]
push str._Error:___d__Wait_for_command__d_failed__exitCode0x_X_
push edx
call fcn.004191f0
add esp, 0x14
jmp 0x45b08b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push esi
push edx
lea eax, [esp + 0x24]
push str._Error:___d__Running_command__d_failed_with_code__d__exitCode0x_X_
push eax
call fcn.004191f0
add esp, 0x18
jmp 0x45b08b
push esi
lea ecx, [esp + 0x18]
push str._Error:_Timed_out_to_run_command__d_
push ecx
call fcn.004191f0
mov dword [esp + 0x38], 0x102
mov dword [esp + 0x30], 0
add esp, 0xc
push 0xd
lea ecx, [esp + 0x18]
call fcn.004038f0
lea ecx, [esp + 0x14]
call fcn.00401ce0
mov ecx, eax
call fcn.00401810
push 2
push 0x4ae7d0
mov ecx, ebx
call fcn.00401990
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401990
inc esi
mov ecx, ebx
cmp esi, 4
jae 0x45b0d5
push 3
push 0x4baa70
jmp 0x45b0dc
push 1
push 0x4a80b8
call fcn.00401990
add dword [esp + 0x28], 0xc
cmp esi, 4
jb 0x45adc0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45b114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x7c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
push 0x80070057
call fcn.00401210
int3