Function at 0x140054754
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
and qword [rax + 0x20], 0
xor edi, edi
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
lea r14, [0x140008f28]
cmp rcx, r12
je 0x14005479d
test byte [rcx + 0x1c], 4
je 0x14005479d
cmp byte [rcx + 0x19], 5
jb 0x14005479d
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x25]
mov r8, r14
call fcn.14000ffa8
lea rax, [rsp + 0x90]
lea r9, [0x140009d60]
lea rdx, [0x14000aa90]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20019
and dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x14005481a
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549d3
test byte [rcx + 0x1c], 4
je 0x1400549d3
cmp byte [rcx + 0x19], 2
jb 0x1400549d3
mov edx, 0x26
jmp 0x14005494e
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
lea rdx, [0x14000aad0]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140054880
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549d3
test byte [rcx + 0x1c], 4
je 0x1400549d3
cmp byte [rcx + 0x19], 2
jb 0x1400549d3
mov edx, 0x27
jmp 0x14005494e
cmp dword [rsp + 0x88], 3
jne 0x1400549a5
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400549a5
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov ebx, 8
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1400548ed
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549d3
test byte [rcx + 0x1c], 4
je 0x1400549d3
cmp byte [rcx + 0x19], 2
jb 0x1400549d3
lea edx, [rbx + 0x21]
jmp 0x14005498c
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000aad0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14005495f
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549d3
test byte [rcx + 0x1c], 4
je 0x1400549d3
cmp byte [rcx + 0x19], 2
jb 0x1400549d3
mov edx, 0x2a
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
jmp 0x1400549d3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x14005499a
mov ebx, 0x53a
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549d3
test byte [rcx + 0x1c], 4
je 0x1400549d3
cmp byte [rcx + 0x19], 2
jb 0x1400549d3
lea edx, [rax + 0x2b]
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.14000ffa8
jmp 0x1400549d3
mov qword [0x1400a3ee0], rdi
xor edi, edi
jmp 0x1400549d3
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x1400549ce
test byte [rcx + 0x1c], 4
je 0x1400549ce
cmp byte [rcx + 0x19], 2
jb 0x1400549ce
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r8, r14
call fcn.14000ffa8
mov ebx, 0x3f1
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400549e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140054a3c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x140054a3c
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x140054a3c
test byte [rax + 0x1c], 4
je 0x140054a3c
cmp byte [rax + 0x19], 2
jb 0x140054a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x2c
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
mov eax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret