Function at 0x1400171a0
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, qword [rcx + 0x398]
mov rdi, rcx
test rbx, rbx
jne 0x1400171ec
lea r8, str.AudioDevice.cpp
mov edx, 0x1e4
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor eax, eax
jmp 0x1400175a5
cmp qword [rcx + 0x90], 0
jne 0x140017215
lea r8, str.AudioDevice.cpp
mov edx, 0x1e5
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor eax, eax
jmp 0x1400175a5
mov qword [rsp + 0x188], r13
xor r13d, r13d
mov dword [rcx + 0x3a0], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], r13d
cmp qword [rcx + 0x380], r13
je 0x140017594
mov qword [rsp + 0x178], rsi
lea r8d, [r13 + 0x68]
mov qword [rsp + 0x180], r12
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x148], r14
xor edx, edx
mov qword [rsp + 0x140], r15
call fcn.14029ff20
xor edx, edx
lea r8d, [r13 + 0x54]
mov rcx, rbx
call fcn.14029ff20
lea edx, [r13 + 0x18]
mov qword [rsp + 0x48], r13
lea r9d, [r13 + 0x1f]
mov r15d, r13d
lea r8d, [r13 + 0x20]
mov r12d, r13d
lea rsi, [0x1403de640]
nop word [rax + rax]
mov rcx, qword [rdi + 0x398]
lea rbx, reloc.OLEAUT32.dll_VariantClear
mov eax, dword [rsi]
mov r14d, r13d
mov dword [r12 + rcx], eax
mov r12d, 0xfffe
nop dword [rax]
cmp dword [0x1403ff444], r13d
jne 0x1400172ed
lea rcx, [0x1403ff440]
mov dword [0x1403ff440], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, 0x18
lea r8d, [rdx + 8]
lea r9d, [rdx + 7]
cmp dword [0x1403ff444], 6
jne 0x140017304
cmp dword [0x1403ff448], r13d
mov ecx, 1
je 0x140017307
mov ecx, r13d
test ecx, ecx
mov eax, edx
cmove eax, r9d
cmp r14d, eax
jge 0x14001751e
mov rax, qword [rdi + 0x90]
test dword [rax + 0x1f8], 0x8000000
jne 0x140017335
cmp r8w, word [rbx]
je 0x140017512
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.14029ff20
movzx edx, word [rbx]
movups xmm0, xmmword [0x140346688]
movzx ecx, word [rsi + 4]
movzx r9d, dx
movups xmm1, xmmword [0x140346678]
mov r8d, dword [rbx - 4]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x140346668]
lea eax, [r9 - 0x11]
mov dword [rsp + 0x50], 0x52
mov dword [rsp + 0x58], r13d
movaps xmmword [rbp - 0x80], xmm0
mov word [rbp - 0x70], r12w
mov word [rbp - 0x6e], cx
mov dword [rbp - 0x6c], r8d
mov word [rbp - 0x62], dx
movups xmmword [rsp + 0x70], xmm1
cmp ax, 0xf
ja 0x1400173a8
mov edx, 0x20
mov word [rbp - 0x62], dx
movzx eax, dx
movzx ecx, cx
imul eax, ecx
mov word [rbp - 0x5e], r9w
lea r9, [rsp + 0x40]
movups xmmword [rbp - 0x58], xmm1
mov dword [rsp + 0x40], r13d
cdq
and edx, 7
add eax, edx
lea rdx, [rsp + 0x50]
sar eax, 3
movzx ecx, ax
imul ecx, r8d
mov r8d, 0x68
mov word [rbp - 0x64], ax
mov eax, 0x16
mov word [rbp - 0x60], ax
mov eax, dword [rsi + 8]
mov dword [rbp - 0x5c], eax
mov dword [rbp - 0x68], ecx
mov rcx, qword [rdi + 0x380]
mov rax, qword [rcx]
call qword [rax + 0x18]
movaps xmm2, xmmword [rbp - 0x70]
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
pextrw eax, xmm2, 7
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [rbp - 0x80]
mov word [rbp - 0x62], ax
sub ax, 0x11
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm1, qword [rbp - 0x50]
movaps xmmword [rbp], xmm2
movaps xmmword [rbp + 0x10], xmm0
movsd qword [rbp + 0x20], xmm1
cmp ax, 0xf
ja 0x14001745d
mov eax, 0x18
mov word [rbp + 0xe], ax
jmp 0x140017461
movzx eax, word [rbp + 0xe]
movzx ecx, word [rbp + 2]
lea r9, [rsp + 0x44]
movzx eax, ax
mov r8d, 0x68
imul eax, ecx
mov dword [rsp + 0x44], r13d
cdq
and edx, 7
add eax, edx
lea rdx, [rbp - 0x40]
sar eax, 3
movzx ecx, ax
imul ecx, dword [rbp + 4]
mov word [rbp + 0xc], ax
mov dword [rbp + 8], ecx
mov rcx, qword [rdi + 0x380]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp dword [rsp + 0x40], r13d
jne 0x1400174b1
cmp dword [rsp + 0x44], r13d
je 0x140017504
mov ecx, dword [rbx - 0xc]
lea rdx, str.CAudioDevice::CheckDataFormat
mov rax, qword [rdi + 0x398]
add rcx, r15
mov r8d, 0x230
lea rcx, [rax + rcx*4]
mov eax, dword [rbx - 8]
or dword [rcx + 4], eax
mov eax, dword [rsi]
or dword [rdi + 0x3a0], eax
movzx eax, word [rbp - 0x6e]
movzx ecx, word [rbp - 0x62]
mov r9, qword [rsi + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x6c]
mov dword [rsp + 0x28], ecx
lea rcx, str._s__d__s_is_supported__SampleRate___d_Bits___d_Channels___d_
mov dword [rsp + 0x20], eax
call fcn.140055180
mov r9d, 0x1f
lea r8d, [r9 + 1]
lea edx, [r9 - 7]
inc r14d
add rbx, 0x18
jmp 0x1400172c0
mov r12, qword [rsp + 0x48]
lea rax, [0x1403de6e8]
add r12, 0xc
add rsi, 0x18
add r15, 3
mov qword [rsp + 0x48], r12
cmp rsi, rax
jl 0x1400172a0
mov eax, dword [rdi + 0x3a0]
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov r12, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
test al, 0x20
je 0x140017587
mov rcx, qword [rdi + 0x90]
test rcx, rcx
je 0x140017587
or dword [rcx + 0x2c], 0x200
mov eax, dword [rdi + 0x3a0]
test eax, eax
jne 0x140017598
cmp dword [rdi + 0x1d8], 9
jne 0x140017598
xor eax, eax
jmp 0x14001759d
mov eax, 1
mov r13, qword [rsp + 0x188]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14029d880
add rsp, 0x150
pop rdi
pop rbx
pop rbp
ret