Function at 0x140051a48
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x48], 0
xor edi, edi
mov rcx, qword [str.___t_]
lea r15, str.___t_
lea r13, [0x140003de0]
cmp rcx, r15
je 0x140051a93
test byte [rcx + 0x1c], 4
je 0x140051a93
cmp byte [rcx + 0x19], 5
jb 0x140051a93
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x25]
mov r8, r13
call fcn.14000e618
lea rax, [rbp + 0x40]
lea r9, [0x1400022d0]
lea rdx, [0x140003c90]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x48]
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 0x140051b08
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051ca0
test byte [rcx + 0x1c], 4
je 0x140051ca0
cmp byte [rcx + 0x19], 2
jb 0x140051ca0
mov edx, 0x26
jmp 0x140051c1b
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
lea rdx, [0x140003cd0]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140051b62
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051ca0
test byte [rcx + 0x1c], 4
je 0x140051ca0
cmp byte [rcx + 0x19], 2
jb 0x140051ca0
mov edx, 0x27
jmp 0x140051c1b
cmp dword [rbp + 0x38], 3
jne 0x140051c72
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140051c72
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov ebx, 8
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140051bc6
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051ca0
test byte [rcx + 0x1c], 4
je 0x140051ca0
cmp byte [rcx + 0x19], 2
jb 0x140051ca0
lea edx, [rbx + 0x21]
jmp 0x140051c59
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x140003cd0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140051c2c
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051ca0
test byte [rcx + 0x1c], 4
je 0x140051ca0
cmp byte [rcx + 0x19], 2
jb 0x140051ca0
mov edx, 0x2a
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
jmp 0x140051ca0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x140051c67
mov ebx, 0x53a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051ca0
test byte [rcx + 0x1c], 4
je 0x140051ca0
cmp byte [rcx + 0x19], 2
jb 0x140051ca0
lea edx, [rax + 0x2b]
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.14000e618
jmp 0x140051ca0
mov qword [0x14009a268], rdi
xor edi, edi
jmp 0x140051ca0
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140051c9b
test byte [rcx + 0x1c], 4
je 0x140051c9b
cmp byte [rcx + 0x19], 2
jb 0x140051c9b
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r8, r13
call fcn.14000e618
mov ebx, 0x3f1
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140051caf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140051d05
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 0x140051d05
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140051d05
test byte [rax + 0x1c], 4
je 0x140051d05
cmp byte [rax + 0x19], 2
jb 0x140051d05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x2c
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
mov eax, ebx
add rsp, 0x50
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret