Function at 0x140001a90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x78], rcx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
call fcn.140001230
mov rcx, rax
test rax, rax
jne 0x140001aee
mov ecx, 0x80004005
call fcn.140001580
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.SYSTEMCurrentControlSetControlMediaCategories_
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140001b32
movzx esi, dx
mov ecx, esi
call fcn.140001640
test rax, rax
je 0x140001b4d
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002ed0
jmp 0x140001b4d
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x140001b35
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140002fe0
nop
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
call fcn.140001230
mov rcx, rax
test rax, rax
jne 0x140001b74
mov ecx, 0x80004005
call fcn.140001580
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140030238]
test rdx, 0xffffffffffff0000
jne 0x140001bb4
movzx esi, dx
mov ecx, esi
call fcn.140001640
test rax, rax
je 0x140001bd8
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002ed0
jmp 0x140001bd8
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140001bc0
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140002fe0
nop
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.1400019b0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140003120
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001c16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 0x20019
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140001720
test eax, eax
je 0x140001cbc
call fcn.140001230
mov rcx, rax
test rax, rax
jne 0x140001c4b
mov ecx, 0x80004005
call fcn.140001580
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140002fe0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001c85
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001c96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140001dea
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140001dea
mov dword [rsp + 0x40], 0x80
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Name
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001d6b
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x140001d6b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140001d19
test al, 1
jne 0x140001d6b
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x140001d1e
jmp 0x140001d6b
mov word [rbp - 0x80], r15w
lea rcx, [rbp - 0x80]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001d25
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140002fe0
mov rsi, qword [rsp + 0x38]
lea rcx, [rsi - 0x18]
call fcn.140002e30
add rax, 0x18
mov qword [rdi], rax
mov eax, ebx
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140001dbd
mov rcx, qword [rsi - 0x18]
lea rdx, [rsi - 0x18]
jmp 0x140001db6
call fcn.140001230
mov rcx, rax
test rax, rax
jne 0x140001d83
mov ecx, 0x80004005
call fcn.140001580
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140002fe0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001dbd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001dce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140001dea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140010d30
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret