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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5034
call fcn.00623680
push ebx
push esi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
mov byte [esp + 0x13], 1
jns 0x4db634
add eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x10]
mov edi, dword [edx]
sub ebx, eax
lea esi, [esp + 0x28]
dec ebx
call fcn.00441cf0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp byte [edx + 4], 1
jne 0x4db659
mov eax, dword [0x6ead70]
test eax, eax
jg 0x4db677
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4db7e2
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
jns 0x4db66f
add eax, dword [ecx + 0x10]
test eax, eax
jle 0x4db7e2
test ebx, ebx
jle 0x4db7e2
cmp ebx, 0x5000
mov esi, ebx
jl 0x4db68e
mov esi, 0x5000
mov ebx, dword [edx + 0x10]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 8]
jns 0x4db69c
add eax, dword [ebx + 0x10]
cmp byte [edx + 5], 1
jne 0x4db6ab
test eax, eax
jne 0x4db6b3
jmp 0x4db7b0
test eax, eax
je 0x4db7e2
cmp eax, esi
jle 0x4db6bd
mov dword [esp + 0x18], esi
jmp 0x4db6c3
mov dword [esp + 0x18], eax
mov esi, eax
mov edi, dword [ebx + 8]
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
sub eax, edi
mov edx, esi
jns 0x4db6da
add eax, dword [ebx + 0x10]
cmp esi, eax
jg 0x4db752
mov eax, dword [ebx + 0x10]
sub eax, edi
cmp esi, eax
mov dword [esp + 0x14], edi
jl 0x4db722
mov esi, dword [ebx + 0x14]
add esi, edi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
lea ecx, [esp + eax + 0x40]
mov dword [esp + 0x1c], ecx
sub edx, eax
test edx, edx
jle 0x4db74f
mov esi, dword [ebx + 0x14]
add esi, edi
mov edi, dword [esp + 0x1c]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [ebx + 8], edi
test esi, esi
jle 0x4db7a6
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push 0x3e8
push edx
push eax
call fcn.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x40]
mov dword [ecx + 4], eax
push edx
mov edx, dword [ecx + 0xc]
mov eax, esi
call fcn.004ce500
add esp, 4
jmp 0x4db7bf
cmp esi, 0xfffffffc
je 0x4db7e2
cmp esi, 0xfffffffd
jne 0x4db7ba
mov eax, dword [ebp + 8]
or dword [eax + 0xa8c], 0x10
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
jns 0x4db7d0
add eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x10]
sub ebx, eax
mov al, byte [esp + 0x13]
dec ebx
test al, al
jne 0x4db645
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret