Function at 0x140096700
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, [0x140193718]
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 0x14009681d
cmp r13d, 1
je 0x14009681d
cmp r13d, 4
jne 0x140097152
mov eax, dword [rax + 0x38]
cmp eax, 3
jg 0x140097152
cmp eax, 1
jl 0x140097152
mov qword [rsp + 0x68], rdi
call fcn.14012a060
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140096856
mov ecx, 0x80004005
call fcn.140002cb0
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 0x1400968a2
movzx edi, dx
mov ecx, edi
call fcn.140138f84
test rax, rax
je 0x1400968c3
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004c30
mov rbx, qword [rsp + 0x50]
jmp 0x1400968c3
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.140003210
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 0x140096910
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002cd0
mov rbx, qword [rsp + 0x50]
cmp rbp, r14
ja 0x140096919
lea r12, [rbx + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r12
call fcn.140144ee0
test edi, edi
js 0x140097147
cmp edi, dword [rbx - 0xc]
jg 0x140097147
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 + 0x1eee58]
test rbp, rbp
jne 0x14009696d
xor r14d, r14d
jmp 0x14009697f
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 0x1400969b2
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002cd0
mov rbx, qword [rsp + 0x50]
cmp r12, r15
ja 0x1400969bb
lea rbp, [rbx + r12*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, rbp
call fcn.140144ee0
test edi, edi
js 0x14009713c
cmp edi, dword [rbx - 0xc]
jg 0x14009713c
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 0x1400969ff
xor r14d, r14d
jmp 0x140096a11
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 0x140096a46
mov edx, r12d
lea rcx, [rsp + 0x50]
call fcn.140002cd0
mov rbx, qword [rsp + 0x50]
cmp rdi, r15
ja 0x140096a4f
lea rbp, [rbx + rdi*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, rbp
call fcn.140144ee0
test r12d, r12d
js 0x140097131
cmp r12d, dword [rbx - 0xc]
jg 0x140097131
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 0x140096ad1
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002cd0
mov rbx, qword [rsp + 0x50]
cmp rbp, r14
ja 0x140096ada
lea r12, [rbx + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r12
call fcn.140144ee0
test edi, edi
js 0x140097126
cmp edi, dword [rbx - 0xc]
jg 0x140097126
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 0x140096b4f
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
jmp 0x140096bad
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 0x14009710a
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 0x140096cd8
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1ac]
call fcn.1400da3d0
test eax, eax
js 0x140096cd8
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 0x140096cc9
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 0x140096d0d
xor ebp, ebp
mov rdx, r12
lea rcx, [rsp + 0x100]
call fcn.1400db3f0
mov rdx, qword [rsp + 0x100]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140096d0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140096d0f
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 0x140096d7d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e30
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e30
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 0x140096dba
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e30
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e30
cmp word [rsp + 0xb0], 0x13
je 0x140096de6
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140096e30
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096e30
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 0x140096e13
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp edi, ebx
jne 0x140096e30
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140096f22
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096f22
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 0x140096e6d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140096eea
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140096eea
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 0x140096ee6
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x140096f22
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xe8]
call fcn.1400db3f0
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140096f22
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 0x140096bd0
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 0x140097036
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x198]
call fcn.1400da3d0
test eax, eax
js 0x140097036
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 0x140097029
cmp dword [rsp + 0x8c], 4
cmove ebx, r12d
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x140097069
mov rdx, r13
lea rcx, [rsp + 0xf0]
call fcn.1400db3f0
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140097069
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.140054e50
test eax, eax
jne 0x1400970bd
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0xe0]
call fcn.1400db3f0
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400970bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400970d9
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 0x1400970f8
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 0x140097152
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140097152
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140097124
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140097152
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
nop
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140144dc0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret