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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jmp 0x41b847
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5e84b8], ebx
jne 0x41b840
xor edi, edi
inc edi
mov dword [0x5e84d0], edi
cmp dword [0x5e84b4], ebx
jne 0x41b9ce
mov dword [0x5e84b8], edi
cmp dword [0x5e84d8], ebx
jne 0x41b898
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040236d
pop ecx
call fcn.0040237f
cdq
mov ecx, 0x36ee80
idiv ecx
mov eax, 0x2932e00
sub eax, edx
mov dword [0x5e84d8], eax
push 0x5e84c8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x41b8ed
mov dword [0x5e84c8], ebx
mov dword [0x5e84cc], ebx
cmp dword [0x5e84d4], ebx
jne 0x41b951
cmp dword [0x5e84dc], ebx
jne 0x41b951
mov dword [0x5e84dc], edi
mov dword [0x5e84b8], ebx
mov dword [0x5e84d0], edi
mov dword [0x5e84d4], ebx
call fcn.0041b82a
jmp 0x41baf8
cmp dword [0x5e84cc], ebx
jg 0x41b921
jl 0x41b903
cmp dword [0x5e84c8], 0x3e8
jae 0x41b90f
mov dword [0x5e84c8], ebx
mov dword [0x5e84cc], ebx
cmp dword [0x5e84cc], ebx
jl 0x41b951
jg 0x41b921
cmp dword [0x5e84c8], ebx
jbe 0x41b951
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x41b951
cmp dword [0x5e84e0], ebx
jne 0x41b945
mov dword [0x5e84e0], edi
cmp dword [0x5e84d4], ebx
je 0x41b8d1
mov dword [0x5e84c8], ebx
mov dword [0x5e84cc], ebx
mov esi, dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov dword [ebp - 4], edi
push edi
jmp 0x41b975
cmp dword [ebp - 4], 0xa
jae 0x41b97b
cmp dword [0x5e84d4], ebx
je 0x41b8d1
inc dword [ebp - 4]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41b95d
cmp dword [0x5e84cc], ebx
jl 0x41b9a8
jg 0x41b98d
cmp dword [0x5e84c8], ebx
jbe 0x41b9a8
push 0x5e84c0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x41b9a8
mov dword [0x5e84c8], ebx
mov dword [0x5e84cc], ebx
push edi
call esi
mov dword [0x5e84c8], ebx
mov dword [0x5e84cc], ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5e84bc], eax
mov dword [0x5e84b4], edi
mov dword [0x5e84b8], ebx
cmp dword [0x5e84cc], ebx
jl 0x41babb
jg 0x41b9ea
mov esi, dword [0x5e84c8]
cmp esi, ebx
jbe 0x41bac1
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x41ba36
cmp dword [0x5e84e4], ebx
jne 0x41ba25
mov dword [0x5e84e4], edi
cmp dword [0x5e84d4], ebx
jne 0x41ba14
mov dword [0x5e84d4], ebx
mov dword [0x5e84b4], ebx
mov dword [0x5e84d0], ebx
jmp 0x41b8e3
xor esi, esi
xor eax, eax
mov dword [0x5e84c8], esi
mov dword [0x5e84cc], eax
jmp 0x41ba41
mov eax, dword [0x5e84cc]
mov esi, dword [0x5e84c8]
cmp eax, ebx
jg 0x41ba86
jl 0x41ba4f
cmp esi, 0x3e8
jae 0x41ba86
mov ecx, esi
or ecx, eax
je 0x41ba86
cmp dword [0x5e84e8], ebx
jne 0x41ba77
mov dword [0x5e84e8], edi
cmp dword [0x5e84d4], ebx
jne 0x41ba77
mov dword [0x5e84d0], edi
mov dword [0x5e84d4], ebx
xor esi, esi
xor eax, eax
mov dword [0x5e84c8], esi
mov dword [0x5e84cc], eax
mov edi, dword [ebp - 0x10]
sub edi, dword [0x5e84c0]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [0x5e84c4]
push ebx
push 0x3e8
push eax
push esi
mov dword [ebp - 8], ecx
call fcn.004a29b0
push edx
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call fcn.004a29b0
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x41bac1
mov esi, dword [0x5e84c8]
or esi, dword [0x5e84cc]
jne 0x41baea
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x5e84bc]
cmp ecx, eax
jae 0x41bae5
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov dword [ebp - 8], eax
jmp 0x41baea
sub ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [0x5e84d8]
add eax, dword [ebp - 8]
mov dword [0x5e84d0], ebx
pop edi
pop esi
pop ebx
leave
ret