Function at 0x140014370
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 rdi, r8
mov r15, rdx
lea rax, [0x14014dd40]
mov r12d, 5
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400143db
test byte [rcx + 0x1c], 1
je 0x1400143db
cmp byte [rcx + 0x19], r12b
jb 0x1400143db
mov edx, pe_nt_image_headers64
mov r9, qword [r15]
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
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, rdi
call fcn.140004f24
mov dword [rsp + 0x28], 0x2011f
lea r8, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0Media_Servers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x38]
call fcn.14001cc38
mov esi, eax
lea ebx, [r13 + 2]
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x14001446f
test byte [rcx + 0x1c], bl
je 0x14001446f
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
test esi, esi
cmove edx, r12d
cmp r8d, edx
jl 0x14001446f
mov edx, 0x101
mov r9d, esi
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
mov r12, qword [rbp - 0x38]
test esi, esi
jne 0x140014628
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 0x1400144ae
mov esi, r13d
mov r14, qword [rbp + 0x40]
mov qword [rbp - 0x20], r14
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400144ff
test byte [rcx + 0x1c], bl
je 0x1400144ff
test esi, esi
mov eax, 5
cmove ebx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, ebx
jl 0x1400144ff
mov rax, qword [r15]
mov edx, 0x102
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.14000ab30
mov rcx, qword [0x14014dd40]
test esi, esi
jne 0x140014628
mov dword [rbp + 0x40], r13d
mov ebx, 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
jne 0x140014621
mov eax, dword [rbp + 0x58]
dec eax
cmp eax, 1
ja 0x140014621
mov ebx, dword [rbp + 0x40]
shr ebx, 1
mov eax, r13d
test eax, eax
jne 0x140014621
inc ebx
mov dword [rbp + 0x40], ebx
mov rax, qword [rdi]
lea ecx, [rsi + 1]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14001457a
mov edx, ebx
mov rcx, rdi
call fcn.140005158
mov r8, qword [rdi]
test ebx, ebx
js 0x140014616
cmp ebx, dword [r8 - 0xc]
jg 0x140014616
mov dword [r8 - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rdi]
mov word [rax + rcx*2], r13w
lea r9, [rbp + 0x40]
lea rdx, str.UPnPDeviceID
lea rcx, [rbp - 0x20]
call fcn.14001ccd0
test eax, eax
jne 0x1400145f5
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400145c3
mov eax, r13d
jmp 0x1400145d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400145c7
test eax, eax
js 0x1400145ea
cmp eax, dword [rcx - 0xc]
jg 0x1400145ea
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r13w
jmp 0x140014621
mov ecx, 0x80070057
call fcn.140005300
int3
mov rax, qword [rdi]
cmp dword [rax - 0xc], r13d
jl 0x14001460b
mov dword [rax - 0x10], r13d
mov rax, qword [rdi]
mov word [rax], r13w
jmp 0x140014621
mov ecx, 0x80070057
call fcn.140005300
int3
mov ecx, 0x80070057
call fcn.140005300
int3
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x14001465d
test byte [rcx + 0x1c], 1
je 0x14001465d
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x14001465d
mov edx, 0x103
mov r9, qword [rdi]
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
nop
test r14, r14
je 0x14001466c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r12, r12
je 0x14001467a
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