Function at 0x14003f9a0
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 + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14003fd18
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, str.SYSTEMCurrentControlSetControlMediaCategories_
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400168b0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x14003fa3c
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x14003fa20
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140016ad0
nop
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14003fd23
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r14, [0x140393240]
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.1400168b0
test al, al
jne 0x14003faac
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x14003fa90
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140016ad0
nop
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14003bb80
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140016630
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003faea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 0x20019
mov r8, qword [rsp + 0x30]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140024490
test eax, eax
je 0x14003fb9e
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14003fd2e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
xor edx, edx
mov rcx, rdi
call fcn.1400168b0
test al, al
jne 0x14003fb48
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140016ad0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003fb67
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 0x14003fb78
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 0x14003fc87
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x14003fc87
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 0x14003fc01
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14003fc01
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14003fcad
test al, 1
jne 0x14003fc01
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x14003fcb2
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14003fd0d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
xor edx, edx
mov rcx, rdi
call fcn.1400168b0
test al, al
jne 0x14003fc3b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140016ad0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003fc5a
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 0x14003fc6b
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 0x14003fc87
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.1402ecc20
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rbp - 0x80], r15w
lea rcx, [rbp - 0x80]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14003fcc0
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140016ad0
mov rsi, qword [rsp + 0x38]
lea rcx, [rsi - 0x18]
call fcn.140012250
add rax, 0x18
mov qword [rdi], rax
mov eax, ebx
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14003fc5a
mov rcx, qword [rsi - 0x18]
lea rdx, [rsi - 0x18]
jmp 0x14003fc53
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
int3