Function at 0x140080b58
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 - 0x268]
sub rsp, 0x340
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140109388]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rbp - 0x60], edx
mov r15, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp + 0x20], 1
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov r12d, r13d
mov dword [rsp + 0x4c], r13d
or rbx, 0xffffffffffffffff
lea rsi, [0x140106190]
mov rdi, r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x50], r13
lea rax, [rbp - 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]
test eax, eax
jne 0x140081440
mov eax, r13d
mov rdi, qword [rbp - 0x50]
mov qword [rbp - 0x30], rdi
test eax, eax
jne 0x140081440
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x30]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14008142d
test eax, eax
jne 0x1400813ed
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x50]
call fcn.140004a80
nop
lea rcx, [rbp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140080c78
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400044f8
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x70]
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]
test eax, eax
jne 0x1400813e8
mov rsi, qword [rsp + 0x70]
mov qword [rbp - 8], rsi
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp - 8]
call fcn.1400b442c
test eax, eax
je 0x140080d96
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140080d3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140080d4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140080d73
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140080d82
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rsi, [0x140106190]
inc r12d
mov dword [rsp + 0x4c], r12d
jmp 0x140080bc9
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, str.DisplayName
lea rcx, [rbp - 8]
call fcn.1400b442c
test eax, eax
je 0x140080dff
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140080d14
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
jmp 0x140080d14
call fcn.140081668
test al, al
je 0x140080e94
mov qword [rbp - 0x48], r13
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140080ed6
mov rbx, qword [rbp - 0x48]
mov dword [rsp + 0x58], r13d
mov dword [rbp - 0x74], 4
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.AllowRMESharingOnDomainForTest
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x58], 1
sete dil
test rbx, rbx
je 0x140080e8f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140080ed6
mov dword [rbp - 0x70], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
lea rdx, str.RemoteSharingEnabled
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140080ed6
cmp dword [rbp - 0x6c], 4
jne 0x140080ed6
mov eax, r13d
test eax, eax
je 0x140080edb
mov dword [rsp + 0x44], r13d
mov dword [rbp - 0x68], 4
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x64]
xor r8d, r8d
lea rdx, str.AlwaysAllowMachineToSleep
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140080f1d
cmp dword [rbp - 0x64], 4
jne 0x140080f1d
mov eax, r13d
test eax, eax
je 0x140080f22
mov dword [rsp + 0x48], r13d
mov byte [rsp + 0x43], r13b
mov byte [rsp + 0x40], 1
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x58], rsi
lea rdi, [r15 + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082a8c
test rax, rax
je 0x140080f72
lea rdx, [rax + 8]
lea rcx, [rbp - 0x58]
call fcn.140004bbc
mov rsi, qword [rbp - 0x58]
cmp dword [rsi - 0x10], r13d
je 0x140080fb0
mov byte [rsp + 0x43], 1
lea rdx, [0x1400dac18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete byte [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082a8c
test rax, rax
je 0x140080fb0
mov rdx, rax
mov rcx, rdi
call fcn.140082bdc
mov qword [rbp - 0x10], r13
lea rdx, [0x1400dac18]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete r14b
mov byte [rsp + 0x41], r14b
test eax, eax
je 0x14008104e
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x10]
mov eax, 1
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14008104e
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov rcx, qword [0x140106190]
lea rdx, [0x140106190]
cmp rcx, rdx
je 0x14008109c
test byte [rcx + 0x1c], 2
je 0x14008109c
cmp byte [rcx + 0x19], 5
jb 0x14008109c
mov edx, SafeArrayDestroy
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400e5ac0]
mov rcx, qword [rcx + 0x10]
call fcn.140005344
test r14b, r14b
jne 0x14008109c
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082a8c
test rax, rax
jne 0x140081075
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.1400828bc
jmp 0x14008109c
lea rcx, [rax + 8]
test rbx, rbx
jne 0x140081083
mov eax, r13d
jmp 0x140081091
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140081087
mov r8d, eax
mov rdx, rbx
call fcn.140004e40
mov byte [rsp + 0x42], 1
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r13, [r15 + 0x58]
lea rdx, [rbp + 0x30]
mov rcx, r13
call fcn.140082eb4
mov rdi, qword [rsp + 0x60]
test rax, rax
je 0x140081115
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140004bbc
mov al, byte [r14 + 8]
mov byte [rbp - 0x80], al
mov al, byte [r14 + 9]
mov byte [rbp - 0x7f], al
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140081115
xor r13d, r13d
mov al, r13b
jmp 0x14008118b
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140004bbc
cmp dword [rsp + 0x44], 1
sete r15b
mov byte [rbp - 0x80], r15b
cmp dword [rsp + 0x48], 1
sete r12b
mov byte [rbp - 0x7f], r12b
lea rdx, [rbp + 0x30]
mov rcx, r13
call fcn.140082eb4
test rax, rax
jne 0x140081162
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rcx, r13
call fcn.140082ce4
jmp 0x14008117b
lea r14, [rax + 8]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140004bbc
mov byte [r14 + 8], r15b
mov byte [r14 + 9], r12b
xor r13d, r13d
mov r12d, dword [rsp + 0x4c]
mov r15, qword [rbp - 0x40]
mov al, byte [rsp + 0x42]
cmp dword [rbp - 0x60], r13d
je 0x140081293
mov dl, byte [rsp + 0x40]
cmp byte [rsp + 0x43], r13b
je 0x1400811a8
test dl, dl
je 0x140081389
mov cl, byte [rsp + 0x41]
test cl, cl
jne 0x140081225
mov rcx, qword [0x140106190]
lea rsi, [0x140106190]
cmp rcx, rsi
je 0x1400811f5
test byte [rcx + 0x1c], 2
je 0x1400811f5
cmp byte [rcx + 0x19], 5
jb 0x1400811f5
mov edx, SafeArrayDestroy
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400e5ac0]
mov rcx, qword [rcx + 0x10]
call fcn.1400239c0
cmp dword [rsp + 0x48], 1
sete cl
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x30]
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.1400814a8
jmp 0x14008129a
test dl, dl
je 0x14008138d
test al, al
je 0x140081262
cmp dword [rsp + 0x48], 1
sete cl
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x30]
mov r8, rbx
mov edx, 2
mov rcx, r15
call fcn.1400814a8
cmp dword [rsp + 0x48], 1
sete cl
cmp dword [rsp + 0x44], 1
sete al
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
mov edx, 3
lea r9, [rbp + 0x30]
mov rcx, r15
call fcn.1400814a8
lea rsi, [0x140106190]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400812c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400812eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140081312
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140081339
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008134a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140081371
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140080d89
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140080d89
mov cl, byte [rsp + 0x41]
test cl, cl
je 0x14008122d
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400813cc
test byte [rcx + 0x1c], 2
je 0x1400813cc
cmp byte [rcx + 0x19], 5
jb 0x1400813cc
mov edx, SafeArrayDestroy
mov r9, rsi
lea r8, [0x1400e5ac0]
mov rcx, qword [rcx + 0x10]
call fcn.140003558
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], r13
mov r8, rsi
mov edx, 1
jmp 0x140081287
jmp 0x14008134a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140106190]
cmp rcx, rsi
je 0x14008144e
test byte [rcx + 0x1c], 2
je 0x14008144e
cmp byte [rcx + 0x19], 5
jb 0x14008144e
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9d, ebx
lea r8, [0x1400e5ac0]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
jmp 0x14008144e
test rdi, rdi
je 0x14008143b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r13d
jmp 0x14008145c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x14008145c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14008146c
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400cc8d0
lea r11, [rsp + 0x340]
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