Function at 0x1400719f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
xor r12d, r12d
mov dword [rbp - 0x25], r12d
call fcn.1400301a0
movzx ebx, al
shl ebx, 8
add ebx, 0x20019
mov qword [rbp - 0x19], r12
mov dword [rbp - 0x11], r12d
mov qword [rbp - 9], r12
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.SOFTWAREClientsMediaWindows_Media_CenterCapabilities
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x19]
test eax, eax
jne 0x140071a73
test rcx, rcx
je 0x140071a61
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 9]
mov qword [rbp - 0x19], rcx
mov eax, ebx
and eax, 0x300
mov dword [rbp - 0x11], eax
mov dword [rbp + 0x67], r12d
mov esi, 0xffffffff
test rcx, rcx
je 0x140071b35
mov dword [rbp - 0x29], 4
mov dword [rbp - 0x49], 0xffffffff
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
lea rdx, str.Hidden
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140071ac3
mov dword [rbp + 0x67], r12d
jmp 0x140071b35
mov eax, dword [rbp - 0x49]
cmp eax, 4
je 0x140071b35
mov dword [rbp + 0x67], r12d
cmp eax, 1
jne 0x140071b35
lea r9, [0x1400c5494]
lea r8, str.Hidden
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x19]
call fcn.140029c70
nop
mov rax, qword [rbp - 1]
cmp dword [rax - 0x10], 0
jle 0x140071b09
mov rcx, rax
call fcn.140017960
mov dword [rbp + 0x67], eax
mov rax, qword [rbp - 1]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140071b35
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140071b2b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140071b35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
cmp dword [rbp + 0x67], 0
setne r15b
mov qword [rbp - 0x41], r12
mov dword [rbp - 0x39], r12d
mov qword [rbp + 7], r12
lea rax, [rbp + 0x17]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerRemoveAccess
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140071ba7
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140071b96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 7]
mov qword [rbp - 0x41], rax
and ebx, 0x300
mov dword [rbp - 0x39], ebx
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, esi
lea rdx, [0x1400c5494]
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rbp - 0x31], rax
mov r14d, 1
mov dword [rbp - 0x25], r14d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140071d94
mov dword [rbp + 0x7f], r14d
mov dword [rbp + 0x77], r12d
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
xor r8d, r8d
lea rdx, str.EHomeMCE
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140071d94
mov ecx, dword [rbp + 0x7f]
lea eax, [rcx - 1]
cmp eax, r14d
jbe 0x140071d13
cmp ecx, 4
jne 0x140071d94
mov dword [rbp + 0x6f], r12d
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140071cf8
mov dword [rbp - 0x21], 4
mov dword [rbp - 0x45], 0xffffffff
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
xor r8d, r8d
lea rdx, str.EHomeMCE
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140071c86
mov dword [rbp + 0x6f], r12d
jmp 0x140071cf8
mov eax, dword [rbp - 0x45]
cmp eax, 4
je 0x140071cf8
mov dword [rbp + 0x6f], r12d
cmp eax, r14d
jne 0x140071cf8
lea r9, [0x1400c5494]
lea r8, str.EHomeMCE
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x41]
call fcn.140029c70
nop
mov rax, qword [rbp + 0xf]
cmp dword [rax - 0x10], 0
jle 0x140071ccc
mov rcx, rax
call fcn.140017960
mov dword [rbp + 0x6f], eax
mov rax, qword [rbp + 0xf]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140071cf8
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140071cee
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140071cf8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movsxd rdx, dword [rbp + 0x6f]
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.140013580
jmp 0x140071d94
mov edi, dword [rbp + 0x77]
inc rdi
shr rdi, 1
lea edx, [rdi + 1]
movzx r9d, r14b
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.140010590
mov rbx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x7f]
xor r8d, r8d
lea rdx, str.EHomeMCE
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rcx, edi
mov word [rbx + rcx*2], r12w
mov rax, qword [rbp - 0x31]
test rax, rax
jne 0x140071d6e
mov edx, r12d
jmp 0x140071d85
mov rdx, rax
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x140071d71
sub rdx, rax
sar rdx, 1
dec edx
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x140071d94
xchg dword [rax - 8], r14d
mov rax, qword [rbp - 0x31]
mov ebx, dword [rax - 0x10]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140071dc5
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140071dbb
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140071dc5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test r15b, r15b
je 0x140071dd2
test ebx, ebx
jle 0x140071dd2
xor bl, bl
jmp 0x140071dd4
mov bl, 1
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140071de7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x41], r12
mov dword [rbp - 0x39], r12d
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140071dfa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret