Function at 0x140073060
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r12, rdx
mov rbp, rcx
mov qword [rsp + 0x70], rcx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
call fcn.14013d07c
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x1400730c9
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, str.SYSTEMCurrentControlSetControlMediaCategories_
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140073112
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x140073133
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400020e0
mov rbx, qword [rsp + 0x30]
jmp 0x140073133
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.140002390
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x60], r13
call fcn.14013d07c
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x140073158
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x140073198
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400731b5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400020e0
jmp 0x1400731b5
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140002390
nop
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.140089ca0
nop
mov r13, qword [rax]
mov edx, dword [r13 - 0x10]
mov dword [rsp + 0x38], edx
mov r12, r13
sub r12, rbx
sar r12, 1
mov r15d, dword [rbx - 0x10]
lea edi, [r15 + rdx]
mov r14d, 1
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140073209
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001df0
mov rbx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x38]
cmp r12, r15
ja 0x140073212
lea r13, [rbx + r12*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rbx + r15*2]
mov r9, rdx
mov r8, r13
call fcn.14015cd30
test edi, edi
js 0x1400736a7
cmp edi, dword [rbx - 0xc]
jg 0x1400736a7
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073264
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r12d, r12d
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400735d7
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], 0x80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Name
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400734f3
mov eax, dword [rsp + 0x48]
cmp eax, 1
je 0x1400732f1
cmp eax, 2
jne 0x1400734f3
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140073311
test al, 1
jne 0x1400734f3
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], r12w
je 0x14007331a
jmp 0x1400734f3
mov word [rsp + 0x80], r12w
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
test ecx, ecx
jne 0x14007339c
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14007342a
cmp dword [rdx + 0x10], eax
jge 0x14007336e
cmp dword [rdi - 0xc], eax
jge 0x140073362
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rdi - 0x10], r12d
mov word [rdi], ax
jmp 0x14007342a
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073385
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
jmp 0x14007342a
mov rdi, qword [rsp + 0x40]
mov r12d, dword [rdi - 0x10]
lea r13, [rsp + 0x80]
sub r13, rdi
sar r13, 1
sub r14d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ecx
or eax, r14d
jge 0x1400733d2
mov edx, ecx
lea rcx, [rsp + 0x40]
call fcn.140001df0
mov rdi, qword [rsp + 0x40]
cmp r13, r12
ja 0x1400733f2
movsxd rax, ebx
lea r12, [rax + rax]
lea r8, [rdi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rdi
call fcn.14015cf60
jmp 0x14007340f
movsxd rax, ebx
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x80]
mov rdx, r12
mov rcx, rdi
call fcn.14015cd30
test ebx, ebx
js 0x1400734e8
cmp ebx, dword [rdi - 0xc]
jg 0x1400734e8
mov dword [rdi - 0x10], ebx
mov word [r12 + rdi], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14007344e
cmp rax, qword [rdi - 0x18]
jne 0x14007344e
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14007348c
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14007346a
call fcn.1400c5210
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
lea rax, [rbx + 0x18]
mov qword [rbp], rax
mov eax, esi
lock xadd dword [rdi - 8], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400734b1
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400734c2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400734e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x1400736b2
mov ecx, 0x80070057
call fcn.140001c00
int3
call fcn.14013d07c
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140073513
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14007357f
cmp dword [rdx + 0x10], 0
jge 0x140073557
cmp dword [rax - 0xc], 0
jge 0x140073548
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rax - 0x10], r12d
mov rax, qword [rbp]
mov word [rax], 0
jmp 0x14007357f
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14007356e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400735a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400735b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400735cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x1400736b2
call fcn.14013d07c
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400735f7
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140073663
cmp dword [rdx + 0x10], 0
jge 0x14007363b
cmp dword [rax - 0xc], 0
jge 0x14007362c
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rax - 0x10], r12d
mov rax, qword [rbp]
mov word [rax], 0
jmp 0x140073663
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073652
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073684
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], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400736a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x1400736b2
mov ecx, 0x80070057
call fcn.140001c00
nop
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret