Function at 0x49c471
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
jmp 0x49c48f
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6182e0], ebp
jne 0x49c488
xor ebx, ebx
inc ebx
cmp dword [0x6182dc], ebp
mov dword [0x6182f8], ebx
jne 0x49c611
cmp dword [0x618300], ebp
mov dword [0x6182e0], ebx
jne 0x49c4e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004aba7f
pop ecx
call fcn.004aba8c
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x618300], eax
push 0x6182f0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x49c535
cmp dword [0x6182fc], ebp
mov dword [0x6182f0], ebp
mov dword [0x6182f4], ebp
jne 0x49c59a
cmp dword [0x618304], ebp
jne 0x49c59a
mov dword [0x618304], ebx
mov dword [0x6182e0], ebp
mov dword [0x6182f8], ebx
mov dword [0x6182fc], ebp
call fcn.0049c471
jmp 0x49c748
cmp dword [0x6182f4], ebp
jg 0x49c569
jl 0x49c54b
cmp dword [0x6182f0], 0x3e8
jae 0x49c557
mov dword [0x6182f0], ebp
mov dword [0x6182f4], ebp
cmp dword [0x6182f4], ebp
jl 0x49c59a
jg 0x49c569
cmp dword [0x6182f0], ebp
jbe 0x49c59a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49c59a
cmp dword [0x618308], ebp
jne 0x49c58e
cmp dword [0x6182fc], ebp
mov dword [0x618308], ebx
je 0x49c519
mov dword [0x6182f0], ebp
mov dword [0x6182f4], ebp
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov edi, ebx
push ebx
jmp 0x49c5b8
cmp edi, 0xa
jae 0x49c5be
cmp dword [0x6182fc], ebp
je 0x49c519
inc edi
push edi
call esi
test eax, eax
jne 0x49c5a5
cmp dword [0x6182f4], ebp
jl 0x49c5eb
jg 0x49c5d0
cmp dword [0x6182f0], ebp
jbe 0x49c5eb
push 0x6182e8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49c5eb
mov dword [0x6182f0], ebp
mov dword [0x6182f4], ebp
push ebx
call esi
mov dword [0x6182f0], ebp
mov dword [0x6182f4], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x6182e4], eax
mov dword [0x6182dc], ebx
mov dword [0x6182e0], ebp
mov edi, dword [0x6182f4]
cmp edi, ebp
jl 0x49c709
jg 0x49c62f
mov esi, dword [0x6182f0]
cmp esi, ebp
jbe 0x49c70f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49c67d
cmp dword [0x61830c], ebp
jne 0x49c66b
cmp dword [0x6182fc], ebp
mov dword [0x61830c], ebx
jne 0x49c65a
mov dword [0x6182fc], ebp
mov dword [0x6182dc], ebp
mov dword [0x6182f8], ebp
jmp 0x49c52b
xor esi, esi
xor edi, edi
mov dword [0x6182f0], esi
mov dword [0x6182f4], edi
jmp 0x49c689
mov edi, dword [0x6182f4]
mov esi, dword [0x6182f0]
cmp edi, ebp
jg 0x49c6cf
jl 0x49c697
cmp esi, 0x3e8
jae 0x49c6cf
mov eax, esi
or eax, edi
je 0x49c6cf
cmp dword [0x618310], ebp
jne 0x49c6bf
cmp dword [0x6182fc], ebp
mov dword [0x618310], ebx
jne 0x49c6bf
mov dword [0x6182f8], ebx
mov dword [0x6182fc], ebp
xor esi, esi
xor edi, edi
mov dword [0x6182f0], esi
mov dword [0x6182f4], edi
mov ebx, dword [esp + 0x14]
sub ebx, dword [0x6182e8]
mov eax, dword [esp + 0x18]
sbb eax, dword [0x6182ec]
push ebp
push 0x3e8
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.004c3940
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.004c3940
mov dword [esp + 0x10], eax
xor ebp, ebp
jmp 0x49c70f
mov esi, dword [0x6182f0]
or esi, edi
jne 0x49c737
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [0x6182e4]
cmp eax, ecx
jae 0x49c731
or edx, 0xffffffff
sub edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x49c737
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x618300]
mov ecx, dword [esp + 0x10]
mov dword [0x6182f8], ebp
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret