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

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x52cc48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x1c], edi
test edi, edi
je 0x4aef39
mov eax, dword [edi]
test eax, eax
je 0x4aef39
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x1c]
cmp eax, 0x7530
jb 0x4af0f1
lea eax, [edi + 4]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004101d0
lea ebx, [edi + 0x10]
mov ecx, ebx
call fcn.004101d0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4af0b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54fc00
push eax
call esi
push str.RegEnumValueW
push dword [edi + 0x20]
mov dword [ebp + 0x20], eax
call esi
push 0x54fc24
push dword [edi + 0x20]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x1c], eax
je 0x4af0b2
cmp dword [ebp - 0x10], 0
je 0x4af0b2
test eax, eax
je 0x4af0b2
mov dword [ebp], 0
mov esi, 0x20019
call fcn.0042a260
test al, al
mov ecx, 0x20119
push str.SOFTWAREMicrosoftWindowsCurrentVersionApplicationAssociationToasts
cmovne esi, ecx
lea ecx, [ebp + 4]
call fcn.00408f70
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
push esi
push 0
lea ecx, [ebp + 4]
call fcn.00408e90
push eax
push SysReAllocString
call dword [ebp + 0x20]
test eax, eax
jne 0x4af0a6
push 0x208
xor esi, esi
mov dword [ebp + 0x20], 0x103
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 0x20]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x24]
push eax
push esi
push dword [ebp]
call dword [ebp - 0x10]
test eax, eax
jne 0x4af099
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp word [ebp + 0x24], 0
je 0x4af06f
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.00408f70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.0040c6a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00408080
xor eax, eax
mov dword [ebp + 0x20], 0x103
push eax
push eax
push eax
push eax
mov word [ebp + 0x24], ax
inc esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x24]
push eax
push esi
push dword [ebp]
call ebx
test eax, eax
je 0x4af041
mov edi, dword [ebp - 0x18]
lea ebx, [edi + 0x10]
push dword [ebp]
call dword [ebp - 0x1c]
mov dword [ebp], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
call fcn.00408080
push ebx
push 0
push 0
mov ecx, edi
call fcn.004af130
push ebx
push 1
push 0
mov ecx, edi
call fcn.004af130
push ebx
push 0
push 1
mov ecx, edi
call fcn.004af130
push ebx
push 1
push 1
mov ecx, edi
call fcn.004af130
push ebx
call fcn.004afb90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
test eax, eax
je 0x4af105
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x230]
pop ebp
ret