Function at 0x140018660
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4b8]
sub rsp, 0x590
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r15, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140018ed2
cmp dword [rax + 0x148], 0
je 0x140018ed2
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140018f0d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140018f18
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor esi, esi
mov qword [rbp - 8], rsi
mov dword [rbp], esi
mov qword [rbp + 8], rsi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov dword [rsp + 0x40], esi
lea rax, [0x140280ba0]
mov qword [rbp + 0x40], rax
lea rax, str.Music
mov qword [rbp + 0x48], rax
lea rax, str.Game
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x30], esi
mov dword [rbp + 0x34], 1
mov dword [rbp + 0x38], 2
mov eax, dword [0x1402e9c90]
lea rdx, str.__n__
lea rcx, str.Internal
test eax, eax
cmovne rcx, rdx
mov qword [rsp + 0x60], rcx
lea rdx, [0x1402dbbc0]
lea rcx, [0x1402dbbe0]
cmovne rcx, rdx
mov qword [rbp - 0x30], rcx
mov ecx, 7
mov r12d, 3
cmovne r12d, ecx
lea rdx, str.SOFTWAREDTSU2PPresets
mov r14, 0xffffffffffffffff
mov rax, r14
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400187a0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.1400054e0
lea rdx, [0x140281050]
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400187c1
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140004b30
mov r9d, 0x20019
mov rdi, qword [rsp + 0x58]
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 8]
call fcn.14000ddf0
test eax, eax
je 0x14001882e
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 8]
call fcn.1400147b0
test eax, eax
jne 0x140018e7a
movups xmm0, xmmword [0x1402816d8]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [0x1402816e8]
mov dword [rbp + 0x28], eax
mov qword [rbp - 0x50], rsi
mov r14d, esi
mov r13, qword [rbp - 8]
test r13, r13
je 0x1400188d8
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x18]
call fcn.140011a50
test eax, eax
js 0x1400188c2
mov dword [rsp + 0x74], 4
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov r14, qword [rbp - 0x50]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400188ae
cmp dword [rsp + 0x78], 4
mov eax, SafeArrayGetDim
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r14d, r14d
test esi, esi
sete r14b
xor esi, esi
test r14d, r14d
je 0x1400188d8
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002ae20
mov eax, r12d
mov qword [rbp - 0x18], rax
mov r12, rsi
mov rbx, qword [rbp - 0x30]
mov edi, eax
nop dword [rax + rax]
mov dword [rsp + 0x40], esi
movups xmm0, xmmword [0x140282138]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
mov dword [rbp + 0x28], eax
mov rax, qword [r15]
mov r8d, dword [rbx + r12*4]
lea rdx, [rbp + 0x18]
mov rcx, r15
call qword [rax + 0x40]
mov qword [rbp - 0x48], rsi
mov r14d, esi
test r13, r13
je 0x14001898f
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x18]
call fcn.140011a50
test eax, eax
js 0x14001898f
mov dword [rsp + 0x7c], 4
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
mov r14, qword [rbp - 0x48]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x14001897b
cmp dword [rbp - 0x80], 4
mov eax, SafeArrayGetDim
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r14d, r14d
test esi, esi
sete r14b
xor esi, esi
mov r8d, esi
test r14d, r14d
cmovne r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002ae20
inc r12
cmp r12, rdi
jl 0x1400188f0
call fcn.14004aa80
mov rcx, rax
test rax, rax
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
je 0x140018f02
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r14, [0x140280a28]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400050a0
mov r12, 0xffffffffffffffff
test al, al
jne 0x140018a1c
mov rax, r12
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x140018a00
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400054e0
nop
movups xmm0, xmmword [0x140281e38]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
mov dword [rbp + 0x28], eax
mov qword [rbp - 0x40], rsi
test r13, r13
je 0x140018ae6
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x18]
call fcn.140011a50
test eax, eax
js 0x140018ae6
mov dword [rsp + 0x68], 0x208
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x7c]
xor r8d, r8d
mov rsi, qword [rbp - 0x40]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018adb
mov eax, dword [rbp - 0x7c]
dec eax
cmp eax, 1
ja 0x140018adb
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140018aab
test al, 1
jne 0x140018adb
shr rax, 1
cmp word [rbp + rax*2 + 0x5e], 0
je 0x140018ab1
jmp 0x140018adb
xor eax, eax
mov word [rbp + 0x60], ax
lea rcx, [rbp + 0x60]
mov rax, r12
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140018ac0
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400054e0
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002abd0
movups xmm0, xmmword [0x140281dc0]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
mov dword [rbp + 0x28], eax
mov qword [rbp - 0x38], rsi
test r13, r13
je 0x140018bc9
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x18]
call fcn.140011a50
test eax, eax
js 0x140018bc9
mov dword [rsp + 0x6c], 0x208
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
mov rsi, qword [rbp - 0x38]
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018bbe
mov eax, dword [rbp - 0x78]
dec eax
cmp eax, 1
ja 0x140018bbe
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x140018b8c
test al, 1
jne 0x140018bbe
shr rax, 1
cmp word [rbp + rax*2 + 0x26e], 0
je 0x140018b95
jmp 0x140018bbe
xor eax, eax
mov word [rbp + 0x270], ax
lea rcx, [rbp + 0x270]
mov rax, r12
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140018ba0
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.1400054e0
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002abd0
test r13, r13
je 0x140018bec
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], rsi
mov dword [rbp], esi
mov qword [rbp - 0x70], rsi
lea rcx, [rdi - 0x18]
mov qword [rbp - 0x10], rcx
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x70], esi
lea r13, [rbp + 0x30]
lea r14, [rbp + 0x40]
mov qword [rbp - 0x20], r14
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140018c6f
cmp dword [rbx + 0x10], 0
jl 0x140018c59
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140018c59
call fcn.140004c20
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140018c49
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x58]
jmp 0x140018c6a
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400054e0
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
test rdx, rdx
jne 0x140018c7b
mov eax, esi
jmp 0x140018c8a
mov rax, r12
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018c80
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140004b30
mov rdx, qword [r14]
test rdx, rdx
jne 0x140018ca3
mov eax, esi
jmp 0x140018cb0
mov rax, r12
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018ca6
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140004b30
mov r8d, 7
lea rdx, str.Default
lea rcx, [rsp + 0x48]
call fcn.140004b30
mov r9d, 0x20019
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.14000ddf0
test eax, eax
jne 0x140018df9
mov r12d, esi
lea r14, [0x1402db760]
mov rdi, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x30]
nop dword [rax]
mov qword [rbp - 0x28], rsi
mov rax, qword [r14 + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x28], eax
lea r9, [rbp - 0x28]
mov r8d, dword [r14]
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.140011ef0
test eax, eax
je 0x140018dc4
mov rsi, qword [rbp - 0x28]
test rsi, rsi
je 0x140018dc2
mov rax, qword [r15]
mov r9d, dword [r13]
mov r8d, dword [rbx + rdi*4]
lea rdx, [rbp + 0x18]
mov rcx, r15
call qword [rax + 0x48]
mov ecx, dword [r14]
sub ecx, 3
je 0x140018dab
sub ecx, 1
je 0x140018d99
sub ecx, 7
je 0x140018d87
cmp ecx, 8
jne 0x140018dba
mov r8d, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002ae20
jmp 0x140018dba
movzx r8d, word [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b280
jmp 0x140018dba
movss xmm2, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b0d0
jmp 0x140018dba
mov r8d, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002af40
mov rcx, rsi
call fcn.1401ee580
xor esi, esi
inc r12d
add r14, 0x20
cmp r12d, 0x23
jb 0x140018d10
mov rcx, qword [rbp - 0x68]
test rcx, rcx
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
je 0x140018df2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov r14, qword [rbp - 0x20]
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
add r14, 8
mov qword [rbp - 0x20], r14
add r13, 4
cmp eax, 3
mov r12, 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
mov rax, qword [rsp + 0x60]
jb 0x140018c10
mov r14, qword [rbp - 0x70]
inc r14
mov qword [rbp - 0x70], r14
add rax, 8
mov qword [rsp + 0x60], rax
cmp r14, qword [rbp - 0x18]
jl 0x140018c00
mov rcx, r15
call fcn.140019430
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov r14, r12
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018e71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rbp - 0x68]
mov rbx, qword [rsp + 0x48]
test rsi, rsi
je 0x140018e89
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140018e99
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018eb4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140018ed2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1401e35b0
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
int3