Function at 0x14006c0e0
Capabilities:
Print debug messages

Disassembly:
push rsi
sub rsp, 0x60
mov qword [rsp + 0x80], rbx
mov rbx, rcx
mov rcx, qword [rcx + 0x250]
add rcx, 0x10
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r12
call fcn.140048b70
mov r11, qword [rbx + 0x250]
xor r12d, r12d
mov qword [rbx + 0x22c], r12
mov edx, r12d
mov qword [rbx + 0x234], r12
mov qword [rbx + 0x23c], r12
mov qword [rbx + 0x244], r12
mov dword [rbx + 0x24c], r12d
cmp dword [r11 + 0x68], r12d
jle 0x14006c244
mov edi, r12d
mov rcx, rbx
call fcn.14006bf10
test eax, eax
je 0x14006c231
sub eax, 1
je 0x14006c1e3
sub eax, 1
je 0x14006c1d1
sub eax, 1
je 0x14006c1b5
cmp eax, 1
jne 0x14006c1e9
mov dword [rbx + 0x244], eax
mov eax, dword [r11 + rdi + 0x118]
mov ecx, eax
and ecx, 0xf00
cmp ecx, 0x400
jne 0x14006c1a5
and eax, 0xf0
sub eax, 0x40
test eax, 0xffffffef
jne 0x14006c1a5
inc dword [rbx + 0x248]
jmp 0x14006c1e9
cmp ecx, 0xc00
jne 0x14006c1e9
inc dword [rbx + 0x24c]
jmp 0x14006c1e9
inc dword [rbx + 0x234]
mov dword [rbx + 0x230], 1
mov dword [rbx + 0x240], 1
jmp 0x14006c1e9
inc dword [rbx + 0x234]
mov dword [rbx + 0x230], 1
jmp 0x14006c1e9
inc dword [rbx + 0x22c]
mov ecx, dword [r11 + rdi + 0x19c]
test cl, cl
jne 0x14006c21b
mov eax, dword [r11 + rdi + 0x118]
and eax, 0xf000
cmp eax, 0x2000
jne 0x14006c21b
shr ecx, 8
cmp cl, 4
je 0x14006c21b
mov dword [rbx + 0x238], 1
cmp dword [r11 + 0x7c], edx
je 0x14006c227
cmp dword [r11 + 0x74], edx
jne 0x14006c231
mov dword [rbx + 0x244], 1
inc edx
add rdi, 0xb0
cmp edx, dword [r11 + 0x68]
jl 0x14006c148
lea rcx, [rbx + 0xa0]
xor edx, edx
mov r8d, 0x18c
call fcn.1400d54b0
mov rsi, qword [rbx + 0x250]
mov edi, r12d
mov eax, 0xffffffff
cmp dword [rsi + 0x68], r12d
jle 0x14006c475
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov r15, r12
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r13
nop dword [rax + rax]
lea r14, [r15 + rsi]
cmp dword [r14 + 0x1b8], 0
jl 0x14006c2b5
cmp dword [r14 + 0x1bc], 0
je 0x14006c2b5
mov ebp, SafeArrayGetElement
mov r13d, 0x1fc
jmp 0x14006c2be
mov ebp, r12d
mov r13d, 0x10c
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], eax
mov edx, edi
mov rcx, rbx
call fcn.14006c4d0
cmp dword [rsp + 0x78], 0xffffffff
mov edx, edi
mov rcx, rbx
setne r12b
call fcn.14006bf10
test eax, eax
je 0x14006c43f
cmp eax, 1
je 0x14006c3e8
jle 0x14006c43f
cmp eax, 3
jle 0x14006c3d3
cmp eax, 4
jne 0x14006c43f
mov r9d, dword [rsp + 0x70]
lea eax, [r9 - 0x2d]
cmp eax, 1
jbe 0x14006c3ce
cmp dword [rsi + 0x7c], edi
je 0x14006c395
cmp dword [rsi + 0x74], edi
je 0x14006c390
movzx r8d, byte [r14 + 0x19c]
lea eax, [rbp + 2]
add eax, r8d
lea rdx, [rax + 0x14]
lea rdx, [rax + rdx*2]
cmp dword [rbx + rdx*4], 1
lea rdx, [rbx + rdx*4]
jne 0x14006c367
lea eax, [rbp + 5]
add eax, r8d
xor r12d, r12d
lea rdx, [rax + 0x14]
lea rdx, [rax + rdx*2]
lea rdx, [rbx + rdx*4]
mov r8d, edi
call fcn.14006bff0
test r12d, r12d
je 0x14006c43f
mov rax, qword [rbx + 0x250]
movzx eax, byte [r15 + rax + 0x19c]
add eax, 5
jmp 0x14006c422
mov edx, dword [rsi + 0x78]
jmp 0x14006c39b
mov edx, dword [rsi + 0x80]
lea r9, [rsp + 0x78]
mov rcx, rbx
lea r8, [rsp + 0x70]
call fcn.14006c4d0
cmp dword [rbx + r13], 0
lea rdx, [rbx + r13]
je 0x14006c3c7
lea eax, [rbp + 0xa]
lea rdx, [rax + 0x14]
lea rdx, [rax + rdx*2]
lea rdx, [rbx + rdx*4]
mov r9d, dword [rsp + 0x70]
jmp 0x14006c437
lea eax, [rbp + 0xb]
jmp 0x14006c429
movzx ecx, byte [r14 + 0x19c]
add ecx, 6
add ecx, ebp
mov eax, ecx
add rax, 0x28
jmp 0x14006c3f6
movzx eax, byte [r14 + 0x19c]
add eax, ebp
lea rcx, [rax + 0x14]
mov r9d, dword [rsp + 0x70]
lea rcx, [rax + rcx*2]
lea rdx, [rbx + rcx*4]
mov r8d, edi
call fcn.14006bff0
test r12d, r12d
je 0x14006c43f
mov rax, qword [rbx + 0x250]
movzx eax, byte [r15 + rax + 0x19c]
inc eax
mov r9d, dword [rsp + 0x78]
add eax, ebp
mov ecx, eax
add rcx, 0x28
lea rax, [rcx + rax*2]
lea rdx, [rbx + rax*4]
mov r8d, edi
call fcn.14006bff0
mov rsi, qword [rbx + 0x250]
mov eax, 0xffffffff
inc edi
add r15, 0xb0
lea r12d, [rax + 1]
cmp edi, dword [rsi + 0x68]
jl 0x14006c290
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
test eax, eax
jne 0x14006c4a3
mov rcx, qword [rsi + 0x20]
add rsp, 0x60
pop rsi
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, dword [rsi + 0x28]
cmp eax, 0x32
jle 0x14006c4c9
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, 0x60
pop rsi
jmp fcn.140064950
add rsp, 0x60
pop rsi
ret