Function at 0x1400966d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov qword [rsp + 0x190], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r13d, edx
mov rax, rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
mov qword [r11 - 0x128], rdi
lea rcx, [0x140193708]
mov qword [r11 - 0x120], rcx
lea rcx, str.Music
mov qword [r11 - 0x118], rcx
mov qword [r11 - 0x110], rdi
lea rcx, str.Game
mov qword [r11 - 0x108], rcx
lea rcx, [0x14018b800]
mov qword [r11 - 0xf8], rcx
lea rcx, [0x14018b860]
mov qword [r11 - 0xf0], rcx
lea rcx, [0x14018b908]
mov qword [r11 - 0xe8], rcx
lea rcx, [0x14018b920]
mov qword [r11 - 0xe0], rcx
lea rcx, [0x14018b8a8]
mov qword [r11 - 0xd8], rcx
lea rcx, [0x14018b8c0]
mov qword [r11 - 0xd0], rcx
lea rcx, [0x14018b8f0]
mov qword [r11 - 0xc8], rcx
lea rcx, [0x14018b7b8]
mov qword [r11 - 0xc0], rcx
lea rcx, [0x14018b7e8]
mov qword [r11 - 0xb8], rcx
lea rcx, [0x14018b788]
mov qword [r11 - 0xb0], rcx
cmp edx, 2
je 0x1400967ed
cmp r13d, 1
je 0x1400967ed
cmp r13d, 4
jne 0x140097122
mov eax, dword [rax + 0x38]
cmp eax, 3
jg 0x140097122
cmp eax, 1
jl 0x140097122
mov qword [rsp + 0x68], rdi
call fcn.140129a50
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140096826
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 + 0x50], rbx
lea rdx, str.SOFTWAREDTSPremiumSuitPresets
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140096872
movzx edi, dx
mov ecx, edi
call fcn.140138984
test rax, rax
je 0x140096893
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004d70
mov rbx, qword [rsp + 0x50]
jmp 0x140096893
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.1400032e0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rcx, rsi
lea r12, [0x140180dfc]
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
sub rbp, rbx
sar rbp, 1
mov r14d, dword [rbx - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x1400968e0
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002da0
mov rbx, qword [rsp + 0x50]
cmp rbp, r14
ja 0x1400968e9
lea r12, [rbx + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r12
call fcn.1401448d0
test edi, edi
js 0x140097117
cmp edi, dword [rbx - 0xc]
jg 0x140097117
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x38]
lea rcx, [0x140000000]
mov rbp, qword [rcx + rax*8 + 0x1eee48]
test rbp, rbp
jne 0x14009693d
xor r14d, r14d
jmp 0x14009694f
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov r12, rbp
sub r12, rbx
sar r12, 1
mov r15d, dword [rbx - 0x10]
lea edi, [r15 + r14]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x140096982
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002da0
mov rbx, qword [rsp + 0x50]
cmp r12, r15
ja 0x14009698b
lea rbp, [rbx + r12*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, rbp
call fcn.1401448d0
test edi, edi
js 0x14009710c
cmp edi, dword [rbx - 0xc]
jg 0x14009710c
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rbp, qword [rsp + r13*8 + 0x110]
test rbp, rbp
jne 0x1400969cf
xor r14d, r14d
jmp 0x1400969e1
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rdi, rbp
sub rdi, rbx
sar rdi, 1
mov r15d, dword [rbx - 0x10]
lea r12d, [r15 + r14]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, edx
jge 0x140096a16
mov edx, r12d
lea rcx, [rsp + 0x50]
call fcn.140002da0
mov rbx, qword [rsp + 0x50]
cmp rdi, r15
ja 0x140096a1f
lea rbp, [rbx + rdi*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, rbp
call fcn.1401448d0
test r12d, r12d
js 0x140097101
cmp r12d, dword [rbx - 0xc]
jg 0x140097101
mov dword [rbx - 0x10], r12d
movsxd rax, r12d
mov word [rbx + rax*2], 0
xor eax, eax
mov rcx, rsi
lea r12, str.Default
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
sub rbp, rbx
sar rbp, 1
mov r14d, dword [rbx - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x140096aa1
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002da0
mov rbx, qword [rsp + 0x50]
cmp rbp, r14
ja 0x140096aaa
lea r12, [rbx + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r12
call fcn.1401448d0
test edi, edi
js 0x1400970f6
cmp edi, dword [rbx - 0xc]
jg 0x1400970f6
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
xor ebp, ebp
mov qword [rsp + 0xa0], rbp
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140096b1f
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
jmp 0x140096b7d
mov qword [rsp + 0x90], rbp
lea rax, [rsp + 0x108]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400970da
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
lea ecx, [r13 + r13*4]
add ecx, ecx
mov dword [rsp + 0x78], ecx
lea r13, [rsp + 0x140]
mov r14d, 0xa
mov r15, qword [rsp + 0x58]
nop
nop
mov dword [rsp + 0x60], ebp
mov r12, qword [r13]
lea rdx, [rsp + 0x1c0]
mov eax, dword [r12]
mov dword [rdx], eax
mov eax, dword [r12 + 4]
mov dword [rdx + 4], eax
mov eax, dword [r12 + 8]
mov dword [rdx + 8], eax
mov eax, dword [r12 + 0xc]
mov dword [rdx + 0xc], eax
mov eax, dword [r12 + 0x10]
mov dword [rdx + 0x10], eax
mov eax, dword [r15 + 0x38]
add eax, ecx
imul eax, eax, 0x3e8
add dword [rsp + 0x1d0], eax
lea rcx, [rsp + 0x1ac]
mov eax, dword [r12]
mov dword [rcx], eax
mov eax, dword [r12 + 4]
mov dword [rcx + 4], eax
mov eax, dword [r12 + 8]
mov dword [rcx + 8], eax
mov eax, dword [r12 + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [r12 + 0x10]
mov dword [rcx + 0x10], eax
mov qword [rsp + 0x98], rbp
mov ebx, ebp
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140096ca8
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1ac]
call fcn.1400da030
test eax, eax
js 0x140096ca8
mov dword [rsp + 0x84], 4
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rbp, qword [rsp + 0x98]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140096c99
cmp dword [rsp + 0x88], 4
mov eax, 1
cmove ebx, eax
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x140096cdd
xor ebp, ebp
mov rdx, r12
lea rcx, [rsp + 0x100]
call fcn.1400db050
mov rdx, qword [rsp + 0x100]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140096cdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140096cdf
xor ebp, ebp
mov ebx, dword [rsp + 0x60]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x70], rbp
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x140189a60]
mov r12d, 1
mov r8d, r12d
xor edx, edx
lea rcx, [0x140189a50]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140096d4d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e00
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e00
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x1c0]
mov r8d, r12d
mov rdx, qword [r15 + 0x10]
call qword [rax + 0x50]
test eax, eax
jns 0x140096d8a
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e00
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e00
cmp word [rsp + 0xb0], 0x13
je 0x140096db6
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e00
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e00
mov edi, dword [rsp + 0xb8]
mov dword [rsp + 0xf8], edi
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096de3
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp edi, ebx
jne 0x140096e00
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140096ef2
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096ef2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140189a60]
mov r8d, r12d
xor edx, edx
lea rcx, [0x140189a50]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140096e3d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140096eba
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096eba
xor eax, eax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
mov word [rsp + 0xc8], 0x13
mov dword [rsp + 0xd0], ebx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x1c0]
mov r8d, r12d
mov rdx, qword [r15 + 0x10]
call qword [rax + 0x58]
mov edi, eax
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov ebx, ebp
test edi, edi
setns bl
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140096eb6
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x140096ef2
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xe8]
call fcn.1400db050
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140096ef2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r13, 8
sub r14, 1
mov ecx, dword [rsp + 0x78]
jne 0x140096ba0
mov dword [rsp + 0x7c], ebp
lea rcx, [rsp + 0x1d8]
lea rdx, [0x140000000]
mov rax, qword [rdx + 0x18b7d0]
mov qword [rcx], rax
mov rax, qword [rdx + 0x18b7d8]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x18b7e0]
mov dword [rcx + 0x10], eax
mov eax, dword [r15 + 0x38]
add eax, dword [rsp + 0x78]
imul eax, eax, 0x3e8
add dword [rsp + 0x1e8], eax
lea rcx, [rsp + 0x198]
lea r13, [0x14018b800]
mov eax, dword [r13]
mov dword [rcx], eax
mov eax, dword [r13 + 4]
mov dword [rcx + 4], eax
mov eax, dword [r13 + 8]
mov dword [rcx + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [r13 + 0x10]
mov dword [rcx + 0x10], eax
mov qword [rsp + 0xa8], rbp
mov ebx, ebp
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140097006
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x198]
call fcn.1400da030
test eax, eax
js 0x140097006
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
xor r8d, r8d
mov rbp, qword [rsp + 0xa8]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140096ff9
cmp dword [rsp + 0x8c], 4
cmove ebx, r12d
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x140097039
mov rdx, r13
lea rcx, [rsp + 0xf0]
call fcn.1400db050
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140097039
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, r12d
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x1d8]
mov rcx, r15
call fcn.140054b10
test eax, eax
jne 0x14009708d
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0xe0]
call fcn.1400db050
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14009708d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400970a9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400970c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140097122
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140097122
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400970f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140097122
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
nop
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1401447b0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret