Function at 0x140080c2c
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 + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140109328]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rbp - 0x60], edx
mov r13, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp + 0x28], 1
xor r14d, r14d
mov r15d, r14d
mov qword [rbp - 0x38], r14
mov edi, r14d
mov dword [rsp + 0x4c], r14d
or r12, 0xffffffffffffffff
lea rsi, [0x140106190]
mov rbx, r14
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x50], r14
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 0x14008154d
mov eax, r14d
mov rbx, qword [rbp - 0x50]
mov qword [rbp - 0x30], rbx
test eax, eax
jne 0x14008154d
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x30]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14008155e
test eax, eax
jne 0x14008150a
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x50]
call fcn.140004b74
nop
lea rcx, [rbp + 0x30]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140080d4e
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140004588
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov ebx, 0x20219
mov r9d, ebx
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400814bb
mov rsi, qword [rsp + 0x70]
mov qword [rbp], rsi
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp]
call fcn.1400b3940
test eax, eax
je 0x140080e66
mov r15d, r14d
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140080e14
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140080e25
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140080e4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400814f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400814f8
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, str.DisplayName
lea rcx, [rbp]
call fcn.1400b3940
test eax, eax
je 0x140080ed4
mov r15d, r14d
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140080deb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
jmp 0x140080deb
call fcn.1400817a0
test al, al
je 0x140080f66
mov qword [rbp - 0x48], r14
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140080fa8
mov rbx, qword [rbp - 0x48]
mov dword [rsp + 0x58], r14d
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 0x140080f61
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140080fa8
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 0x140080fa8
cmp dword [rbp - 0x6c], 4
jne 0x140080fa8
mov eax, r14d
test eax, eax
je 0x140080fad
mov dword [rsp + 0x44], r14d
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 0x140080fef
cmp dword [rbp - 0x64], 4
jne 0x140080fef
mov eax, r14d
test eax, eax
je 0x140080ff4
mov dword [rsp + 0x48], r14d
mov byte [rsp + 0x43], r14b
mov byte [rsp + 0x40], 1
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x58], rsi
lea rdi, [r13 + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082bc4
test rax, rax
je 0x140081044
lea rdx, [rax + 8]
lea rcx, [rbp - 0x58]
call fcn.140004cb0
mov rsi, qword [rbp - 0x58]
cmp dword [rsi - 0x10], r14d
je 0x140081082
mov byte [rsp + 0x43], 1
lea rdx, [0x1400db5a8]
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.140082bc4
test rax, rax
je 0x140081082
mov rdx, rax
mov rcx, rdi
call fcn.140082d30
mov qword [rbp - 0x10], r14
lea rdx, [0x1400db5a8]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete r12b
mov byte [rsp + 0x41], r12b
test r12b, r12b
jne 0x14008116b
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x10]
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x140081122
mov byte [rsp + 0x41], 1
mov rcx, qword [0x140106190]
lea rdx, [0x140106190]
cmp rcx, rdx
je 0x14008116b
test byte [rcx + 0x1c], 2
je 0x14008116b
cmp byte [rcx + 0x19], 5
jb 0x14008116b
mov edx, SafeArrayDestroy
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400e63d0]
mov rcx, qword [rcx + 0x10]
call fcn.14000541c
jmp 0x14008116b
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082bc4
test rax, rax
jne 0x140081144
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140082a1c
jmp 0x14008116b
lea rcx, [rax + 8]
test rbx, rbx
jne 0x140081152
mov eax, r14d
jmp 0x140081160
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140081156
mov r8d, eax
mov rdx, rbx
call fcn.140004f58
mov byte [rsp + 0x42], 1
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r14, [r13 + 0x58]
mov qword [rbp - 8], r14
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140082fe4
mov rdi, qword [rsp + 0x60]
test rax, rax
je 0x1400811ec
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140004cb0
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]
xor r14d, r14d
test eax, eax
jne 0x1400811e8
mov al, r14b
jmp 0x14008125d
mov r14, qword [rbp - 8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140004cb0
cmp dword [rsp + 0x44], 1
sete r12b
mov byte [rbp - 0x80], r12b
cmp dword [rsp + 0x48], 1
sete r13b
mov byte [rbp - 0x7f], r13b
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140082fe4
test rax, rax
jne 0x140081239
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140082e3c
jmp 0x140081252
lea r14, [rax + 8]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140004cb0
mov byte [r14 + 8], r12b
mov byte [r14 + 9], r13b
xor r14d, r14d
mov r13, qword [rbp - 0x40]
mov al, byte [rsp + 0x42]
cmp dword [rbp - 0x60], r14d
je 0x1400813be
mov dl, byte [rsp + 0x40]
cmp byte [rsp + 0x43], r14b
je 0x14008127a
test dl, dl
je 0x140081300
mov cl, byte [rsp + 0x41]
test cl, cl
jne 0x1400812fa
mov rcx, qword [0x140106190]
lea rsi, [0x140106190]
cmp rcx, rsi
je 0x1400812c7
test byte [rcx + 0x1c], 2
je 0x1400812c7
cmp byte [rcx + 0x19], 5
jb 0x1400812c7
mov edx, SafeArrayDestroy
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400e63d0]
mov rcx, qword [rcx + 0x10]
call fcn.14002444c
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, r13
call fcn.1400815c0
jmp 0x1400813c5
test dl, dl
jne 0x140081358
jmp 0x140081304
mov cl, byte [rsp + 0x41]
test cl, cl
je 0x140081358
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x14008133f
test byte [rcx + 0x1c], 2
je 0x14008133f
cmp byte [rcx + 0x19], 5
jb 0x14008133f
mov edx, SafeArrayDestroy
mov r9, rsi
lea r8, [0x1400e63d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003598
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], r14
mov r8, rsi
mov edx, 1
jmp 0x1400813b2
test al, al
je 0x14008138d
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, r13
call fcn.1400815c0
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, r13
call fcn.1400815c0
lea rsi, [0x140106190]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400813f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14008141a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140081443
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14008146c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008147d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400814a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400814b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x4c]
jmp 0x1400814ff
mov r15d, r14d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400814e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400814ff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400814ff
lea rsi, [0x140106190]
inc edi
mov dword [rsp + 0x4c], edi
jmp 0x140080ca0
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov rcx, qword [0x140106190]
cmp rcx, rsi
je 0x14008155e
test byte [rcx + 0x1c], 2
je 0x14008155e
cmp byte [rcx + 0x19], 5
jb 0x14008155e
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9d, r15d
lea r8, [0x1400e63d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
jmp 0x14008155e
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test rbx, rbx
je 0x14008156c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14008157c
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400cc650
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