Function at 0x140096630
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov esi, edx
mov rcx, qword [rcx + 0x18]
xor edi, edi
test rcx, rcx
je 0x140096703
mov dword [rax + 8], edi
add rcx, 4
mov qword [rax - 0x48], rdi
mov dword [rax - 0x50], edi
mov dword [rax - 0x58], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140096693
lea rcx, str.GetInstalledSoundeffects:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140096703
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1d6070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400966ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.GetInstalledSoundeffects:_DeviceIoControl:_IOCTL_HDAUD_GET_VIA_DRVSUPPORT3RDPRTEFTS_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140096703
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11d, dword [rsp + 0x80]
mov dword [rsp + 0x90], r11d
call fcn.1400cc6e8
mov r11, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140096722
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov ebx, dword [rsp + 0x90]
mov r8d, ebx
lea rdx, str._________d_________n
lea rcx, [rsp + 0x48]
call fcn.1400029a0
test bl, 8
je 0x140096861
call fcn.1400cc6e8
mov r11, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140096777
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov r8d, esi
lea rdx, [0x14013c8c8]
lea rcx, [rsp + 0x40]
call fcn.1400029a0
lea rbx, [0x14018cf18]
nop
nop
nop
mov r8d, dword [rbx]
lea rdx, [0x14013c8c8]
lea rcx, [rsp + 0x40]
call fcn.1400029a0
cmp dword [rbx], esi
je 0x140096819
add edi, 1
add rbx, 4
cmp edi, 2
jb 0x1400967b0
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400967f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140096815
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
xor eax, eax
jmp 0x140096884
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14009683c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14009685a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
mov eax, 1
jmp 0x140096884
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140096882
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret