Function at 0x49a965
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 0x49a983
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x615abc], ebp
jne 0x49a97c
xor ebx, ebx
inc ebx
cmp dword [0x615ab8], ebp
mov dword [0x615ac4], ebx
jne 0x49ab05
cmp dword [0x615adc], ebp
mov dword [0x615abc], ebx
jne 0x49a9d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004a912f
pop ecx
call fcn.004a913c
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x615adc], eax
push 0x615ad0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x49aa29
cmp dword [0x615ad8], ebp
mov dword [0x615ad0], ebp
mov dword [0x615ad4], ebp
jne 0x49aa8e
cmp dword [0x615ae0], ebp
jne 0x49aa8e
mov dword [0x615ae0], ebx
mov dword [0x615abc], ebp
mov dword [0x615ac4], ebx
mov dword [0x615ad8], ebp
call fcn.0049a965
jmp 0x49ac3c
cmp dword [0x615ad4], ebp
jg 0x49aa5d
jl 0x49aa3f
cmp dword [0x615ad0], 0x3e8
jae 0x49aa4b
mov dword [0x615ad0], ebp
mov dword [0x615ad4], ebp
cmp dword [0x615ad4], ebp
jl 0x49aa8e
jg 0x49aa5d
cmp dword [0x615ad0], ebp
jbe 0x49aa8e
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49aa8e
cmp dword [0x615ae4], ebp
jne 0x49aa82
cmp dword [0x615ad8], ebp
mov dword [0x615ae4], ebx
je 0x49aa0d
mov dword [0x615ad0], ebp
mov dword [0x615ad4], ebp
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov edi, ebx
push ebx
jmp 0x49aaac
cmp edi, 0xa
jae 0x49aab2
cmp dword [0x615ad8], ebp
je 0x49aa0d
inc edi
push edi
call esi
test eax, eax
jne 0x49aa99
cmp dword [0x615ad4], ebp
jl 0x49aadf
jg 0x49aac4
cmp dword [0x615ad0], ebp
jbe 0x49aadf
push 0x615ac8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49aadf
mov dword [0x615ad0], ebp
mov dword [0x615ad4], ebp
push ebx
call esi
mov dword [0x615ad0], ebp
mov dword [0x615ad4], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x615ac0], eax
mov dword [0x615ab8], ebx
mov dword [0x615abc], ebp
mov edi, dword [0x615ad4]
cmp edi, ebp
jl 0x49abfd
jg 0x49ab23
mov esi, dword [0x615ad0]
cmp esi, ebp
jbe 0x49ac03
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x49ab71
cmp dword [0x615ae8], ebp
jne 0x49ab5f
cmp dword [0x615ad8], ebp
mov dword [0x615ae8], ebx
jne 0x49ab4e
mov dword [0x615ad8], ebp
mov dword [0x615ab8], ebp
mov dword [0x615ac4], ebp
jmp 0x49aa1f
xor esi, esi
xor edi, edi
mov dword [0x615ad0], esi
mov dword [0x615ad4], edi
jmp 0x49ab7d
mov edi, dword [0x615ad4]
mov esi, dword [0x615ad0]
cmp edi, ebp
jg 0x49abc3
jl 0x49ab8b
cmp esi, 0x3e8
jae 0x49abc3
mov eax, esi
or eax, edi
je 0x49abc3
cmp dword [0x615aec], ebp
jne 0x49abb3
cmp dword [0x615ad8], ebp
mov dword [0x615aec], ebx
jne 0x49abb3
mov dword [0x615ac4], ebx
mov dword [0x615ad8], ebp
xor esi, esi
xor edi, edi
mov dword [0x615ad0], esi
mov dword [0x615ad4], edi
mov ebx, dword [esp + 0x14]
sub ebx, dword [0x615ac8]
mov eax, dword [esp + 0x18]
sbb eax, dword [0x615acc]
push ebp
push 0x3e8
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.004c1140
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.004c1140
mov dword [esp + 0x10], eax
xor ebp, ebp
jmp 0x49ac03
mov esi, dword [0x615ad0]
or esi, edi
jne 0x49ac2b
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [0x615ac0]
cmp eax, ecx
jae 0x49ac25
or edx, 0xffffffff
sub edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x49ac2b
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x615adc]
mov ecx, dword [esp + 0x10]
mov dword [0x615ac4], ebp
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret