Function at 0x140086fa8
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 [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rbp - 0x58], edx
mov r13, rcx
mov qword [rbp - 0x50], 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 - 0x48], r14
mov edi, r14d
mov dword [rsp + 0x44], r14d
or r12, 0xffffffffffffffff
mov rbx, r14
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x38], r14
lea rax, [rbp - 0x38]
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 0x140087859
mov eax, r14d
mov rbx, qword [rbp - 0x38]
mov qword [rbp - 0x30], rbx
test eax, eax
jne 0x140087859
mov dword [rbp - 0x60], pe_nt_image_headers64
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x30]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14008786a
test eax, eax
jne 0x14008780f
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x50]
call fcn.140004d1c
nop
lea rcx, [rbp + 0x30]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400870c3
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400046e8
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x68], r14
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]
test eax, eax
jne 0x1400877b7
mov rsi, qword [rsp + 0x68]
mov qword [rbp], rsi
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp]
call fcn.1400bdba4
test eax, eax
je 0x1400871f4
mov r15d, r14d
mov rsi, qword [rsp + 0x70]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x140087199
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400871aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rsp + 0x50]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x1400871dc
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140087800
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140087800
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, str.DisplayName
lea rcx, [rbp]
call fcn.1400bdba4
test eax, eax
je 0x140087270
mov r15d, r14d
mov rsi, qword [rsp + 0x58]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x140087167
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x140087167
call fcn.140087ac0
test al, al
je 0x140087305
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x40]
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 0x140087347
mov rbx, qword [rbp - 0x40]
mov dword [rsp + 0x60], r14d
mov dword [rbp - 0x5c], 4
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor r8d, r8d
lea rdx, str.AllowRMESharingOnDomainForTest
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x60], 1
sete dil
test rbx, rbx
je 0x140087300
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140087347
mov dword [rbp - 0x64], 4
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.RemoteSharingEnabled
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140087347
cmp dword [rbp - 0x70], 4
jne 0x140087347
mov eax, r14d
test eax, eax
je 0x14008734c
mov dword [rsp + 0x48], r14d
mov dword [rbp - 0x68], 4
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
lea rdx, str.AlwaysAllowMachineToSleep
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008738e
cmp dword [rbp - 0x6c], 4
jne 0x14008738e
mov eax, r14d
test eax, eax
je 0x140087393
mov dword [rsp + 0x4c], r14d
mov byte [rsp + 0x42], r14b
mov byte [rsp + 0x40], 1
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
lea rsi, [rax + 0x18]
mov qword [rbp - 0x78], rsi
lea rdi, [r13 + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140088fe8
test rax, rax
je 0x1400873e8
lea rdx, [rax + 8]
lea rcx, [rbp - 0x78]
call fcn.140004e7c
mov rsi, qword [rbp - 0x78]
cmp dword [rsi - 0x10], r14d
je 0x140087426
mov byte [rsp + 0x42], 1
lea rdx, [0x14011a1b8]
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.140088fe8
test rax, rax
je 0x140087426
mov rdx, rax
mov rcx, rdi
call fcn.1400890ec
mov qword [rbp - 0x18], r14
lea rdx, [0x14011a1b8]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete r12b
mov byte [rsp + 0x41], r12b
test r12b, r12b
jne 0x14008750f
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x18]
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x1400874c6
mov byte [rsp + 0x41], 1
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x14008750f
test byte [rcx + 0x1c], 2
je 0x14008750f
cmp byte [rcx + 0x19], 5
jb 0x14008750f
mov edx, SafeArrayGetDim
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140125ba0]
mov rcx, qword [rcx + 0x10]
call fcn.1400056b0
jmp 0x14008750f
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140088fe8
test rax, rax
jne 0x1400874e8
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140088e40
jmp 0x14008750f
lea rcx, [rax + 8]
test rbx, rbx
jne 0x1400874f6
mov eax, r14d
jmp 0x140087504
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400874fa
mov r8d, eax
mov rdx, rbx
call fcn.1400051bc
mov byte [rsp + 0x43], 1
mov rax, qword [0x14014e920]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rdi
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r14, [r13 + 0x58]
mov qword [rbp - 0x10], r14
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.1400893b0
mov rdi, qword [rsp + 0x58]
test rax, rax
je 0x140087595
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140004e7c
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 0x140087591
mov al, r14b
jmp 0x140087606
mov r14, qword [rbp - 0x10]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140004e7c
cmp dword [rsp + 0x48], 1
sete r12b
mov byte [rbp - 0x80], r12b
cmp dword [rsp + 0x4c], 1
sete r13b
mov byte [rbp - 0x7f], r13b
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.1400893b0
test rax, rax
jne 0x1400875e2
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140089208
jmp 0x1400875fb
lea r14, [rax + 8]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140004e7c
mov byte [r14 + 8], r12b
mov byte [r14 + 9], r13b
xor r14d, r14d
mov r13, qword [rbp - 0x50]
mov al, byte [rsp + 0x43]
cmp dword [rbp - 0x58], r14d
je 0x140087748
mov dl, byte [rsp + 0x40]
cmp byte [rsp + 0x42], r14b
je 0x14008761f
test dl, dl
je 0x140087689
mov cl, byte [rsp + 0x41]
test cl, cl
jne 0x140087683
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x14008766c
test byte [rcx + 0x1c], 2
je 0x14008766c
cmp byte [rcx + 0x19], 5
jb 0x14008766c
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140125ba0]
mov rcx, qword [rcx + 0x10]
call fcn.140025b48
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 1
sete al
xor edx, edx
jmp 0x14008772b
test dl, dl
jne 0x1400876e1
jmp 0x14008768d
mov cl, byte [rsp + 0x41]
test cl, cl
je 0x1400876e1
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400876c8
test byte [rcx + 0x1c], 2
je 0x1400876c8
cmp byte [rcx + 0x19], 5
jb 0x1400876c8
mov edx, reloc.Cabinet.dll_FCIDestroy
mov r9, rsi
lea r8, [0x140125ba0]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], r14
mov r8, rsi
mov edx, 1
jmp 0x14008773b
test al, al
je 0x140087716
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 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.1400878cc
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 1
sete al
mov edx, 3
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
lea r9, [rbp + 0x30]
mov rcx, r13
call fcn.1400878cc
nop
mov rsi, qword [rsp + 0x78]
or r12, 0xffffffffffffffff
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14008777e
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x78]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x140087236
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x140087236
mov r15d, r14d
mov rsi, qword [rsp + 0x50]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x1400877ef
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov edi, dword [rsp + 0x44]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140087804
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140087804
mov edi, dword [rsp + 0x44]
inc edi
mov dword [rsp + 0x44], edi
jmp 0x140087015
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x14008786a
test byte [rcx + 0x1c], 2
je 0x14008786a
cmp byte [rcx + 0x19], 5
jb 0x14008786a
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9d, r15d
lea r8, [0x140125ba0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x14008786a
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test rbx, rbx
je 0x140087878
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140087888
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.140106ed0
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