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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov rax, qword [0x1400cd220]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov dword [rbp - 0x64], edx
mov r14, rcx
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x18], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov byte [rbp - 0x10], 1
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov esi, r12d
mov dword [rsp + 0x48], r12d
or r13, 0xffffffffffffffff
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
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]
mov ebx, eax
test eax, eax
jne 0x14007a00e
mov rdi, qword [rsp + 0x50]
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x70], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x70]
lea r8, [rbp]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x140079ff5
test eax, eax
jne 0x140079f9c
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x78]
call fcn.140005058
nop
lea rcx, [rbp]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400798cc
mov r8d, eax
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.14000543c
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140079f4b
mov rbx, qword [rsp + 0x70]
mov qword [rbp - 0x48], rbx
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp - 0x48]
call fcn.140091bc8
test eax, eax
je 0x140079a00
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400799ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400799c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140079f79
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
jmp 0x140079f79
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, str.DisplayName
lea rcx, [rbp - 0x48]
call fcn.140091bc8
test eax, eax
je 0x140079ab2
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140079a77
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400799ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
jmp 0x1400799ae
mov dword [rbp - 0x6c], 4
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
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 0x140079af3
cmp dword [rbp - 0x68], 4
je 0x140079af8
mov dword [rsp + 0x44], r12d
mov byte [rsp + 0x42], r12b
mov byte [rsp + 0x40], 1
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x60], rsi
lea rdi, [r14 + 0x28]
lea rdx, [rbp]
mov rcx, rdi
call fcn.140077be0
test rax, rax
je 0x140079b52
lea rdx, [rax + 8]
lea rcx, [rbp - 0x60]
call fcn.1400052d4
mov rsi, qword [rbp - 0x60]
lea r15, [rsi - 0x18]
cmp dword [r15 + 8], r12d
je 0x140079b9a
mov byte [rsp + 0x42], 1
lea rdx, [0x1400b2338]
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.140077be0
test rax, rax
je 0x140079b9a
mov rdx, rax
mov rcx, rdi
call fcn.140078870
mov qword [rbp - 0x50], r12
lea rdx, [0x1400b2338]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140079bc5
mov r13b, 1
jmp 0x140079c8a
mov r13b, r12b
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 - 0x50]
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 0x140079c41
mov r13b, 1
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140079c8a
test byte [rcx + 0x1c], 2
je 0x140079c8a
cmp byte [rcx + 0x19], 5
jb 0x140079c8a
mov edx, SafeArrayGetDim
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400bcdd8]
mov rcx, qword [rcx + 0x10]
call fcn.1400194b4
jmp 0x140079c8a
lea rdx, [rbp]
mov rcx, rdi
call fcn.140077be0
test rax, rax
jne 0x140079c63
mov r8, rbx
lea rdx, [rbp]
mov rcx, rdi
call fcn.140078740
jmp 0x140079c8a
lea rcx, [rax + 8]
test rbx, rbx
jne 0x140079c71
mov eax, r12d
jmp 0x140079c7f
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x140079c75
mov r8d, eax
mov rdx, rbx
call fcn.140005cf4
mov byte [rsp + 0x41], 1
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea r12, [r14 + 0x58]
lea rdx, [rbp]
mov rcx, r12
call fcn.140077af8
mov rdi, qword [rsp + 0x60]
test rax, rax
je 0x140079d10
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1400052d4
mov al, byte [r14 + 8]
mov byte [rbp - 0x78], al
mov al, byte [r14 + 9]
mov byte [rbp - 0x77], al
mov rdx, rdi
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140079d10
xor r12d, r12d
mov al, r12b
jmp 0x140079d78
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400052d4
mov byte [rbp - 0x78], 0
cmp dword [rsp + 0x44], 1
sete r15b
mov byte [rbp - 0x77], r15b
lea rdx, [rbp]
mov rcx, r12
call fcn.140077af8
test rax, rax
jne 0x140079d55
lea r8, [rbp - 0x80]
lea rdx, [rbp]
mov rcx, r12
call fcn.140078594
xor r12d, r12d
jmp 0x140079d70
lea r14, [rax + 8]
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400052d4
xor r12d, r12d
mov byte [r14 + 8], r12b
mov byte [r14 + 9], r15b
lea r15, [rsi - 0x18]
mov al, byte [rsp + 0x41]
cmp dword [rbp - 0x64], r12d
je 0x140079ea7
mov cl, byte [rsp + 0x40]
cmp byte [rsp + 0x42], r12b
je 0x140079d91
test cl, cl
je 0x140079e0b
test r13b, r13b
jne 0x140079e07
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140079ddb
test byte [rcx + 0x1c], 2
je 0x140079ddb
cmp byte [rcx + 0x19], 5
jb 0x140079ddb
mov edx, SafeArrayGetDim
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400bcdd8]
mov rcx, qword [rcx + 0x10]
call fcn.14002a9b8
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
xor edx, edx
mov r14, qword [rsp + 0x58]
lea r9, [rbp]
mov rcx, r14
call fcn.140079670
jmp 0x140079eac
test cl, cl
jne 0x140079e5b
test r13b, r13b
je 0x140079e5b
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140079e47
test byte [rcx + 0x1c], 2
je 0x140079e47
cmp byte [rcx + 0x19], 5
jb 0x140079e47
mov edx, SafeArrayGetDim
mov r9, rsi
lea r8, [0x1400bcdd8]
mov rcx, qword [rcx + 0x10]
call fcn.1400062dc
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 1
jmp 0x140079df1
mov r14, qword [rsp + 0x58]
test al, al
je 0x140079e89
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, r14
call fcn.140079670
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
mov edx, 3
jmp 0x140079df6
mov r14, qword [rsp + 0x58]
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140079ee2
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140079f10
mov rcx, qword [r15]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rdx, r15
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
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 0x140079a77
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
jmp 0x140079a77
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140079f79
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140079f8f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc dword [rsp + 0x48]
mov esi, dword [rsp + 0x48]
jmp 0x140079819
jle 0x140079fa7
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140079fdf
test byte [rcx + 0x1c], 2
je 0x140079fdf
cmp byte [rcx + 0x19], 5
jb 0x140079fdf
mov edx, SafeArrayDestroy
mov r9d, ebx
lea r8, [0x1400bcdd8]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
nop
test rdi, rdi
je 0x14007a019
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14007a019
test rdi, rdi
je 0x14007a009
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, r12d
jmp 0x14007a019
jle 0x14007a019
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14007a02f
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140003680
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