Function at 0x4af84c
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 0x4af86a
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x626a90], ebp
jne 0x4af863
xor ebx, ebx
inc ebx
cmp dword [0x626a8c], ebp
mov dword [0x626aa8], ebx
jne 0x4af9ec
cmp dword [0x626ab0], ebp
mov dword [0x626a90], ebx
jne 0x4af8bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004c0a7f
pop ecx
call fcn.004c0a8c
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x626ab0], eax
push 0x626aa0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x4af910
cmp dword [0x626aac], ebp
mov dword [0x626aa0], ebp
mov dword [0x626aa4], ebp
jne 0x4af975
cmp dword [0x626ab4], ebp
jne 0x4af975
mov dword [0x626ab4], ebx
mov dword [0x626a90], ebp
mov dword [0x626aa8], ebx
mov dword [0x626aac], ebp
call fcn.004af84c
jmp 0x4afb23
cmp dword [0x626aa4], ebp
jg 0x4af944
jl 0x4af926
cmp dword [0x626aa0], 0x3e8
jae 0x4af932
mov dword [0x626aa0], ebp
mov dword [0x626aa4], ebp
cmp dword [0x626aa4], ebp
jl 0x4af975
jg 0x4af944
cmp dword [0x626aa0], ebp
jbe 0x4af975
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4af975
cmp dword [0x626ab8], ebp
jne 0x4af969
cmp dword [0x626aac], ebp
mov dword [0x626ab8], ebx
je 0x4af8f4
mov dword [0x626aa0], ebp
mov dword [0x626aa4], ebp
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov edi, ebx
push ebx
jmp 0x4af993
cmp edi, 0xa
jae 0x4af999
cmp dword [0x626aac], ebp
je 0x4af8f4
inc edi
push edi
call esi
test eax, eax
jne 0x4af980
cmp dword [0x626aa4], ebp
jl 0x4af9c6
jg 0x4af9ab
cmp dword [0x626aa0], ebp
jbe 0x4af9c6
push 0x626a98
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4af9c6
mov dword [0x626aa0], ebp
mov dword [0x626aa4], ebp
push ebx
call esi
mov dword [0x626aa0], ebp
mov dword [0x626aa4], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x626a94], eax
mov dword [0x626a8c], ebx
mov dword [0x626a90], ebp
mov edi, dword [0x626aa4]
cmp edi, ebp
jl 0x4afae4
jg 0x4afa0a
mov esi, dword [0x626aa0]
cmp esi, ebp
jbe 0x4afaea
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4afa58
cmp dword [0x626abc], ebp
jne 0x4afa46
cmp dword [0x626aac], ebp
mov dword [0x626abc], ebx
jne 0x4afa35
mov dword [0x626aac], ebp
mov dword [0x626a8c], ebp
mov dword [0x626aa8], ebp
jmp 0x4af906
xor esi, esi
xor edi, edi
mov dword [0x626aa0], esi
mov dword [0x626aa4], edi
jmp 0x4afa64
mov edi, dword [0x626aa4]
mov esi, dword [0x626aa0]
cmp edi, ebp
jg 0x4afaaa
jl 0x4afa72
cmp esi, 0x3e8
jae 0x4afaaa
mov eax, esi
or eax, edi
je 0x4afaaa
cmp dword [0x626ac0], ebp
jne 0x4afa9a
cmp dword [0x626aac], ebp
mov dword [0x626ac0], ebx
jne 0x4afa9a
mov dword [0x626aa8], ebx
mov dword [0x626aac], ebp
xor esi, esi
xor edi, edi
mov dword [0x626aa0], esi
mov dword [0x626aa4], edi
mov ebx, dword [esp + 0x14]
sub ebx, dword [0x626a98]
mov eax, dword [esp + 0x18]
sbb eax, dword [0x626a9c]
push ebp
push 0x3e8
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.004d8ac0
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.004d8ac0
mov dword [esp + 0x10], eax
xor ebp, ebp
jmp 0x4afaea
mov esi, dword [0x626aa0]
or esi, edi
jne 0x4afb12
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [0x626a94]
cmp eax, ecx
jae 0x4afb0c
or edx, 0xffffffff
sub edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x4afb12
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [0x626ab0]
mov ecx, dword [esp + 0x10]
mov dword [0x626aa8], ebp
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret