Function at 0x1401e6930
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r8
mov r13, rdx
mov r15, rcx
test r8, r8
jne 0x1401e697b
xor eax, eax
jmp 0x1401e6f7d
call fcn.1401fa4b0
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1401e699e
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rsi, [0x140273028]
or rbx, 0xffffffffffffffff
test rsi, 0xffffffffffff0000
jne 0x1401e69e5
movzx edi, si
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x1401e6a05
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140007610
jmp 0x1401e6a05
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140007880
nop
call fcn.1401fa4b0
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1401e6a25
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r12
mov word [rsp + 0x90], 0
xor edx, edx
lea r8d, [rdx + 0x7e]
lea rcx, [rsp + 0x92]
call fcn.14022a8c0
mov qword [r14], r12
xor eax, eax
mov rdi, rsi
mov rsi, qword [r13 + 0x10]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1401e6a74
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x1401e6cbf
lea rcx, [rsp + 0x78]
lea rsi, [0x14026de98]
mov rax, qword [rsi]
mov qword [rcx], rax
mov rax, qword [rsi + 8]
mov qword [rcx + 8], rax
mov rax, qword [r13 + 0x10]
cmp dword [rax - 8], 1
jle 0x1401e6ab1
mov edx, dword [rax - 0x10]
lea rcx, [r13 + 0x10]
call fcn.140003da0
lea rdx, [rsp + 0x78]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov r11, qword [r13 + 0x10]
test r11, r11
jne 0x1401e6ace
mov ecx, r12d
jmp 0x1401e6ae8
xor eax, eax
mov rcx, rbx
mov rdi, r11
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x1401e6cb4
cmp ecx, dword [r11 - 0xc]
jg 0x1401e6cb4
mov dword [r11 - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [r13 + 0x10]
mov word [rax + rcx*2], 0
lea rax, [rsp + 0x78]
mov rcx, qword [rax]
cmp rcx, qword [rsi]
jne 0x1401e6b1f
mov rcx, qword [rax + 8]
cmp rcx, qword [rsi + 8]
jne 0x1401e6b1f
mov eax, r12d
jmp 0x1401e6b24
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1401e6cbf
cmp dword [r13 + 0x18], 0
jne 0x1401e6cbf
xor eax, eax
mov rcx, rbx
lea rdi, str.SYSTEMCurrentControlSetControlMediaCategories_
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SYSTEMCurrentControlSetControlMediaCategories_
lea rcx, [rsp + 0x40]
call fcn.140007880
lea rdx, [r13 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400072a0
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401e6c73
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x38], 0x80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Name
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401e6c23
mov eax, dword [rsp + 0x48]
cmp eax, 1
je 0x1401e6bf4
cmp eax, 2
jne 0x1401e6c23
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1401e6c14
test al, 1
jne 0x1401e6c23
shr rax, 1
cmp word [rsp + rax*2 + 0x8e], 0
je 0x1401e6cbf
jmp 0x1401e6c23
mov word [rsp + 0x90], 0
jmp 0x1401e6cbf
test rsi, rsi
je 0x1401e6c32
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6c4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1401e6c6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1401e6f7d
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6c8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1401e6cad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1401e6f7d
mov ecx, 0x80070057
call fcn.140003d20
int3
mov rax, qword [r15 + 8]
mov rbp, qword [rax + 0x1a20]
nop
nop
test rbp, rbp
je 0x1401e6f1a
mov rsi, qword [rbp + 0x10]
mov rbp, qword [rbp]
test rsi, rsi
je 0x1401e6cd0
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + 0x28]
test eax, eax
je 0x1401e6cd0
mov dx, 0x5c
mov rcx, qword [rsp + 0x30]
call fcn.1402288b0
test rax, rax
je 0x1401e6cd0
mov rcx, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
test eax, eax
js 0x1401e6cd0
movsxd rdi, dword [rcx - 0x10]
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x1401e6d40
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140003d40
mov rcx, qword [rsp + 0x30]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.140228500
test edi, edi
js 0x1401e6f0f
mov rax, qword [rsp + 0x30]
cmp edi, dword [rax - 0xc]
jg 0x1401e6f0f
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x30]
mov word [rax + rdi*2], 0
mov dx, 0x5c
mov rcx, qword [rsp + 0x30]
call fcn.1402288b0
test rax, rax
jne 0x1401e6d86
mov eax, ebx
jmp 0x1401e6d8e
sub rax, qword [rsp + 0x30]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001bdc0
mov rdx, qword [r13 + 8]
mov ecx, r12d
test rdx, rdx
setne cl
test ecx, ecx
je 0x1401e6f04
mov rax, qword [rax]
sub rdx, rax
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1401e6dd7
add rax, 2
test cx, cx
jne 0x1401e6dc0
mov eax, r12d
jmp 0x1401e6ddc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne dil
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6e02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
jne 0x1401e6cd0
cmp qword [rsi + 0xd8], 0
jne 0x1401e6e6c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401e6e26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6e47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1401e6e65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1401e6f7d
cmp dword [r13 + 0x18], 0
je 0x1401e6e86
mov rax, qword [rsi + 0xc8]
mov rcx, qword [rax + 0x10]
mov qword [r14], rcx
jmp 0x1401e6f22
mov rdi, qword [rsi + 0xc8]
test rdi, rdi
je 0x1401e6f22
mov rsi, rdi
test rdi, rdi
je 0x1401e6efe
mov rdi, qword [rdi]
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x1401e6ef2
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1401469b0
lea rdx, [rsp + 0x90]
mov rcx, qword [rax]
call fcn.140229060
test eax, eax
sete bpl
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6eed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
jne 0x1401e6ef9
test rdi, rdi
je 0x1401e6f22
jmp 0x1401e6e96
mov qword [r14], rsi
jmp 0x1401e6f22
call fcn.1401f8920
int3
mov ecx, 0x80004005
call fcn.140003d20
int3
mov ecx, 0x80070057
call fcn.140003d20
int3
mov dword [r15 + 0x14], 1
cmp qword [r14], 0
setne r12b
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401e6f3b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401e6f5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1401e6f7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1402272f0
mov rbx, qword [rsp + 0x178]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret