Function at 0x140014974
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x90
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, r9
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rbp - 0x1d], r13d
mov r15d, r13d
mov qword [rbp - 9], r13
mov esi, r13d
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp - 0x21], eax
test eax, eax
je 0x140014a14
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
jmp 0x140014d6b
mov dword [rbp - 0x21], r13d
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x1d]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov edi, 1
test eax, eax
je 0x140014a54
cmp eax, 0x7a
je 0x140014a54
cmp eax, 2
je 0x140014a5d
jmp 0x140014bf2
cmp eax, 2
jne 0x140014bde
mov ecx, 0x28
call fcn.140017718
mov qword [rbp + 7], rax
test rax, rax
je 0x140014a7d
mov rcx, rax
call fcn.1400158e8
mov rsi, rax
jmp 0x140014a80
mov rsi, r13
test rsi, rsi
jne 0x140014ab1
lea rdx, str.new_CSecurityDescriptor_failed.
lea rcx, [rbp - 1]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea edx, [rsi + 8]
lea rcx, [rbp - 1]
call fcn.140017068
nop
lea rcx, [rbp - 1]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x140014bef
xor edx, edx
mov rcx, rsi
call fcn.140016358
mov ebx, eax
mov rcx, rsi
test eax, eax
jns 0x140014af4
call fcn.140015908
mov rcx, rsi
call fcn.140017758
lea rdx, str.CSecurityDescriptor::Initialize_failed.
lea rcx, [rbp + 7]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov edx, ebx
lea rcx, [rbp + 7]
call fcn.140017068
nop
lea rcx, [rbp + 7]
jmp 0x140014aa7
mov r8d, edi
lea rdx, str.System
call fcn.140015b78
lea rdx, str.DefaultLaunchPermission
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140014b2b
lea rdx, str.LaunchPermission
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140014b4f
mov r8d, edi
lea rdx, str.Administrators
mov rcx, rsi
call fcn.140015b78
mov r8d, edi
lea rdx, str.Interactive
mov rcx, rsi
call fcn.140015b78
lea rdx, str.DefaultAccessPermission
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140014b77
lea rdx, str.AccessPermission
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140014b8f
lea rcx, [rbp - 9]
call fcn.140015cb8
mov r8d, edi
mov rdx, qword [rbp - 9]
mov rcx, rsi
call fcn.140015b10
mov rdi, qword [rsi]
mov ecx, 0x58
call fcn.140017718
mov rbx, rax
mov qword [rbp + 7], rax
test rax, rax
je 0x140014c45
lea rax, vtable.CObjSecurity.0
mov qword [rbx], rax
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x28], r13
mov qword [rbx + 0x30], r13
xorps xmm0, xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
jmp 0x140014c48
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140014c03
mov ebx, r13d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140014d6b
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1d]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140014b92
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140014a0d
mov rbx, r13
test rbx, rbx
je 0x140014d29
cmp qword [0x14002fcd0], r13
je 0x140014d14
mov qword [rbp - 0x11], r13
mov rax, qword [rbx]
lea r8, [rbp - 0x11]
lea rdx, [0x140023660]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14001925e.0]
test eax, eax
jne 0x140014d14
mov rax, qword [rbx]
mov r10, qword [rax + 0x58]
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, qword [rbp - 0x19]
mov rdx, rdi
mov rcx, rbx
mov rax, r10
call qword [case.0x14001925e.0]
call sub.MFC42u.dll_Ordinal_1471
mov rcx, rax
test rax, rax
je 0x140014ce0
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
call qword [case.0x14001925e.0]
jmp 0x140014ce3
mov rax, r13
test rax, rax
mov rcx, r13
je 0x140014cef
mov rcx, qword [rax + 0x40]
mov rdx, qword [rbp - 0x11]
mov rax, qword [0x14002fcd0]
call qword [case.0x14001925e.0]
mov r15d, eax
mov rcx, qword [rbp - 0x11]
mov r8, qword [rcx]
mov rax, qword [r8 + 0x10]
call qword [case.0x14001925e.0]
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [r8 + 0x50]
call qword [case.0x14001925e.0]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
test rsi, rsi
je 0x140014d59
cmp qword [rsi], r13
je 0x140014d49
mov qword [rsi], r13
mov rcx, rsi
call fcn.140015908
mov rcx, rsi
call fcn.140017758
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140014d68
call qword [sym.imp.msvcrt.dll_free]
mov eax, r15d
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret