Function at 0x1400792e0
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 [0x1400f6388]
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, [0x1400f3190]
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 0x140079bc8
mov eax, r13d
mov rdi, qword [rbp - 0x50]
mov qword [rbp - 0x30], rdi
test eax, eax
jne 0x140079bc8
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 0x140079bb5
test eax, eax
jne 0x140079b75
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rsp + 0x50]
call fcn.140004be4
nop
lea rcx, [rbp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140079400
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140004638
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 0x140079b70
mov rsi, qword [rsp + 0x70]
mov qword [rbp - 8], rsi
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.SharedLibraryPath
lea rcx, [rbp - 8]
call fcn.1400a9468
test eax, eax
je 0x14007951e
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400794c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400794d4
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 0x1400794fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14007950a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rsi, [0x1400f3190]
inc r12d
mov dword [rsp + 0x4c], r12d
jmp 0x140079351
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, str.DisplayName
lea rcx, [rbp - 8]
call fcn.1400a9468
test eax, eax
je 0x140079587
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14007949c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
jmp 0x14007949c
call fcn.140079e00
test al, al
je 0x14007961c
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 0x14007965e
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 0x140079617
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x14007965e
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 0x14007965e
cmp dword [rbp - 0x6c], 4
jne 0x14007965e
mov eax, r13d
test eax, eax
je 0x140079663
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 0x1400796a5
cmp dword [rbp - 0x64], 4
jne 0x1400796a5
mov eax, r13d
test eax, eax
je 0x1400796aa
mov dword [rsp + 0x48], r13d
mov byte [rsp + 0x43], r13b
mov byte [rsp + 0x40], 1
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x58], rsi
lea rdi, [r15 + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14007b224
test rax, rax
je 0x1400796fa
lea rdx, [rax + 8]
lea rcx, [rbp - 0x58]
call fcn.140004d2c
mov rsi, qword [rbp - 0x58]
cmp dword [rsi - 0x10], r13d
je 0x140079738
mov byte [rsp + 0x43], 1
lea rdx, [0x1400cc828]
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.14007b224
test rax, rax
je 0x140079738
mov rdx, rax
mov rcx, rdi
call fcn.14007b380
mov qword [rbp - 0x10], r13
lea rdx, [0x1400cc828]
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 0x1400797d6
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 0x1400797d6
mov r14b, 1
mov byte [rsp + 0x41], r14b
mov rcx, qword [0x1400f3190]
lea rdx, [0x1400f3190]
cmp rcx, rdx
je 0x140079824
test byte [rcx + 0x1c], 2
je 0x140079824
cmp byte [rcx + 0x19], 5
jb 0x140079824
mov edx, SafeArrayDestroy
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400d7800]
mov rcx, qword [rcx + 0x10]
call fcn.14000562c
test r14b, r14b
jne 0x140079824
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14007b224
test rax, rax
jne 0x1400797fd
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14007b078
jmp 0x140079824
lea rcx, [rax + 8]
test rbx, rbx
jne 0x14007980b
mov eax, r13d
jmp 0x140079819
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14007980f
mov r8d, eax
mov rdx, rbx
call fcn.140005040
mov byte [rsp + 0x42], 1
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r13, [r15 + 0x58]
lea rdx, [rbp + 0x30]
mov rcx, r13
call fcn.14007b638
mov rdi, qword [rsp + 0x60]
test rax, rax
je 0x14007989d
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140004d2c
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 0x14007989d
xor r13d, r13d
mov al, r13b
jmp 0x140079913
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140004d2c
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.14007b638
test rax, rax
jne 0x1400798ea
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rcx, r13
call fcn.14007b48c
jmp 0x140079903
lea r14, [rax + 8]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140004d2c
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 0x140079a1b
mov dl, byte [rsp + 0x40]
cmp byte [rsp + 0x43], r13b
je 0x140079930
test dl, dl
je 0x140079b11
mov cl, byte [rsp + 0x41]
test cl, cl
jne 0x1400799ad
mov rcx, qword [0x1400f3190]
lea rsi, [0x1400f3190]
cmp rcx, rsi
je 0x14007997d
test byte [rcx + 0x1c], 2
je 0x14007997d
cmp byte [rcx + 0x19], 5
jb 0x14007997d
mov edx, SafeArrayDestroy
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1400d7800]
mov rcx, qword [rcx + 0x10]
call fcn.14001f6ec
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.140079c38
jmp 0x140079a22
test dl, dl
je 0x140079b15
test al, al
je 0x1400799ea
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.140079c38
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.140079c38
lea rsi, [0x1400f3190]
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 0x140079a4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
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 0x140079a73
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
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 0x140079a9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
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 0x140079ac1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140079ad2
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 0x140079af9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140079511
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140079511
mov cl, byte [rsp + 0x41]
test cl, cl
je 0x1400799b5
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x140079b54
test byte [rcx + 0x1c], 2
je 0x140079b54
cmp byte [rcx + 0x19], 5
jb 0x140079b54
mov edx, SafeArrayDestroy
mov r9, rsi
lea r8, [0x1400d7800]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], r13
mov r8, rsi
mov edx, 1
jmp 0x140079a0f
jmp 0x140079ad2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x140079bd6
test byte [rcx + 0x1c], 2
je 0x140079bd6
cmp byte [rcx + 0x19], 5
jb 0x140079bd6
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9d, ebx
lea r8, [0x1400d7800]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
jmp 0x140079bd6
test rdi, rdi
je 0x140079bc3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r13d
jmp 0x140079be4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x140079be4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140079bf4
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.1400c13a0
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