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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [0x5ce524]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a7537
movzx ebx, byte [ebp + 8]
mov edi, dword [0x5ce520]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4a757c
movzx esi, bl
dec esi
or esi, 1
add esi, dword [0x5ce4d4]
mov dword [0x5ce4d4], esi
mov ecx, 1
test byte [0x5ce4d0], 1
je 0x4a752d
test esi, esi
cmove ecx, esi
mov eax, dword [0x5ce4d8]
cmp ecx, eax
je 0x4a74fa
test eax, eax
je 0x4a7475
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov ecx, dword [0x5c947c]
cmp ecx, 0x4a7720
je 0x4a739d
call dword [0x5c0d2c]
lea edi, [esp + 0x20]
push edi
call ecx
add esp, 4
mov eax, dword [edi]
mov edx, dword [edi + 4]
jmp 0x4a73f1
xor eax, eax
lea edi, [esp + 0x20]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
cmp eax, 0x7bd05af7
mov ecx, ebx
sbb ecx, 0x863
jge 0x4a7658
mov ecx, 0xf4240
mul ecx
imul ecx, ebx, 0xf4240
add ecx, edx
push dword [0x5ce53c]
push dword [0x5ce538]
push ecx
push eax
call fcn.0051a300
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
sub eax, dword [0x5ce528]
sbb edx, dword [0x5ce52c]
seto bl
mov ecx, edx
sar ecx, 0x1f
test bl, bl
cmovne eax, ecx
add ecx, 0x80000000
test bl, bl
cmove ecx, edx
mov edx, eax
add edx, 1
mov edi, ecx
adc edi, 0x80000000
cmp edx, 2
sbb edi, 0
mov edx, dword [0x5ce4e4]
mov edi, dword [0x5ce4e0]
jb 0x4a7588
add edi, eax
adc edx, ecx
seto bl
mov eax, edx
sar eax, 0x1f
lea ecx, [eax - 0x80000000]
test bl, bl
cmove eax, edi
test bl, bl
cmove ecx, edx
mov dword [0x5ce4e0], eax
mov dword [0x5ce4e4], ecx
push dword [0x5ce4d8]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x5ce4d8], ecx
test esi, esi
je 0x4a74fa
mov ecx, dword [0x5c947c]
cmp ecx, 0x4a7720
jne 0x4a7516
mov ebx, edi
xor eax, eax
lea esi, [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esi]
mov esi, dword [esi + 4]
cmp edi, 0x7bd05af7
mov eax, esi
sbb eax, 0x863
jge 0x4a75ca
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x5ce53c]
push dword [0x5ce538]
push ecx
push eax
call fcn.0051a300
mov edi, ebx
mov dword [0x5ce528], eax
mov dword [0x5ce52c], edx
push dword [0x5ce4d8]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004f5620
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [0x5c0d2c]
lea esi, [esp + 0x20]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4a74e3
mov ecx, 8
jmp 0x4a7356
push 0x5ce524
call fcn.004f50f1
add esp, 4
cmp dword [0x5ce524], 0xffffffff
jne 0x4a7318
push 4
call fcn.004f507e
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.004a7a40
mov dword [0x5ce520], esi
push 0x5ce524
call fcn.004f516b
add esp, 4
jmp 0x4a7318
mov ecx, edi
call fcn.004a7a50
jmp 0x4a7331
mov dword [esp], edi
xor ebx, ebx
inc ebx
add dword [esp], ebx
mov ebx, edx
adc ebx, 0x80000000
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
xor ebx, ebx
inc ebx
cmp ebx, dword [esp]
mov ebx, dword [esp + 4]
sbb ebx, dword [esp + 8]
setb bl
xor edi, eax
xor edx, ecx
or edx, edi
sete dl
or dl, bl
jne 0x4a7456
int3
mov eax, dword [0x5ce538]
mov dword [esp + 0x10], eax
mov ecx, dword [0x5ce53c]
mov dword [esp + 0x14], ecx
push ecx
push eax
push esi
push edi
call fcn.0051a300
mov dword [esp], eax
mov dword [esp + 0xc], edx
mul dword [esp + 0x10]
mov dword [esp + 4], eax
mov ecx, dword [esp]
imul ecx, dword [esp + 0x14]
add edx, ecx
mov eax, dword [esp + 0xc]
imul ecx, eax, 0xf4240
mov dword [esp + 8], ecx
imul eax, dword [esp + 0x10]
add eax, edx
sub edi, dword [esp + 4]
sbb esi, eax
mov ecx, 0xf4240
mov eax, dword [esp]
mul ecx
mov dword [esp], eax
add edx, dword [esp + 8]
mov dword [esp + 8], edx
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push edx
push eax
call fcn.0051a300
add eax, dword [esp]
adc edx, dword [esp + 8]
mov edi, ebx
jmp 0x4a74e3
mov edi, dword [0x5ce538]
mov dword [esp + 8], edi
mov ecx, dword [0x5ce53c]
mov dword [esp], ecx
push ecx
push edi
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.0051a300
mov dword [esp + 4], eax
mov ecx, edx
mov eax, dword [esp + 4]
mul edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov edi, eax
imul edi, dword [esp]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esp + 0x1c], edi
imul ecx, dword [esp + 8]
add ecx, edx
mov edi, dword [esp + 0xc]
sub edi, dword [esp + 0x18]
sbb ebx, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 4], eax
add edx, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov eax, edi
mul ecx
imul ecx, ebx, 0xf4240
add edx, ecx
push dword [esp]
push dword [esp + 0xc]
push edx
push eax
call fcn.0051a300
add eax, dword [esp + 4]
adc edx, dword [esp + 0xc]
jmp 0x4a73e9