Function at 0x14005f1f0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
cmp dword [rcx + 0x68], edi
jbe 0x14005f221
nop
mov edx, edi
mov rcx, rbx
call fcn.14005ed20
inc edi
cmp edi, dword [rbx + 0x68]
jb 0x14005f210
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
xor esi, esi
call qword [rax]
cmp dword [rbx + 0x2c], esi
je 0x14005f248
mov esi, 1
jmp 0x14005f255
inc dword [rbx + 0x28]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test esi, esi
jne 0x14005f221
mov ebp, dword [rbx + 0x68]
xor r10d, r10d
test ebp, ebp
je 0x14005f411
mov r11d, dword [rsp + 0x50]
mov qword [rsp + 0x30], r12
lea r12, [rbx + 0x19c]
mov qword [rsp + 0x28], r14
mov rdi, r12
mov qword [rsp + 0x20], r15
mov r15, 0xfffffffffffffe64
sub r15, rbx
nop word [rax + rax]
mov ecx, dword [rdi]
cmp cl, 6
jae 0x14005f3ac
shr ecx, 8
cmp cl, 4
je 0x14005f3ac
mov eax, dword [rdi - 0x5c]
and r11d, 0xfff00000
shr eax, 0xc
or r11d, eax
mov eax, r11d
and eax, 0xf00
cmp eax, 0x400
jne 0x14005f2e0
mov dword [rbx + 0x88], 1
mov eax, r11d
and eax, 0xf00
cmp eax, 0xc00
jne 0x14005f2f9
mov dword [rbx + 0x84], 1
mov eax, r11d
and eax, 0xf00
cmp eax, 0xc00
je 0x14005f31b
mov eax, r11d
and eax, 0xf00
cmp eax, 0x400
jne 0x14005f3ac
lea rax, [r15 + rdi]
xor edx, edx
lea r14, [r12 + rax]
lea rsi, [rax + rbx]
nop dword [rax]
cmp edx, r10d
je 0x14005f373
mov r8d, dword [r14]
mov eax, edx
imul r9, rax, 0xb0
mov ecx, dword [r9 + rbx + 0x19c]
mov eax, ecx
xor eax, r8d
test al, al
jne 0x14005f373
shr ecx, 8
shr r8d, 8
cmp r8b, cl
jne 0x14005f373
mov eax, dword [r9 + rbx + 0x118]
xor eax, dword [rsi + 0x118]
test eax, 0xf000
je 0x14005f37b
inc edx
cmp edx, ebp
jb 0x14005f330
jmp 0x14005f3ac
mov eax, r11d
and eax, 0xf00
cmp eax, 0x400
jne 0x14005f393
mov dword [rbx + 0x74], r10d
mov dword [rbx + 0x78], edx
jmp 0x14005f3ac
mov eax, r11d
and eax, 0xf00
cmp eax, 0xc00
jne 0x14005f3ac
mov dword [rbx + 0x7c], r10d
mov dword [rbx + 0x80], edx
mov ecx, dword [rdi]
movzx eax, cl
sub eax, 7
cmp eax, 1
ja 0x14005f3ef
shr ecx, 8
test cl, cl
jne 0x14005f3ef
mov eax, dword [rdi - 0x84]
and eax, 0xf00
cmp eax, 0x400
jne 0x14005f3de
mov dword [rbx + 0x88], 1
jmp 0x14005f3ef
cmp eax, 0xc00
jne 0x14005f3ef
mov dword [rbx + 0x84], 1
inc r10d
add rdi, 0xb0
cmp r10d, ebp
jb 0x14005f2a0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
movsxd rax, dword [rbx + 0x74]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
cmp eax, 0xffffffff
je 0x14005f46b
movsxd rdx, dword [rbx + 0x78]
cmp edx, 0xffffffff
je 0x14005f46b
imul rcx, rax, 0xb0
test byte [rcx + rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 2
je 0x14005f46b
imul rcx, rdx, 0xb0
mov dword [rcx + rbx + 0x1ac], 1
movsxd rax, dword [rbx + 0x78]
imul rcx, rax, 0xb0
mov dword [rcx + rbx + 0x1a4], 4
movsxd rax, dword [rbx + 0x7c]
cmp eax, 0xffffffff
je 0x14005f4bc
movsxd rdx, dword [rbx + 0x80]
cmp edx, 0xffffffff
je 0x14005f4bc
imul rcx, rax, 0xb0
test byte [rcx + rbx + reloc.OLEAUT32.dll_BSTR_UserUnmarshal], 2
je 0x14005f4bc
imul rcx, rdx, 0xb0
mov dword [rcx + rbx + 0x1ac], 1
movsxd rax, dword [rbx + 0x80]
imul rcx, rax, 0xb0
mov dword [rcx + rbx + 0x1a4], SafeArrayDestroy
mov eax, dword [rbx + 0x28]
sub eax, 1
mov dword [rbx + 0x28], eax
jne 0x14005f4d7
mov rcx, qword [rbx + 0x20]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 0x32
jle 0x14005f4fa
mov r8d, 0x6a
lea rdx, str.CDataAccessProtector::FinishAccess
lea rcx, str._s__d_calling_FinishAccess_isnt_matched_RequestAccess_or_directly_return_in_EnumAudioDeviceStart_loop
add rsp, 0x40
pop rbx
jmp fcn.14005c7e0
add rsp, 0x40
pop rbx
ret