Function at 0x140013098
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 rsi, r8
mov r15, rdx
lea rax, [0x1400d0018]
mov r12d, 5
mov rcx, qword [0x1400d0018]
cmp rcx, rax
je 0x140013103
test byte [rcx + 0x1c], 1
je 0x140013103
cmp byte [rcx + 0x19], r12b
jb 0x140013103
mov edx, 0xf2
mov r9, qword [r15]
lea r8, [0x1400b1440]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
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, rsi
call fcn.140004d10
mov dword [rsp + 0x28], 0x2011f
lea r8, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0Media_Servers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x38]
call fcn.140016f68
mov edi, eax
lea ebx, [r13 + 2]
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140013197
test byte [rcx + 0x1c], bl
je 0x140013197
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
test edi, edi
cmove edx, r12d
cmp r8d, edx
jb 0x140013197
mov edx, 0xf3
mov r9d, edi
lea r8, [0x1400b1440]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400d0018]
mov r12, qword [rbp - 0x38]
test edi, edi
jne 0x140013330
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]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400131dc
mov edi, r13d
mov r14, qword [rbp + 0x40]
mov qword [rbp - 0x20], r14
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x14001322d
test byte [rcx + 0x1c], bl
je 0x14001322d
test edi, edi
mov eax, 5
cmove ebx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, ebx
jb 0x14001322d
mov rax, qword [r15]
mov edx, 0xf4
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x1400b1440]
mov rcx, qword [rcx + 0x10]
call fcn.14000a990
mov rcx, qword [0x1400d0018]
test edi, edi
jne 0x140013330
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]
nop dword [rax + rax]
test eax, eax
je 0x14001326d
mov edi, r13d
jmp 0x140013283
mov eax, dword [rbp + 0x58]
dec eax
cmp eax, 1
ja 0x140013329
mov eax, r13d
mov edi, dword [rbp + 0x40]
shr edi, 1
test eax, eax
jne 0x140013329
lea ebx, [rdi + 1]
mov dword [rbp + 0x40], ebx
mov r8, qword [rsi]
lea ecx, [rax + 1]
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400132b2
mov edx, ebx
mov rcx, rsi
call fcn.140004ec8
mov r8, qword [rsi]
test ebx, ebx
js 0x1400133c0
cmp ebx, dword [r8 - 0xc]
jg 0x1400133c0
mov dword [r8 - 0x10], ebx
mov ecx, edi
mov rax, qword [rsi]
mov word [rax + rcx*2 + 2], r13w
lea r9, [rbp + 0x40]
lea rdx, str.UPnPDeviceID
lea rcx, [rbp - 0x20]
call fcn.140017038
mov rcx, qword [rsi]
test eax, eax
jne 0x1400133aa
test rcx, rcx
jne 0x1400132fc
mov eax, r13d
jmp 0x140013312
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140013300
test eax, eax
js 0x1400133c0
cmp eax, dword [rcx - 0xc]
jg 0x1400133c0
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r13w
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140013365
test byte [rcx + 0x1c], 1
je 0x140013365
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x140013365
mov edx, 0xf5
mov r9, qword [rsi]
lea r8, [0x1400b1440]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
nop
test r14, r14
je 0x14001337a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
test r12, r12
je 0x14001338e
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [rcx - 0xc], r13d
jl 0x1400133c0
mov dword [rcx - 0x10], r13d
mov rax, qword [rsi]
mov word [rax], r13w
jmp 0x140013329
mov ecx, 0x80070057
call fcn.140005068
int3