Function at 0x140012dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r8
mov r15, rdx
lea rax, [0x1400f3190]
mov r12d, 5
mov rcx, qword [0x1400f3190]
cmp rcx, rax
je 0x140012e2b
test byte [rcx + 0x1c], 1
je 0x140012e2b
cmp byte [rcx + 0x19], r12b
jb 0x140012e2b
mov edx, 0xf5
mov r9, qword [r15]
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov r14d, r13d
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov rcx, rbx
call fcn.140004db8
mov dword [rsp + 0x28], 0x2011f
lea r8, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0Media_Servers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x38]
call fcn.140016a64
mov esi, eax
lea edi, [r13 + 2]
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x140012ec0
test byte [rcx + 0x1c], dil
je 0x140012ec0
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test esi, esi
cmove edx, r12d
cmp r8d, edx
jb 0x140012ec0
mov edx, 0xf6
mov r9d, esi
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov rcx, qword [0x1400f3190]
mov r12, qword [rbp - 0x38]
test esi, esi
jne 0x14001304e
mov qword [rbp + 0x40], r13
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x140012eff
mov esi, r13d
mov r14, qword [rbp + 0x40]
mov qword [rbp - 0x20], r14
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x140012f51
test byte [rcx + 0x1c], dil
je 0x140012f51
test esi, esi
mov eax, 5
cmove edi, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edi
jb 0x140012f51
mov rax, qword [r15]
mov edx, 0xf7
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a6a4
mov rcx, qword [0x1400f3190]
test esi, esi
jne 0x14001304e
mov dword [rbp + 0x40], r13d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.UPnPDeviceID
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140012f8b
mov esi, r13d
jmp 0x140012fa1
mov eax, dword [rbp + 0x58]
dec eax
cmp eax, 1
ja 0x140013047
mov eax, r13d
mov esi, dword [rbp + 0x40]
shr esi, 1
test eax, eax
jne 0x140013047
lea edi, [rsi + 1]
mov dword [rbp + 0x40], edi
mov r8, qword [rbx]
lea ecx, [rax + 1]
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, edi
or eax, ecx
jge 0x140012fd0
mov edx, edi
mov rcx, rbx
call fcn.140004f6c
mov r8, qword [rbx]
test edi, edi
js 0x1400130df
cmp edi, dword [r8 - 0xc]
jg 0x1400130df
mov dword [r8 - 0x10], edi
mov ecx, esi
mov rax, qword [rbx]
mov word [rax + rcx*2 + 2], r13w
lea r9, [rbp + 0x40]
lea rdx, str.UPnPDeviceID
lea rcx, [rbp - 0x20]
call fcn.140016af8
test eax, eax
jne 0x1400130bb
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001301a
mov eax, r13d
jmp 0x140013030
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14001301e
test eax, eax
js 0x1400130ea
cmp eax, dword [rcx - 0xc]
jg 0x1400130ea
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r13w
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x140013083
test byte [rcx + 0x1c], 1
je 0x140013083
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x140013083
mov edx, 0xf8
mov r9, qword [rbx]
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
nop
test r14, r14
je 0x140013092
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r12, r12
je 0x1400130a0
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
cmp dword [rax - 0xc], r13d
jl 0x1400130d4
mov dword [rax - 0x10], r13d
mov rax, qword [rbx]
mov word [rax], r13w
jmp 0x140013047
mov ecx, 0x80070057
call fcn.1400051a4
int3
mov ecx, 0x80070057
call fcn.1400051a4
int3
mov ecx, 0x80070057
call fcn.1400051a4
int3