Function at 0x140050580
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, r9d
mov rsi, r8
mov r14, rdx
call fcn.140050040
cmp eax, 0xf
je 0x140050807
test r14, r14
je 0x140050807
test rsi, rsi
je 0x140050807
cmp dword [rsi + 0x80], 2
jne 0x140050807
cmp ebx, 1
jne 0x140050807
lea rdx, [r14 + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14003ead0
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14003be10
nop
lea rcx, [rsp + 0x58]
call fcn.14003b0f0
lea rcx, [rsp + 0x30]
call fcn.1400547b0
mov rdx, qword [rax]
lea r8, [rdx - 0x18]
mov rcx, qword [rsp + 0x30]
lea rbx, [rcx - 0x18]
mov edi, 0xffffffff
cmp r8, rbx
je 0x1400506a4
cmp dword [rbx + 0x10], 0
jl 0x140050691
mov rax, qword [rbx]
cmp qword [r8], rax
jne 0x140050691
mov rcx, r8
call fcn.14003c400
mov r15, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140050686
mov r8, qword [rbx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rdx, rbx
mov rcx, r8
call qword [case.0x14004487d.0]
lea rcx, [r15 + 0x18]
mov qword [rsp + 0x30], rcx
jmp 0x1400506a4
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14003beb0
mov rcx, qword [rsp + 0x30]
xor r15d, r15d
cmp dword [rcx - 0x10], r15d
jl 0x1400506ce
lea rdx, [0x140326f48]
call fcn.140221480
test rax, rax
je 0x1400506ce
sub rax, qword [rsp + 0x30]
sar rax, 1
cmp eax, edi
jne 0x140050750
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140050745
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.AppInstalled
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x48], r15d
jne 0x1400507e4
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400773d0
nop
cmp qword [rax + 0x18], 8
jb 0x140050768
mov rax, qword [rax]
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x60], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400429f0
nop
mov rbx, qword [rbp - 0x60]
call fcn.14005b670
mov edx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.1400912e0
mov rbx, rax
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
je 0x1400507af
call fcn.1402384fc
nop
lea rcx, [rsp + 0x78]
call fcn.14003b0f0
test rbx, rbx
je 0x1400507e4
mov dword [rsp + 0x20], r15d
mov r9d, 0x40000
mov r8d, 0xfffffffd
mov edx, dword [r14 + 0x18]
mov rcx, rbx
call fcn.140094c90
mov rcx, rbx
call fcn.140092ad0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140050807
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret