Function at 0x1400035c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x880], rax
xor r15d, r15d
mov dword [rsp + 0x78], r8d
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x70], edx
test r8d, r8d
mov qword [rbp - 0x78], r15
test edx, edx
lea r13, str.SoftwareMicrosoftWindowsMediaSetupBlockingRefCounts_s
mov ebx, edx
lea r8, str.SoftwareMicrosoftMediaPlayerSetupBlockingRefCounts_s
mov rdi, rcx
lea r9, [0x14003f9f8]
cmove r8, r13
lea rcx, [rbp + 0x670]
mov edx, 0x105
mov r14d, r15d
call fcn.140001734
test eax, eax
js 0x140003a79
lea rax, [rbp - 0x78]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x670]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003a79
mov rcx, qword [rbp - 0x78]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x74], 0x50
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140003aa5
mov ecx, dword [rsp + 0x64]
lea eax, [rsi + 9]
mul rcx
mov dword [rbp - 0x70], r15d
cmovo rax, rsi
mov rcx, rax
call fcn.14003c460
mov qword [rdi], rax
test rax, rax
je 0x140003a6f
mov r12d, r15d
cmp dword [rsp + 0x64], r15d
jle 0x14000376f
mov ebx, r15d
mov ecx, 0x20a
call fcn.14003c460
mov rcx, qword [rdi]
mov qword [rcx + rbx*8], rax
mov rax, qword [rdi]
mov rdx, rax
cmp qword [rax + rbx*8], r15
jne 0x14000375e
test rbx, rbx
jle 0x140003748
mov rcx, qword [rdx + r15*8]
mov rax, rdx
test rcx, rcx
je 0x140003740
call fcn.14003c408
mov rax, qword [rdi]
and qword [rax + r15*8], r14
mov rax, qword [rdi]
mov rdx, rax
inc r15
cmp r15, rbx
jl 0x140003722
xor r15d, r15d
test rax, rax
je 0x14000375e
mov rcx, rax
call fcn.14003c408
mov eax, r15d
mov qword [rdi], r15
inc r12d
inc rbx
cmp r12d, dword [rsp + 0x64]
jl 0x140003700
mov ebx, dword [rsp + 0x70]
test rax, rax
je 0x140003a6f
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x74]
lea rax, [rbp + 0x250]
mov dword [rbp - 0x80], 0x208
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x1b0]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x74], 0x50
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140003aa5
mov r12d, dword [rsp + 0x78]
test ebx, ebx
lea r8, str.SoftwareMicrosoftMediaPlayerSetupBlockingRefCounts_s
lea r9, [0x14003fa00]
mov edx, 0x104
cmove r8, r13
lea rcx, [rbp + 0x460]
call fcn.140001734
test eax, eax
js 0x1400039af
lea r9, [rbp + 0x460]
lea r8, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call fcn.140003104
xor eax, eax
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x60], eax
mov ebx, eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x78], eax
jmp 0x14000382f
inc ebx
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140003829
mov ecx, ebx
sub ecx, 1
je 0x140003916
sub ecx, 1
je 0x1400038ef
cmp ecx, 1
lea rcx, [rbp - 0x60]
je 0x1400038c2
test ebx, ebx
je 0x140003875
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x6c], eax
jmp 0x140003931
inc ebx
lea rcx, [rax + 2]
mov edx, 0x2c
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14000386f
lea rcx, [rbp - 0x60]
sub ebx, 1
je 0x1400038b9
sub ebx, 1
je 0x1400038b0
cmp ebx, 1
je 0x1400038a7
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x60], eax
jmp 0x140003931
lea rdx, str._lu__lu__lu__lu
jmp 0x1400038c9
lea rdx, str._lu__lu__lu
jmp 0x1400038fa
lea rdx, str._lu__lu
jmp 0x140003921
lea rdx, str._lu._lu._lu._lu
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140003931
lea rdx, str._lu._lu._lu
lea rcx, [rbp - 0x60]
lea rax, [rsp + 0x6c]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140003931
lea rdx, str._lu._lu
lea rcx, [rbp - 0x60]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_swscanf]
mov edx, dword [rsp + 0x78]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
and qword [rsp + 0x78], 0
shl eax, 0x10
add ecx, eax
mov eax, dword [rsp + 0x6c]
shl eax, 0x10
add edx, eax
mov ebx, ecx
and rbx, 0xffffffffffff0000
movzx eax, cx
or rbx, rax
lea rcx, [rsp + 0x78]
mov eax, edx
shr rax, 0x10
shl rbx, 0x10
or rbx, rax
movzx eax, dx
mov edx, dword [rsp + 0x70]
shl rbx, 0x10
or rbx, rax
call fcn.14000348c
cmp rbx, qword [rsp + 0x78]
jb 0x1400039ab
mov rcx, qword [rdi]
lea r8, [rbp + 0x250]
mov edx, 0x104
mov rcx, qword [r15 + rcx]
call fcn.140001470
inc r14d
add r15, 8
mov ebx, dword [rsp + 0x70]
mov eax, dword [rbp - 0x70]
mov ecx, dword [rsp + 0x64]
inc eax
mov dword [rbp - 0x70], eax
cmp eax, ecx
jae 0x140003a13
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x104
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x74]
lea rcx, [rbp + 0x250]
mov dword [rsp + 0x74], 0x50
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 0x1b0]
and qword [rsp + 0x28], 0
mov edx, eax
mov rcx, qword [rbp - 0x78]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1400037cb
mov ecx, dword [rsp + 0x64]
xor r15d, r15d
cmp ecx, r14d
jle 0x140003a68
cmp qword [rdi], r15
je 0x140003a68
mov ebx, r14d
cmp r14d, ecx
jae 0x140003a53
mov rax, qword [rdi]
mov r15d, ebx
cmp qword [rax + r15*8], 0
je 0x140003a4a
mov rcx, qword [rax + r15*8]
call fcn.14003c408
mov rax, qword [rdi]
and qword [rax + r15*8], 0
mov ecx, dword [rsp + 0x64]
inc ebx
cmp ebx, ecx
jb 0x140003a28
xor r15d, r15d
test r14d, r14d
jne 0x140003a6b
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003a6f
call fcn.14003c408
mov qword [rdi], r15
test r14d, r14d
cmovg esi, r14d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x9e0]
add rsp, 0x990
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x64]
jmp 0x140003a16