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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jmp 0x419aa8
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5bbf7c], ebx
jne 0x419aa1
xor edi, edi
inc edi
mov dword [0x5bc0e4], edi
cmp dword [0x5bbd84], ebx
jne 0x419c2f
mov dword [0x5bbf7c], edi
cmp dword [0x5bc0fc], ebx
jne 0x419af9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040236d
pop ecx
call fcn.0040237f
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x5bc0fc], eax
push 0x5bc0f0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x419b4e
mov dword [0x5bc0f0], ebx
mov dword [0x5bc0f4], ebx
cmp dword [0x5bc0f8], ebx
jne 0x419bb2
cmp dword [0x5bc100], ebx
jne 0x419bb2
mov dword [0x5bc100], edi
mov dword [0x5bbf7c], ebx
mov dword [0x5bc0e4], edi
mov dword [0x5bc0f8], ebx
call fcn.00419a8b
jmp 0x419d59
cmp dword [0x5bc0f4], ebx
jg 0x419b82
jl 0x419b64
cmp dword [0x5bc0f0], 0x3e8
jae 0x419b70
mov dword [0x5bc0f0], ebx
mov dword [0x5bc0f4], ebx
cmp dword [0x5bc0f4], ebx
jl 0x419bb2
jg 0x419b82
cmp dword [0x5bc0f0], ebx
jbe 0x419bb2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x419bb2
cmp dword [0x5bc104], ebx
jne 0x419ba6
mov dword [0x5bc104], edi
cmp dword [0x5bc0f8], ebx
je 0x419b32
mov dword [0x5bc0f0], ebx
mov dword [0x5bc0f4], ebx
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov dword [ebp - 4], edi
push edi
jmp 0x419bd6
cmp dword [ebp - 4], 0xa
jae 0x419bdc
cmp dword [0x5bc0f8], ebx
je 0x419b32
inc dword [ebp - 4]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x419bbe
cmp dword [0x5bc0f4], ebx
jl 0x419c09
jg 0x419bee
cmp dword [0x5bc0f0], ebx
jbe 0x419c09
push 0x5bc0e8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x419c09
mov dword [0x5bc0f0], ebx
mov dword [0x5bc0f4], ebx
push edi
call esi
mov dword [0x5bc0f0], ebx
mov dword [0x5bc0f4], ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5bc0e0], eax
mov dword [0x5bbd84], edi
mov dword [0x5bbf7c], ebx
cmp dword [0x5bc0f4], ebx
jl 0x419d1c
jg 0x419c4b
mov esi, dword [0x5bc0f0]
cmp esi, ebx
jbe 0x419d22
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x419c97
cmp dword [0x5bc108], ebx
jne 0x419c86
mov dword [0x5bc108], edi
cmp dword [0x5bc0f8], ebx
jne 0x419c75
mov dword [0x5bc0f8], ebx
mov dword [0x5bbd84], ebx
mov dword [0x5bc0e4], ebx
jmp 0x419b44
xor esi, esi
xor eax, eax
mov dword [0x5bc0f0], esi
mov dword [0x5bc0f4], eax
jmp 0x419ca2
mov eax, dword [0x5bc0f4]
mov esi, dword [0x5bc0f0]
cmp eax, ebx
jg 0x419ce7
jl 0x419cb0
cmp esi, 0x3e8
jae 0x419ce7
mov ecx, esi
or ecx, eax
je 0x419ce7
cmp dword [0x5bc10c], ebx
jne 0x419cd8
mov dword [0x5bc10c], edi
cmp dword [0x5bc0f8], ebx
jne 0x419cd8
mov dword [0x5bc0e4], edi
mov dword [0x5bc0f8], ebx
xor esi, esi
xor eax, eax
mov dword [0x5bc0f0], esi
mov dword [0x5bc0f4], eax
mov edi, dword [ebp - 0x10]
sub edi, dword [0x5bc0e8]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [0x5bc0ec]
push ebx
push 0x3e8
push eax
push esi
mov dword [ebp - 8], ecx
call fcn.004876f0
push edx
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call fcn.004876f0
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x419d22
mov esi, dword [0x5bc0f0]
or esi, dword [0x5bc0f4]
jne 0x419d4b
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x5bc0e0]
cmp ecx, eax
jae 0x419d46
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov dword [ebp - 8], eax
jmp 0x419d4b
sub ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [0x5bc0fc]
add eax, dword [ebp - 8]
mov dword [0x5bc0e4], ebx
pop edi
pop esi
pop ebx
leave
ret