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

Disassembly:
mov al, byte [0x87a7a6]
sub esp, 0x618
cmp al, 3
push ebx
push ebp
push esi
push edi
jb 0x4d99f8
mov al, byte [0x6869a0]
test al, al
je 0x4d99f8
mov eax, dword [0x6a6068]
test eax, eax
je 0x4d99f8
push 0x7197a1
push 0x65fc84
push eax
call fcn.00624032
add esp, 0xc
mov ebp, dword [esp + 0x62c]
mov esi, dword [ebp + 0xadc]
lea eax, [esp + 0x18]
push eax
mov word [ebp + 0xed8], 0xffff
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 0x3e8
push ecx
push edx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [esi + 4], eax
cmp word [0x719648], 2
jne 0x4d9a5a
mov byte [ebp + 0xec0], 1
jmp 0x4d9a71
lea edx, [ebp + 0xb14]
push edx
call fcn.004de760
add esp, 4
cmp al, 1
jne 0x4d9d37
movzx edx, word [ebp]
xor eax, eax
lea ecx, [ebp + 0xcd2]
lea ecx, [ecx]
movsx esi, byte [ecx]
cmp esi, edx
je 0x4d9a95
inc eax
add ecx, 0x20
cmp eax, 0x10
jl 0x4d9a80
jmp 0x4d9b4f
shl eax, 5
lea esi, [eax + ebp]
movsx eax, byte [esi + 0xcd2]
cmp eax, edx
jne 0x4d9b4f
mov ebx, dword [0x87a020]
lea eax, [esi + 0xcb6]
test eax, eax
je 0x4d9b4f
mov cl, byte [eax + 0x1d]
test cl, cl
jl 0x4d9b4f
cmp cl, 1
jge 0x4d9b4f
mov al, byte [eax + 0x1c]
test al, al
jl 0x4d9b4f
cmp al, 0x10
jge 0x4d9b4f
movsx ecx, byte [esi + 0xcd5]
push ecx
call fcn.004d9950
movsx di, byte [esi + 0xcd3]
mov ecx, dword [0x87a018]
movsx edx, di
lea edx, [ecx + edx*4 + 4]
mov ecx, dword [edx]
add esp, 4
cmp ecx, 0xffffffff
je 0x4d9b22
mov ebx, dword [ebx + 0x34]
and ecx, 0xffff
shl ecx, 9
mov word [ecx + ebx + 2], 0xffff
mov ebx, dword [0x87a020]
cmp eax, 0xffffffff
mov dword [edx], eax
je 0x4d9b39
mov edx, dword [ebx + 0x34]
and eax, 0xffff
shl eax, 9
mov word [eax + edx + 2], di
movsx eax, byte [esi + 0xcf2]
movzx ecx, word [ebp]
add esi, 0x20
cmp eax, ecx
je 0x4d9ab0
mov esi, dword [ebp + 0xadc]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
push 1
mov dword [esi + 4], eax
push 0x1a
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
mov ebx, 0x699508
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x600
call fcn.004d0b20
add esp, 0x10
test al, al
je 0x4d9d37
mov ax, word [0x6b7ec0]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 2]
and ax, 0xf
shl edx, 4
or ax, dx
and ax, 0xfff3
movzx ecx, cx
or ax, 0xc
and ax, 0xfffc
mov word [0x6b7ec0], ax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x28]
mov edi, 0x6b7ec2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx edi, word [0x6b7ec0]
mov ebx, dword [ebp + 0xadc]
mov al, byte [ebx + 0xa8c]
shr edi, 4
shl edi, 3
test al, 1
mov byte [esp + 0x17], 0
lea ebp, [edi + 1]
jne 0x4d9c86
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
lea esi, [ebx + 0x10]
shl ecx, 3
sub edx, ecx
sub edx, eax
inc edx
cmp ebp, edx
jle 0x4d9c58
push 1
push ebx
call fcn.004ddbe0
add esp, 8
test al, al
je 0x4d9d30
add dword [ebx + 0xa80], ebp
push 1
lea ecx, [esp + 0x1b]
mov eax, esi
call fcn.004cf930
add esp, 4
push edi
mov ecx, 0x6b7ec0
mov eax, esi
mov byte [esi + 0x1c], 0
call fcn.004cf930
add esp, 4
mov byte [esi + 0x1c], 0
mov eax, dword [esp + 0x62c]
xor esi, esi
mov word [eax + 0xeda], 3
mov dword [eax + 0xecc], esi
mov dword [eax + 0xed0], esi
mov byte [eax + 0xee1], 0
call fcn.00498700
call fcn.00470ce0
call fcn.0045ba10
cmp word [0x719648], 2
jne 0x4d9cdd
mov eax, dword [0x71c1fc]
mov cl, byte [eax + 6]
shr cl, 2
test cl, 1
jne 0x4d9cdd
push eax
call fcn.004df530
add esp, 4
cmp dword [0x718eb4], esi
je 0x4d9d30
call fcn.00449380
mov ecx, dword [0x68e684]
xor edx, edx
cmp ecx, 0xffffffff
je 0x4d9d23
mov esi, eax
sub esi, ecx
cmp esi, 0x7d0
jae 0x4d9d23
cmp dword [0x718eb4], 1
je 0x4d9d23
sub ecx, eax
add ecx, 0x7d0
mov edx, ecx
cmp edx, 0x7d0
jbe 0x4d9d23
mov edx, 0x7d0
lea edx, [edx + eax + 0x6d6]
mov dword [0x68e680], edx
mov ebp, dword [esp + 0x62c]
pop edi
xor eax, eax
cmp word [ebp + 0xeda], 3
pop esi
pop ebp
sete al
pop ebx
add esp, 0x618
ret