Function at 0x140018870
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 0x1400190e2
cmp dword [rax + 0x148], 0
je 0x1400190e2
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x14001911d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140019128
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, [0x140280d60]
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.Internal
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 0x1400189b0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.1400054e0
lea rdx, [0x140281228]
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400189d1
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.14000e2b0
test eax, eax
je 0x140018a3e
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.14000e080
test eax, eax
jne 0x14001908a
movups xmm0, xmmword [0x1402818a8]
movups xmmword [rbp + 0x18], xmm0
mov eax, dword [0x1402818b8]
mov dword [rbp + 0x28], eax
mov qword [rbp - 0x50], rsi
mov r14d, esi
mov r13, qword [rbp - 8]
test r13, r13
je 0x140018ae8
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x18]
call fcn.140011f10
test eax, eax
js 0x140018ad2
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 0x140018abe
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 0x140018ae8
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b0e0
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 [0x140282308]
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 0x140018b9f
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x18]
call fcn.140011f10
test eax, eax
js 0x140018b9f
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 0x140018b8b
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.14002b0e0
inc r12
cmp r12, rdi
jl 0x140018b00
call fcn.14004adf0
mov rcx, rax
test rax, rax
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
je 0x140019112
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r14, [0x140280b88]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400050a0
mov r12, 0xffffffffffffffff
test al, al
jne 0x140018c2c
mov rax, r12
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x140018c10
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400054e0
nop
movups xmm0, xmmword [0x140282008]
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 0x140018cf6
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x18]
call fcn.140011f10
test eax, eax
js 0x140018cf6
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 0x140018ceb
mov eax, dword [rbp - 0x7c]
dec eax
cmp eax, 1
ja 0x140018ceb
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140018cbb
test al, 1
jne 0x140018ceb
shr rax, 1
cmp word [rbp + rax*2 + 0x5e], 0
je 0x140018cc1
jmp 0x140018ceb
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 0x140018cd0
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.14002ae90
movups xmm0, xmmword [0x140281f90]
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 0x140018dd9
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x18]
call fcn.140011f10
test eax, eax
js 0x140018dd9
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 0x140018dce
mov eax, dword [rbp - 0x78]
dec eax
cmp eax, 1
ja 0x140018dce
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x140018d9c
test al, 1
jne 0x140018dce
shr rax, 1
cmp word [rbp + rax*2 + 0x26e], 0
je 0x140018da5
jmp 0x140018dce
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 0x140018db0
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.14002ae90
test r13, r13
je 0x140018dfc
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 0x140018e7f
cmp dword [rbx + 0x10], 0
jl 0x140018e69
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140018e69
call fcn.140004c20
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140018e59
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 0x140018e7a
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 0x140018e8b
mov eax, esi
jmp 0x140018e9a
mov rax, r12
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018e90
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140004b30
mov rdx, qword [r14]
test rdx, rdx
jne 0x140018eb3
mov eax, esi
jmp 0x140018ec0
mov rax, r12
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018eb6
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.14000e2b0
test eax, eax
jne 0x140019009
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.1400123b0
test eax, eax
je 0x140018fd4
mov rsi, qword [rbp - 0x28]
test rsi, rsi
je 0x140018fd2
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 0x140018fbb
sub ecx, 1
je 0x140018fa9
sub ecx, 7
je 0x140018f97
cmp ecx, 8
jne 0x140018fca
mov r8d, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b0e0
jmp 0x140018fca
movzx r8d, word [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b540
jmp 0x140018fca
movss xmm2, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b390
jmp 0x140018fca
mov r8d, dword [rsi]
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.14002b200
mov rcx, rsi
call fcn.1401ee8a0
xor esi, esi
inc r12d
add r14, 0x20
cmp r12d, 0x23
jb 0x140018f20
mov rcx, qword [rbp - 0x68]
test rcx, rcx
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
je 0x140019002
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 0x140018e20
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 0x140018e10
mov rcx, r15
call fcn.140019640
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 0x140019081
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 0x140019099
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400190a9
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 0x1400190c4
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 0x1400190e2
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.1401e3920
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