Function at 0x1001be60
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
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x1001be9a
mov eax, 0x80004003
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x10]
cmp dword [eax + 0xc], 0
jne 0x1001bebc
mov eax, 0x88890004
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10
cmp byte [0x1007faf9], 0
mov ebx, dword [ebp + 0xc]
je 0x1001bef7
cmp ebx, 1
je 0x1001bef0
push 0x10
push str.RS_ASIO_Error
push str.Tried_to_initialize_audio_without_exclusivity._nDid_you_set_ExclusiveMode1_in_Rocksmith.ini_
push str.Rocksmith_2014
push str.Rocksmith_2014
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [0x1007faf9], 0
cmp ebx, 1
je 0x1001bf9d
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 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, 0x100824f8
call fcn.10002460
mov edx, str.__ERROR_
mov ecx, eax
call fcn.10002460
mov edx, str.__shared_mode_is_not_supported
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
mov eax, 0x88890008
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [edi + 0xc]
lea ecx, [esp + 0x18]
mov edx, dword [ebx + 0x30]
lea eax, [ebx + 0x30]
cmp edx, 2
mov dword [esp + 0x18], 2
cmovae ecx, eax
movzx eax, word [esi + 2]
cmp eax, dword [ecx]
jbe 0x1001c06d
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 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, 0x100824f8
call fcn.10002460
mov edx, str.__ERROR_
mov ecx, eax
call fcn.10002460
mov edx, str.__unsupported_number_of_channels:
mov ecx, eax
call fcn.10002460
movzx ecx, word [esi + 2]
push ecx
mov ecx, eax
call fcn.10008250
push eax
call fcn.10002700
add esp, 4
mov eax, 0x88890008
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10
test edx, edx
jne 0x1001c0ea
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 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, 0x100824f8
call fcn.10002460
mov edx, str.__ERROR_
mov ecx, eax
call fcn.10002460
mov edx, str.__endpoint_has_no_configured_channels
jmp 0x1001bf74
mov al, byte [ebx + 0x20]
mov ecx, dword [edi + 0x10]
push edx
push dword [ebx + 0x24]
push eax
push esi
call fcn.10006bf0
test al, al
jne 0x1001c178
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x100824a0]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x100824a4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 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.__requested_format_is_not_supported
jmp 0x1001bf74
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret 0x10