Function at 0x140015420
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov qword [rbp + 8], 0xfffffffffffffffe
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rbp + reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef], rax
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x48], esi
mov r12d, esi
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea r13d, [rsi + 1]
mov dword [rbp - 0x80], r13d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400154dd
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14001550e
cmp eax, 0x7a
je 0x14001550e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, esi
mov rcx, qword [rbp + reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
xor rcx, rsp
call fcn.140019330
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
mov qword [rbp], rax
mov rcx, qword [rsp + 0x58]
test rax, rax
jne 0x140015534
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [rdi + 0xe]
jmp 0x1400154dd
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140015573
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1400154dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [rbp - 8]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1400155a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400154dd
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x14001565c
lea rdx, str.Everyone
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CPtrList::FreeNode
mov dword [rbp - 0x30], 2
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
or rbx, 0xffffffffffffffff
mov r8, rbx
mov r15d, CMapPtrToWord::Lookup
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
jne 0x14001564e
mov qword [rbp - 0x7c], rsi
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea edx, [r15 - 6]
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbp - 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp - 0x7c], eax
mov dword [rbp - 0x78], r13d
lea rax, [0x140023740]
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea edx, [r15 - 7]
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1400154df
lea r8, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1400158d4
or rbx, 0xffffffffffffffff
mov eax, 0xff
mov r15d, CMapPtrToWord::Lookup
lea rdi, [0x140023784]
mov r13, qword [rsp + 0x68]
cmp byte [r13], sil
jne 0x140015787
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x4c], eax
lea rdx, [r13 + 8]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea rcx, [rsp + 0x40]
test eax, eax
je 0x1400156f5
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x210]
lea rdx, str._s_s
call sub.MFC42u.dll_CPtrList::FreeNode
jmp 0x140015701
lea rdx, str.___Unknown_Account___
call sub.MFC42u.dll_CPtrList::FreeNode
mov dword [rbp - 0x30], 2
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
jne 0x1400158ad
mov qword [rbp - 0x7c], rsi
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, 0x104d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbp - 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp - 0x7c], eax
mov dword [rbp - 0x78], 1
test byte [r13 + 4], 1
lea rax, [0x140023740]
cmovbe rax, rdi
mov qword [rbp - 0x68], rax
jmp 0x14001586e
cmp byte [r13], 1
jne 0x140015886
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x4c], eax
lea rdx, [r13 + 8]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea rcx, [rsp + 0x40]
test eax, eax
je 0x1400157f1
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x210]
lea rdx, str._s_s
call sub.MFC42u.dll_CPtrList::FreeNode
jmp 0x1400157fd
lea rdx, str.___Unknown_Account___
call sub.MFC42u.dll_CPtrList::FreeNode
mov dword [rbp - 0x30], 2
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
jne 0x1400158ad
mov qword [rbp - 0x7c], rsi
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, 0x104d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbp - 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp - 0x7c], eax
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x68], rdi
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, 0x104c
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400158ad
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, str.___Unknown_ACE___
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call sub.MFC42u.dll_AFX_MSGMAPconstCTabCtrl::messageMap
inc r12d
lea r8, [rsp + 0x68]
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
mov eax, 0xff
jne 0x140015687
mov rdi, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001564e