Function at 0x140071eb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov dword [rbp - 0x74], edx
mov r15, rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x10], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov byte [rbp - 8], 1
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov esi, r12d
mov dword [rsp + 0x48], r12d
or r13, 0xffffffffffffffff
lea r14, [0x1400cf018]
mov rdi, r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x68], r12
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400726df
mov eax, r12d
mov rdi, qword [rbp - 0x68]
mov qword [rbp - 0x50], rdi
test eax, eax
jne 0x1400726df
mov dword [rbp - 0x80], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
lea r8, [rbp]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
je 0x1400726c6
test eax, eax
jne 0x140072686
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x50]
call fcn.140004b44
nop
lea rcx, [rbp]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140071fe1
mov r8d, eax
lea rdx, [rbp]
lea rcx, [rsp + 0x50]
call fcn.140004550
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140072681
mov rbx, qword [rsp + 0x68]
mov qword [rbp - 0x30], rbx
mov rax, qword [0x1400d1e50]
lea rdi, [0x1400d1e50]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp - 0x30]
call fcn.14008b7d4
test eax, eax
je 0x14007210d
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400720af
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400720c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400720ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14007261c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14007261c
mov rax, qword [0x1400d1e50]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, str.DisplayName
lea rcx, [rbp - 0x30]
call fcn.14008b7d4
test eax, eax
je 0x140072174
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140072086
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
jmp 0x140072086
mov dword [rbp - 0x7c], 4
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.AlwaysAllowMachineToSleep
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400721bc
cmp dword [rbp - 0x78], 4
jne 0x1400721bc
mov eax, r12d
test eax, eax
je 0x1400721c1
mov dword [rsp + 0x44], r12d
mov byte [rsp + 0x42], r12b
mov byte [rsp + 0x40], 1
mov rax, qword [0x1400d1e50]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x70], rsi
lea rdi, [r15 + 0x28]
lea rdx, [rbp]
mov rcx, rdi
call fcn.140073818
test rax, rax
je 0x14007220d
lea rdx, [rax + 8]
lea rcx, [rbp - 0x70]
call fcn.140004c84
mov rsi, qword [rbp - 0x70]
cmp dword [rsi - 0x10], r12d
je 0x140072251
mov byte [rsp + 0x42], 1
lea rdx, [0x1400ae2f8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
sete byte [rsp + 0x40]
lea rdx, [rbp]
mov rcx, rdi
call fcn.140073818
test rax, rax
je 0x140072251
mov rdx, rax
mov rcx, rdi
call fcn.140073980
mov qword [rbp - 0x38], r12
lea rdx, [0x1400ae2f8]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
sete r14b
mov byte [rsp + 0x41], r14b
test eax, eax
je 0x1400722fb
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x38]
mov eax, 1
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
nop dword [rax + rax]
test eax, eax
je 0x1400722fb
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov rcx, qword [0x1400cf018]
lea rdx, [0x1400cf018]
cmp rcx, rdx
je 0x140072348
test byte [rcx + 0x1c], 2
je 0x140072348
cmp byte [rcx + 0x19], 5
jb 0x140072348
mov edx, SafeArrayDestroy
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400b8d98]
mov rcx, qword [rcx + 0x10]
call fcn.14000542c
test r14b, r14b
jne 0x140072348
lea rdx, [rbp]
mov rcx, rdi
call fcn.140073818
test rax, rax
jne 0x140072322
mov r8, rbx
lea rdx, [rbp]
mov rcx, rdi
call fcn.14007366c
jmp 0x140072348
lea rcx, [rax + 8]
test rbx, rbx
jne 0x140072330
mov eax, r12d
jmp 0x14007233d
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x140072333
mov r8d, eax
mov rdx, rbx
call fcn.140004f30
mov r13b, 1
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r12, [r15 + 0x58]
lea rdx, [rbp]
mov rcx, r12
call fcn.140073c3c
mov rdi, qword [rsp + 0x58]
test rax, rax
je 0x1400723c7
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004c84
mov al, byte [r14 + 8]
mov byte [rsp + 0x78], al
mov al, byte [r14 + 9]
mov byte [rsp + 0x79], al
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x1400723c7
xor r12d, r12d
mov r13b, r12b
jmp 0x140072430
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140004c84
mov byte [rsp + 0x78], 0
cmp dword [rsp + 0x44], 1
sete r15b
mov byte [rsp + 0x79], r15b
lea rdx, [rbp]
mov rcx, r12
call fcn.140073c3c
test rax, rax
jne 0x140072410
lea r8, [rsp + 0x70]
lea rdx, [rbp]
mov rcx, r12
call fcn.140073a90
xor r12d, r12d
jmp 0x14007242c
lea r14, [rax + 8]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140004c84
xor r12d, r12d
mov byte [r14 + 8], r12b
mov byte [r14 + 9], r15b
mov r15, qword [rbp - 0x60]
cmp dword [rbp - 0x74], r12d
je 0x140072515
mov cl, byte [rsp + 0x40]
cmp byte [rsp + 0x42], r12b
je 0x14007244d
test cl, cl
je 0x140072627
mov al, byte [rsp + 0x41]
test al, al
jne 0x1400724be
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp rcx, r14
je 0x14007249a
test byte [rcx + 0x1c], 2
je 0x14007249a
cmp byte [rcx + 0x19], 5
jb 0x14007249a
mov edx, SafeArrayDestroy
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400b8d98]
mov rcx, qword [rcx + 0x10]
call fcn.14001f888
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
xor edx, edx
lea r9, [rbp]
mov rcx, r15
call fcn.140072760
jmp 0x14007251c
test cl, cl
je 0x14007262b
test r13b, r13b
je 0x1400724f0
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
lea r9, [rbp]
mov r8, rbx
mov edx, 2
mov rcx, r15
call fcn.140072760
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
lea r9, [rbp]
mov r8, rbx
mov edx, 3
mov rcx, r15
call fcn.140072760
lea r14, [0x1400cf018]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140072549
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140072571
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14007259a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400725c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400725da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140072603
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140072618
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov esi, dword [rsp + 0x48]
inc esi
mov dword [rsp + 0x48], esi
jmp 0x140071f27
mov al, byte [rsp + 0x41]
test al, al
je 0x1400724c6
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp rcx, r14
je 0x14007266a
test byte [rcx + 0x1c], 2
je 0x14007266a
cmp byte [rcx + 0x19], 5
jb 0x14007266a
mov edx, SafeArrayDestroy
mov r9, rsi
lea r8, [0x1400b8d98]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 1
jmp 0x1400724b0
jmp 0x1400720c6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x1400726ed
test byte [rcx + 0x1c], 2
je 0x1400726ed
cmp byte [rcx + 0x19], 5
jb 0x1400726ed
mov edx, SafeArrayDestroy
mov r9d, ebx
lea r8, [0x1400b8d98]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
jmp 0x1400726ed
test rdi, rdi
je 0x1400726da
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, r12d
jmp 0x140072701
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x140072701
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140072717
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400a3310
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret