Function at 0x140069280
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, rcx
mov rax, qword [rcx + 0x98]
test byte [rax + 0x1a0], 8
je 0x140069d7f
xor esi, esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDeviceDefault
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140069d7f
mov r15, qword [rsp + 0x38]
mov qword [rsp + 0x60], r15
call fcn.140129a50
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140069333
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov edx, 0xa
lea rcx, [rsp + 0x68]
call fcn.14013dc3c
nop
mov rdi, qword [rdi + 0xe50]
test rdi, rdi
je 0x140069393
mov rdx, rdi
test rdi, rdi
je 0x14006938d
mov rdi, qword [rdi]
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x140069386
add rdx, 0x118
lea rcx, [rsp + 0x68]
call fcn.14013dfec
test rdi, rdi
jne 0x140069361
jmp 0x140069393
call fcn.1401298b4
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.1401489d0
mov dword [rsp + 0x44], 0x200
mov r13d, esi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.DefaultPlaybackDevice
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, 1
or r12, 0xffffffffffffffff
test eax, eax
jne 0x1400695f1
mov eax, dword [rsp + 0x5c]
cmp eax, r14d
je 0x140069406
cmp eax, 2
jne 0x1400695f1
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x14006942d
test r14b, cl
jne 0x1400695f1
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0xae], r13w
je 0x140069436
jmp 0x1400695f1
mov word [rsp + 0xb0], r13w
mov r13d, ecx
shr r13d, 1
lea r8, [rsp + 0x30]
mov edx, r14d
xor ecx, ecx
call fcn.140078820
mov rbx, qword [rsp + 0x30]
mov rax, rbx
lea rdx, [rsp + 0xb0]
sub rdx, rbx
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140069476
add rax, 2
test cx, cx
jne 0x140069460
mov eax, esi
jmp 0x14006947b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400695b5
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov rdi, rcx
test ecx, ecx
jne 0x140069504
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140069586
cmp dword [rdx + 0x10], eax
jge 0x1400694d0
cmp dword [rbx - 0xc], eax
jge 0x1400694c5
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rbx - 0x10], esi
mov word [rbx], ax
jmp 0x140069586
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400694e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r15, qword [rsp + 0x38]
jmp 0x140069586
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xb0]
sub rbp, rbx
sar rbp, 1
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140069535
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002da0
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x140069555
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x140069572
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x1400695aa
cmp edi, dword [rbx - 0xc]
jg 0x1400695aa
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor esi, esi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14013dd70
test rax, rax
je 0x1400695b5
mov edx, r14d
lea rcx, [rsp + 0x30]
call fcn.1400789d0
jmp 0x1400695b5
mov ecx, 0x80070057
call fcn.140002d80
int3
test rbx, rbx
jne 0x1400695be
mov ecx, esi
jmp 0x1400695d3
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
test ecx, ecx
js 0x1400695e6
cmp ecx, dword [rbx - 0xc]
jg 0x1400695e6
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
jmp 0x1400695f1
mov ecx, 0x80070057
call fcn.140002d80
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.1401489d0
lea edx, [r13 + r13]
mov dword [rsp + 0x4c], edx
mov r13d, esi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.DefaultCaptureDevice
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140069846
mov eax, dword [rsp + 0x54]
cmp eax, r14d
je 0x14006965b
cmp eax, 2
jne 0x140069846
mov ecx, dword [rsp + 0x4c]
test ecx, ecx
je 0x140069682
test r14b, cl
jne 0x140069846
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0xae], 0
je 0x14006968c
jmp 0x140069846
mov word [rsp + 0xb0], 0
mov r13d, ecx
shr r13d, 1
lea r8, [rsp + 0x30]
mov edx, r14d
mov ecx, r14d
call fcn.140078820
mov rbx, qword [rsp + 0x30]
mov rax, rbx
lea rdx, [rsp + 0xb0]
sub rdx, rbx
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400696cb
add rax, 2
test cx, cx
jne 0x1400696b5
mov eax, esi
jmp 0x1400696d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14006980a
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov rdi, rcx
test ecx, ecx
jne 0x140069759
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400697db
cmp dword [rdx + 0x10], eax
jge 0x140069725
cmp dword [rbx - 0xc], eax
jge 0x14006971a
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rbx - 0x10], esi
mov word [rbx], ax
jmp 0x1400697db
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006973d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r15, qword [rsp + 0x38]
jmp 0x1400697db
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xb0]
sub rbp, rbx
sar rbp, 1
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14006978a
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002da0
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x1400697aa
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x1400697c7
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x1400697ff
cmp edi, dword [rbx - 0xc]
jg 0x1400697ff
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor esi, esi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14013dd70
test rax, rax
je 0x14006980a
mov edx, r14d
lea rcx, [rsp + 0x30]
call fcn.1400789d0
jmp 0x14006980a
mov ecx, 0x80070057
call fcn.140002d80
int3
test rbx, rbx
jne 0x140069813
mov ecx, esi
jmp 0x140069828
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
test ecx, ecx
js 0x14006983b
cmp ecx, dword [rbx - 0xc]
jg 0x14006983b
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
jmp 0x140069846
mov ecx, 0x80070057
call fcn.140002d80
int3
mov eax, dword [0x140206d04]
test eax, eax
jne 0x14006986d
mov dword [0x140206d00], 0x114
lea rcx, [0x140206d00]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140206d04]
cmp eax, 6
jne 0x140069880
cmp dword [0x140206d08], r14d
jae 0x140069889
jmp 0x140069d2e
cmp eax, 6
jbe 0x140069d2e
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.1401489d0
lea edx, [r13 + r13]
mov dword [rsp + 0x40], edx
mov r13d, esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.DefaultCommPlaybackDevice
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140069ae3
mov eax, dword [rsp + 0x50]
cmp eax, r14d
je 0x1400698f3
cmp eax, 2
jne 0x140069ae3
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14006991a
test r14b, cl
jne 0x140069ae3
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0xae], 0
je 0x140069924
jmp 0x140069ae3
mov word [rsp + 0xb0], 0
mov r13d, ecx
shr r13d, 1
lea r8, [rsp + 0x30]
mov edx, 2
xor ecx, ecx
call fcn.140078820
mov rbx, qword [rsp + 0x30]
mov rax, rbx
lea rdx, [rsp + 0xb0]
sub rdx, rbx
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140069966
add rax, 2
test cx, cx
jne 0x140069950
mov eax, esi
jmp 0x14006996b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140069aa7
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov rdi, rcx
test ecx, ecx
jne 0x1400699f4
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140069a76
cmp dword [rdx + 0x10], eax
jge 0x1400699c0
cmp dword [rbx - 0xc], eax
jge 0x1400699b5
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rbx - 0x10], esi
mov word [rbx], ax
jmp 0x140069a76
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400699d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r15, qword [rsp + 0x38]
jmp 0x140069a76
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xb0]
sub rbp, rbx
sar rbp, 1
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140069a25
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002da0
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x140069a45
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x140069a62
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x140069a9c
cmp edi, dword [rbx - 0xc]
jg 0x140069a9c
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor esi, esi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14013dd70
test rax, rax
je 0x140069aa7
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.1400789d0
jmp 0x140069aa7
mov ecx, 0x80070057
call fcn.140002d80
int3
test rbx, rbx
jne 0x140069ab0
mov ecx, esi
jmp 0x140069ac5
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
test ecx, ecx
js 0x140069ad8
cmp ecx, dword [rbx - 0xc]
jg 0x140069ad8
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
jmp 0x140069ae3
mov ecx, 0x80070057
call fcn.140002d80
int3
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.1401489d0
lea edx, [r13 + r13]
mov dword [rsp + 0x48], edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.DefaultCommCaptureDevice
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140069d2e
mov eax, dword [rsp + 0x58]
cmp eax, r14d
je 0x140069b4a
cmp eax, 2
jne 0x140069d2e
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140069b6e
test r14b, al
jne 0x140069d2e
shr rax, 1
cmp word [rsp + rax*2 + 0xae], 0
je 0x140069b78
jmp 0x140069d2e
mov word [rsp + 0xb0], 0
lea r8, [rsp + 0x30]
mov edx, 2
mov ecx, r14d
call fcn.140078820
mov rbx, qword [rsp + 0x30]
mov rax, rbx
lea rdx, [rsp + 0xb0]
sub rdx, rbx
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140069bb6
add rax, 2
test cx, cx
jne 0x140069ba0
mov eax, esi
jmp 0x140069bbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140069cf1
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov rdi, rcx
test ecx, ecx
jne 0x140069c41
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140069cc0
cmp dword [rdx + 0x10], eax
jge 0x140069c10
cmp dword [rbx - 0xc], eax
jge 0x140069c05
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rbx - 0x10], esi
mov word [rbx], ax
jmp 0x140069cc0
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140069c28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r15, qword [rsp + 0x38]
jmp 0x140069cc0
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xb0]
sub rbp, rbx
sar rbp, 1
sub r14d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r14d
jge 0x140069c71
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.140002da0
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x140069c91
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140144840
jmp 0x140069cae
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x140069ce6
cmp edi, dword [rbx - 0xc]
jg 0x140069ce6
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14013dd70
test rax, rax
je 0x140069cf1
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.1400789d0
jmp 0x140069cf1
mov ecx, 0x80070057
call fcn.140002d80
int3
test rbx, rbx
jne 0x140069cfa
xor ecx, ecx
jmp 0x140069d10
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140069d23
cmp ecx, dword [rbx - 0xc]
jg 0x140069d23
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
jmp 0x140069d2e
mov ecx, 0x80070057
call fcn.140002d80
int3
test r15, r15
je 0x140069d45
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14013de3c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x140069d6d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140069d7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140069d7f
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1401447b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret