Function at 0x140013ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12, rcx
mov dl, 1
mov rax, qword [rcx + 0xd60]
mov rcx, qword [rcx + 0xd68]
cmp rax, rcx
je 0x140013d81
mov r8, qword [rax]
test r8, r8
je 0x140013d74
mov rdx, qword [r8 + 0xc8]
sub rdx, qword [r8 + 0xc0]
test rdx, 0xfffffffffffffffc
jne 0x140013d72
mov rdx, qword [r8 + 0x108]
sub rdx, qword [r8 + 0x100]
test rdx, 0xfffffffffffffffc
jne 0x140013d72
mov dl, 1
jmp 0x140013d74
xor dl, dl
add rax, 8
test dl, dl
jne 0x140013d33
jmp 0x14001406e
test dl, dl
je 0x14001406e
lea r15, vtable.CMaxxAudioRegistryPreset.0
mov qword [rsp + 0x48], r15
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov ecx, dword [r12 + 0xc64]
mov eax, ecx
and eax, 2
mov edi, 0x200
mov r14d, 0x100
cmp al, 2
jne 0x140013dbe
mov r9d, edi
jmp 0x140013dcb
and cl, 4
mov r9d, r13d
cmp cl, 4
cmove r9d, r14d
mov qword [rsp + 0x50], r13
or r9d, 0x20017
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [r12 + 0xc88]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
test al, al
jne 0x140013f15
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140013e48
mov edx, 0x104
lea rcx, [rsp + 0x68]
call fcn.140009710
mov rbx, qword [rsp + 0x68]
mov r8, rbx
xor edx, edx
mov ecx, dword [r12 + 0xc60]
call fcn.14003a8a0
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400259d4
test eax, eax
js 0x140013f0a
cmp eax, dword [rbx - 0xc]
jg 0x140013f0a
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
mov ecx, dword [r12 + 0xc64]
mov eax, ecx
and eax, 2
cmp al, 2
je 0x140013e9e
and cl, 4
mov edi, r13d
cmp cl, 4
cmove edi, r14d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013eb3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
or edi, 0x20017
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete dil
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013eff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test dil, dil
je 0x140014059
jmp 0x140013f15
mov ecx, 0x80070057
call fcn.1400050a0
nop
lea rcx, [r12 + 0xcb8]
call fcn.14001bed0
mov edi, r13d
nop word [rax + rax]
mov byte [rbp - 0x80], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x7f]
call fcn.140026b30
mov dword [rsp + 0x60], 0x104
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x80]
mov edx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [rsp + 0x40], 0
jbe 0x140014059
mov r8d, 0xd
lea rdx, str.DefaultPreset
lea rcx, [rbp - 0x80]
call fcn.1400259cc
test eax, eax
jne 0x140014052
mov ecx, dword [rsp + 0x40]
call fcn.140023b74
mov rbx, rax
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14001401b
test rbx, rbx
je 0x14001401b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
lea rcx, [r12 + 0xcb8]
call fcn.14001b3b0
test al, al
jne 0x14001404a
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
lea rcx, [r12 + 0xcb8]
call fcn.14001b6b0
mov rcx, rbx
call fcn.1400246b8
inc edi
jmp 0x140013f30
mov qword [rsp + 0x48], r15
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001406e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140023ca0
lea r11, [rsp + 0x1a0]
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