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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1007f098]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x10005bde
mov eax, 0xfffffc18
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x10005dde
movsd xmm0, qword [esp + 0x30]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10040c9b
add esp, 8
cmp eax, esi
je 0x10005dc9
cmp byte [edi + 0x15], 0
jne 0x10005de5
lea eax, [esp + 8]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 8]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0xc]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x44]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x3c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push ecx
call fcn.1000b580
add esp, 4
mov edx, str.__Switching_sample_rate_from
mov ecx, esi
call fcn.10002460
movsd xmm0, qword [esp + 0x30]
sub esp, 8
mov esi, eax
movsd qword [esp], xmm0
call fcn.10040c9b
add esp, 8
mov ecx, esi
push eax
call fcn.10008090
mov edx, str._to
mov ecx, eax
call fcn.10002460
mov esi, dword [esp + 0x2c]
mov ecx, eax
push esi
call fcn.10007ed0
mov edx, 0x10072eec
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
mov ecx, dword [edi + 0xc]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
addsd xmm0, qword [esi*8 + 0x10076cb0]
movsd qword [esp], xmm0
call eax
test eax, eax
jne 0x10005dde
movsd xmm0, qword [esp + 0x30]
lea eax, [esp + 8]
movsd qword [esp + 0x10], xmm0
mov byte [esp + 0x18], 1
movups xmm0, xmmword [esp + 0x10]
push eax
movups xmmword [edi + 0xd0], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 8]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0xc]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x44]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x3c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str._Waiting_5_seconds_to_give_driver_time_to_refresh
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.100075b0
mov ecx, dword [esp + 0x4c]
mov eax, 0xfffffc19
pop edi
pop esi
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 4