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

Disassembly:
push 0xc8
mov eax, 0x1031a002
call fcn.10279189
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x64], ebx
call edi
mov ecx, ebx
call fcn.100988ca
mov cl, byte [ebx + 0xb8]
test cl, 1
jne 0x100999a4
mov dl, byte [0x10666f80]
and dword [ebp - 4], 0
test dl, 2
je 0x10099447
cmp dword [ebx + 0xa0], 0
jg 0x10099447
test cl, 0x20
jne 0x10099447
xor eax, eax
inc eax
jmp 0x10099449
xor al, al
mov byte [ebp - 0x60], al
mov dword [ebp - 0x5c], eax
mov al, cl
and al, 8
shr dl, 7
add al, al
mov byte [ebp - 0x55], 0
and cl, 0xc7
mov byte [ebp - 0x56], dl
or al, cl
mov byte [ebp - 0x8c], 1
mov ecx, dword [ebx + 0xac]
mov byte [ebx + 0xb8], al
add ecx, 0x10
mov eax, dword [ebx + 0xb0]
add eax, 0x10
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x7c]
push eax
call edi
mov ecx, dword [ebx + 0x78]
mov byte [ebp - 4], 1
call fcn.10065671
mov ecx, ebx
fstp st(0)
call fcn.1009a10c
lea ecx, [ebp - 0x8c]
call fcn.10097722
cmp byte [ebp - 0x56], 0
mov byte [ebp - 0x57], 0
mov byte [ebp - 4], 2
je 0x100994d9
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x84]
and dword [ebx + 0x50], 0
mov eax, dword [ebx + 0xb0]
and dword [ebp - 0x84], 0
add eax, 0x18
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x8c], 1
call edi
mov byte [ebp - 4], 3
xor edi, edi
cmp edi, 2
jae 0x100995b3
mov esi, dword [ebx + 0x68]
mov esi, dword [esi + 4]
mov eax, dword [ebx + 0x68]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
je 0x100995ad
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x110]
cmp eax, dword [edx + 0x114]
sete al
xor ecx, ecx
test al, al
sete cl
xor eax, eax
test edi, edi
setne al
cmp ecx, eax
je 0x10099511
cmp byte [ebp - 0x56], 0
je 0x1009956e
lea eax, [ebp - 0x94]
mov ecx, edx
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1006f09a
mov eax, dword [ebp - 0x90]
imul eax, dword [ebp - 0x94]
add dword [ebx + 0x50], eax
mov ecx, dword [esi + 0xc]
call fcn.1006f1bf
test al, al
je 0x1009958b
mov eax, dword [ebx + 0xac]
inc dword [eax + 0x28]
mov ecx, dword [esi + 0xc]
call fcn.1006f27b
mov ecx, dword [esi + 0xc]
call fcn.10070693
mov cl, al
xor edx, edx
mov eax, dword [ebp - 0x5c]
test cl, cl
movzx eax, al
cmovne eax, edx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x60], al
jmp 0x10099511
inc edi
jmp 0x10099502
lea ecx, [ebp - 0x8c]
call fcn.10097722
mov eax, dword [ebx + 0xb0]
and dword [ebp - 0x84], 0
add eax, 0x60
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x8c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor esi, esi
mov dword [ebp - 0x5c], esi
test byte [ebx + 0xb8], 0x80
mov byte [ebp - 4], 5
jne 0x100996d8
mov edi, dword [ebx + 0x68]
mov edi, dword [edi + 4]
mov eax, dword [ebx + 0x68]
mov edi, dword [edi]
cmp edi, dword [eax + 4]
je 0x100996dc
mov ecx, dword [edi + 0xc]
call fcn.1006f21d
test eax, eax
jne 0x10099601
test esi, esi
setne al
test al, al
sete al
test al, al
je 0x1009967b
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x104]
cmp eax, dword [ecx + 0x108]
sete al
test al, al
jne 0x1009967b
push 1
push 8
call fcn.10025730
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10099661
mov ecx, eax
call fcn.10097426
mov ecx, eax
jmp 0x10099663
xor ecx, ecx
mov eax, esi
mov byte [ebp - 4], 5
mov esi, ecx
mov dword [ebp - 0x5c], esi
test eax, eax
je 0x1009967b
push eax
lea ecx, [ebp - 0x5c]
call fcn.100978dd
push dword [ebp - 0x60]
mov ecx, dword [edi + 0xc]
call fcn.10070082
test al, al
je 0x10099601
mov eax, dword [ebx + 0xac]
mov byte [ebp - 0x55], 1
mov byte [ebp - 0x60], 0
inc dword [eax + 0x24]
jmp 0x10099601
mov byte [ebp - 0x57], 1
test esi, esi
je 0x100996e9
push esi
lea ecx, [ebp - 0x5c]
call fcn.100978dd
lea ecx, [ebp - 0x8c]
call fcn.10097722
and dword [ebp - 4], 0
cmp byte [ebp - 0x57], 0
je 0x10099718
mov eax, dword [ebx + 0x68]
mov esi, dword [eax + 4]
jmp 0x10099711
mov ecx, dword [esi + 0xc]
call fcn.1006eef0
mov eax, dword [ebx + 0x68]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
jne 0x10099706
mov esi, dword [ebx + 0x3c]
test esi, esi
je 0x10099747
mov esi, dword [esi]
mov eax, dword [ebx + 0x3c]
cmp esi, dword [eax + 4]
je 0x10099735
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 4
jmp 0x10099721
mov esi, eax
push esi
push dword [esi + 4]
push dword [esi]
call fcn.10043455
mov eax, dword [esi]
mov dword [esi + 4], eax
cmp byte [ebp - 0x55], 0
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
je 0x10099817
lea eax, [ebp - 0x6c]
push eax
call edi
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x68]
sbb eax, dword [ebp - 0x70]
push eax
push ecx
call fcn.100ae067
mov eax, dword [ebx + 0x98]
or eax, dword [ebx + 0x9c]
fstp qword [ebp - 0xa0]
movsd xmm1, qword [ebp - 0xa0]
movsd qword [ebx + 0x88], xmm1
jne 0x100997d2
mov al, byte [ebx + 0xb8]
and al, 0x18
cmp al, 0x18
jne 0x100997d2
movsd xmm2, qword [ebx + 0x80]
ucomisd xmm2, qword [0x10334f00]
lahf
test ah, 0x44
jnp 0x100997ca
mulsd xmm1, qword [0x10341e28]
mulsd xmm2, qword [0x10341e28]
addsd xmm1, xmm2
movsd qword [ebx + 0x80], xmm1
mov eax, dword [ebp - 0x6c]
and dword [ebx + 0x98], 0
and dword [ebx + 0x9c], 0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x10099810
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], fcn.1011565a
push ecx
push dword [eax + 4]
push dword [eax]
call fcn.10097369
mov ecx, dword [ebx + 0x34]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, ebx
call fcn.1009880a
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x1009983d
mov esi, dword [esi]
mov eax, dword [ebx + 0x38]
cmp esi, dword [eax + 4]
je 0x10099836
mov ecx, dword [esi + 4]
push dword [esi]
mov eax, dword [ecx]
call dword [eax]
add esi, 8
jmp 0x10099820
mov ecx, eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
cmp dword [ebx + 0x3c], 0
je 0x10099881
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x88]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
jne 0x10099867
test eax, eax
je 0x1009986d
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
test ecx, ecx
jne 0x1009987b
test eax, eax
je 0x10099881
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
cmp byte [ebp - 0x55], 0
jne 0x10099937
mov ecx, ebx
call fcn.100987e0
test al, al
je 0x100998a4
push 0x3c
mov ecx, ebx
call fcn.10099bcf
jmp 0x10099937
lea eax, [ebp - 0xb8]
push eax
call edi
mov ecx, dword [ebx + 0x2c]
call fcn.10071537
mov esi, eax
test esi, esi
jne 0x100998c0
mov esi, dword [ebx + 0x30]
jmp 0x100998ce
push str.Render_Thread_is_waiting_on_a_long_running_channel_command._n
push 0x10
push 2
call fcn.10052e6b
and dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], esi
call fcn.10098495
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.100984bb
lea eax, [ebp - 0xb0]
push eax
call edi
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xac]
sbb eax, dword [ebp - 0xb4]
add dword [ebx + 0x98], ecx
adc dword [ebx + 0x9c], eax
push 1
mov ecx, ebx
call fcn.10097baa
mov ecx, ebx
call fcn.100988ca
mov eax, dword [ebx + 0xb0]
and dword [ebp - 0xcc], 0
add eax, 8
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 0xd4], 0
call edi
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.10098928
lea ecx, [ebp - 0xd4]
call fcn.10097722
or dword [ebp - 4], 0xffffffff
jmp 0x10099416
mov ecx, ebx
call fcn.1009880a
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.102790da
ret