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

Disassembly:
mov al, byte [0x86bfe6]
sub esp, 0x618
cmp al, 3
push ebx
push ebp
push esi
push edi
jb 0x4d7cd8
mov al, byte [0x680990]
test al, al
je 0x4d7cd8
mov eax, dword [0x69f8e8]
test eax, eax
je 0x4d7cd8
push 0x70b5b9
push 0x65aae4
push eax
call fcn.0061f482
add esp, 0xc
mov ebp, dword [esp + 0x62c]
mov esi, dword [ebp + 0x77c]
lea eax, [esp + 0x18]
push eax
mov word [ebp + 0xb18], 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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [esi + 4], eax
cmp word [0x70b460], 2
jne 0x4d7d3a
mov byte [ebp + 0xb00], 1
jmp 0x4d7d51
lea edx, [ebp + 0x7b4]
push edx
call fcn.004dc5b0
add esp, 4
cmp al, 1
jne 0x4d8017
movzx edx, word [ebp]
xor eax, eax
lea ecx, [ebp + 0x912]
lea ecx, [ecx]
movsx esi, byte [ecx]
cmp esi, edx
je 0x4d7d75
inc eax
add ecx, 0x20
cmp eax, 0x10
jl 0x4d7d60
jmp 0x4d7e2f
shl eax, 5
lea esi, [eax + ebp]
movsx eax, byte [esi + 0x912]
cmp eax, edx
jne 0x4d7e2f
mov ebx, dword [0x86b840]
lea eax, [esi + 0x8f6]
test eax, eax
je 0x4d7e2f
mov cl, byte [eax + 0x1d]
test cl, cl
jl 0x4d7e2f
cmp cl, 1
jge 0x4d7e2f
mov al, byte [eax + 0x1c]
test al, al
jl 0x4d7e2f
cmp al, 0x10
jge 0x4d7e2f
movsx ecx, byte [esi + 0x915]
push ecx
call fcn.004d7c30
movsx di, byte [esi + 0x913]
mov ecx, dword [0x86b838]
movsx edx, di
lea edx, [ecx + edx*4 + 4]
mov ecx, dword [edx]
add esp, 4
cmp ecx, 0xffffffff
je 0x4d7e02
mov ebx, dword [ebx + 0x34]
and ecx, 0xffff
shl ecx, 9
mov word [ecx + ebx + 2], 0xffff
mov ebx, dword [0x86b840]
cmp eax, 0xffffffff
mov dword [edx], eax
je 0x4d7e19
mov edx, dword [ebx + 0x34]
and eax, 0xffff
shl eax, 9
mov word [eax + edx + 2], di
movsx eax, byte [esi + 0x932]
movzx ecx, word [ebp]
add esi, 0x20
cmp eax, ecx
je 0x4d7d90
mov esi, dword [ebp + 0x77c]
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
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, 0x6932a8
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x600
call fcn.004cee20
add esp, 0x10
test al, al
je 0x4d8017
mov ax, word [0x6b1638]
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 [0x6b1638], ax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x28]
mov edi, 0x6b163a
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx edi, word [0x6b1638]
mov ebx, dword [ebp + 0x77c]
mov al, byte [ebx + 0xa8c]
shr edi, 4
shl edi, 3
test al, 1
mov byte [esp + 0x17], 0
lea ebp, [edi + 1]
jne 0x4d7f66
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 0x4d7f38
push 1
push ebx
call fcn.004dba30
add esp, 8
test al, al
je 0x4d8010
add dword [ebx + 0xa80], ebp
push 1
lea ecx, [esp + 0x1b]
mov eax, esi
call fcn.004cdc30
add esp, 4
push edi
mov ecx, 0x6b1638
mov eax, esi
mov byte [esi + 0x1c], 0
call fcn.004cdc30
add esp, 4
mov byte [esi + 0x1c], 0
mov eax, dword [esp + 0x62c]
xor esi, esi
mov word [eax + 0xb1a], 3
mov dword [eax + 0xb0c], esi
mov dword [eax + 0xb10], esi
mov byte [eax + 0xb21], 0
call fcn.00496bc0
call fcn.0046faa0
call fcn.0045b960
cmp word [0x70b460], 2
jne 0x4d7fbd
mov eax, dword [0x70e01c]
mov cl, byte [eax + 6]
shr cl, 2
test cl, 1
jne 0x4d7fbd
push eax
call fcn.004dd270
add esp, 4
cmp dword [0x70ae2c], esi
je 0x4d8010
call fcn.00449300
mov ecx, dword [0x688554]
xor edx, edx
cmp ecx, 0xffffffff
je 0x4d8003
mov esi, eax
sub esi, ecx
cmp esi, 0x7d0
jae 0x4d8003
cmp dword [0x70ae2c], 1
je 0x4d8003
sub ecx, eax
add ecx, 0x7d0
mov edx, ecx
cmp edx, 0x7d0
jbe 0x4d8003
mov edx, 0x7d0
lea edx, [edx + eax + 0x6d6]
mov dword [0x688550], edx
mov ebp, dword [esp + 0x62c]
pop edi
xor eax, eax
cmp word [ebp + 0xb1a], 3
pop esi
pop ebp
sete al
pop ebx
add esp, 0x618
ret