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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [0x1007f098]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [esp + 0x18]
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 0x10]
push eax
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str.DebugDeviceEnum::GetDefaultAudioEndpoint___dataFlow:
mov ecx, eax
call fcn.10002460
mov ecx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1002392b
mov edx, str.eRender
jmp 0x1002394c
cmp eax, 1
jne 0x10023937
mov edx, str.eCapture
jmp 0x1002394c
cmp eax, 2
mov dword [esp + 0x18], 0x100765dc
mov edx, str.eAll
cmovne edx, dword [esp + 0x18]
call fcn.10002460
mov edx, str.___role:
mov ecx, eax
call fcn.10002460
mov ecx, edi
sub ecx, 0
je 0x10023983
sub ecx, 1
je 0x1002397c
sub ecx, 1
je 0x10023975
mov edx, 0x100765dc
jmp 0x10023988
mov edx, str.eCommunications
jmp 0x10023988
mov edx, str.eMultimedia
jmp 0x10023988
mov edx, str.eConsole
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
cmp byte [esi + 8], 0
je 0x100239a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test ebx, ebx
jne 0x100239b0
mov esi, 0x80004003
jmp 0x10023a03
cmp edi, 2
ja 0x100239fe
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100239e1
mov ecx, dword [esi + edi*4 + 0x3c]
test ecx, ecx
je 0x100239d4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + edi*4 + 0x3c]
xor esi, esi
mov dword [ebx], eax
jmp 0x10023a03
mov dword [ebx], 0
mov esi, 0x80070490
jmp 0x10023a03
cmp eax, 1
jne 0x100239fe
mov ecx, dword [esi + edi*4 + 0x48]
test ecx, ecx
je 0x100239d4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + edi*4 + 0x48]
xor esi, esi
mov dword [ebx], eax
jmp 0x10023a03
mov esi, 0x80070057
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x24], xmm0
call edi
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str.__hr:
mov ecx, eax
call fcn.10002460
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov ecx, eax
call fcn.10024ee0
push eax
call fcn.10002700
add esp, 4
test ebx, ebx
je 0x10023b29
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x24], xmm0
call edi
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.100242a0
sub esp, 8
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push str._0.3lf
push 0x10
push eax
call fcn.10019b10
add esp, 0x14
lea edx, [esp + 0x2c]
mov ecx, 0x100824a8
call fcn.10002460
mov edx, str.__INFO_
mov ecx, eax
call fcn.10002460
mov edx, str.__ppEndpoint:
mov ecx, eax
call fcn.10002460
push dword [ebx]
mov ecx, eax
call fcn.1001a270
push eax
call fcn.10002700
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10