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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0410
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c8748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call edi
push eax
call fcn.00480c72
mov eax, dword [ebp + 0x10]
add esp, 4
sub eax, 0x113
je 0x46312e
sub eax, 0x587
je 0x463024
sub eax, 0x6f
jne 0x463107
test esi, esi
je 0x463213
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
cmp dword [ebp + 0x14], eax
jne 0x463213
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x463017
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x463213
lea edi, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
sub eax, edx
mov dword [ebp - 4], 1
test eax, 0xfffffffc
jne 0x46305a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x463107
mov ecx, dword [ebx + 0x20]
mov eax, ecx
push dword [ebp - 0x10]
sub eax, edx
sar eax, 2
push eax
push ecx
push edx
call fcn.00462950
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x4630c1
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x4630c1
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esi + edi]
sub ecx, eax
push ecx
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4630fa
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
lea ecx, [edx + 4]
sub eax, ecx
push eax
push ecx
push edx
call fcn.004790b0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0x64
jne 0x463209
lea esi, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x20]
mov eax, edx
mov ecx, dword [ebx + 0x1c]
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 4
jae 0x463168
push esi
jmp 0x4631fc
push dword [ebp - 0x10]
sar eax, 2
push eax
push edx
push ecx
call fcn.00462950
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call edi
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x4631aa
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x4631df
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call esi
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea eax, [edx + 4]
sub ecx, eax
push ecx
push eax
push edx
call fcn.004790b0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
cmp eax, 4
jb 0x4631f8
push 0
push 0
push 0x69a
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0x14]
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14