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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5034
call fcn.005cd210
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 0x4e0c14
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.00441ce0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp byte [edx + 4], 1
jne 0x4e0c39
mov eax, dword [0x68c5c8]
test eax, eax
jg 0x4e0c57
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4e0dc2
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
jns 0x4e0c4f
add eax, dword [ecx + 0x10]
test eax, eax
jle 0x4e0dc2
test ebx, ebx
jle 0x4e0dc2
cmp ebx, 0x5000
mov esi, ebx
jl 0x4e0c6e
mov esi, 0x5000
mov ebx, dword [edx + 0x10]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 8]
jns 0x4e0c7c
add eax, dword [ebx + 0x10]
cmp byte [edx + 5], 1
jne 0x4e0c8b
test eax, eax
jne 0x4e0c93
jmp 0x4e0d90
test eax, eax
je 0x4e0dc2
cmp eax, esi
jle 0x4e0c9d
mov dword [esp + 0x18], esi
jmp 0x4e0ca3
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 0x4e0cba
add eax, dword [ebx + 0x10]
cmp esi, eax
jg 0x4e0d32
mov eax, dword [ebx + 0x10]
sub eax, edi
cmp esi, eax
mov dword [esp + 0x14], edi
jl 0x4e0d02
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 0x4e0d2f
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 0x4e0d86
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.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
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.004d35c0
add esp, 4
jmp 0x4e0d9f
cmp esi, 0xfffffffc
je 0x4e0dc2
cmp esi, 0xfffffffd
jne 0x4e0d9a
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 0x4e0db0
add eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x10]
sub ebx, eax
mov al, byte [esp + 0x13]
dec ebx
test al, al
jne 0x4e0c25
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