Function at 0x1400153a4
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x538]
sub rsp, 0x610
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov r14, rdx
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
lea rdx, [0x1400239a8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
mov rbx, rax
mov edi, 1
mov r8d, edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
mov r9, qword [rbx]
mov rcx, qword [rax]
sub r9, rcx
movzx r8d, word [rcx]
movzx eax, word [rcx + r9]
sub r8d, eax
jne 0x14001546b
add rcx, 2
test eax, eax
jne 0x140015455
xor r15d, r15d
test r8d, r8d
setne bl
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
test bl, bl
je 0x1400154bc
lea rdx, [0x1400239a8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_Ordinal_1284]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, 0x66
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea rdx, [0x140028d48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CCtrlView::CCtrlView]
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, 0x4b5
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400155a8
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.cabdefaultopen
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001559e
cmp dword [rsp + 0x50], edi
jne 0x14001559e
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoTerm]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
mov edx, 0xa
lea rcx, [rbp - 0x78]
call qword [sym.imp.MFC42u.dll_CDaoQueryDef::CDaoQueryDef]
nop
mov r12d, 0x7c
jmp 0x1400156e0
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
cmp eax, 0xffffffff
jne 0x1400155f4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
jmp 0x140015630
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDialog::OnCommandHelp]
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rcx, [rbp - 0x78]
call qword [sym.imp.MFC42u.dll_COleServerItem::XDataObject::SetData]
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140015aa8
mov rbx, qword [rbp - 0x70]
test rbx, rbx
jne 0x1400156f1
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax - 8]
mov rax, qword [rsp + 0x58]
sub r8d, dword [rax - 8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
test eax, eax
jne 0x1400156e0
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rax, qword [rsp + 0x40]
cmp dword [rax - 8], r15d
jne 0x1400155cf
jmp 0x14001571f
mov r8d, edi
mov edx, SafeArrayPutElement
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_Ordinal_1483]
test eax, eax
jne 0x14001570d
call qword [sym.imp.MFC42u.dll_CTreeCtrl::SetCheck]
int3
lea rdx, [rbx + 0x10]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
jmp 0x1400159fb
lea rdx, str..XML
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov rax, qword [rsp + 0x40]
cmp dword [rax - 8], r15d
je 0x140015a40
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
cmp eax, 0xffffffff
jne 0x140015765
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
jmp 0x1400157a1
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
mov r8d, eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDialog::OnCommandHelp]
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rcx, [rbp - 0x78]
call qword [sym.imp.MFC42u.dll_COleServerItem::XDataObject::SetData]
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140015aa8
mov rsi, qword [rbp - 0x70]
jmp 0x14001594f
mov rbx, rsi
mov r8d, edi
mov edx, SafeArrayPutElement
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_Ordinal_1483]
test eax, eax
je 0x140015a39
mov rsi, qword [rsi]
lea rdx, [rbx + 0x10]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, edi
mov edx, 0x80000000
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001594f
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, edi
lea rdx, [rbp + 0xe0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400159ef
cmp word [rbp + 0xe0], 0x3c
jne 0x1400158bb
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, SafeArrayLock
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400159ef
lea rdx, str.MachineID
lea rcx, [rbp + 0xe0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400159e7
mov r9d, edi
xor r8d, r8d
lea edx, [r8 - 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rsp + 0x48], 0x12
je 0x140015858
jmp 0x140015946
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, edi
lea rdx, [rbp + 0x2f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400159ef
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, SafeArrayLock
lea rdx, [rbp + 0x2f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400159ef
mov word [rbp + 0x314], r15w
lea rdx, str.MachineID
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400159e7
mov r9d, edi
xor r8d, r8d
lea edx, [r8 - 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rsp + 0x48], 0x12
je 0x1400158e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x1400157c7
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax - 8]
mov rax, qword [rsp + 0x58]
sub r8d, dword [rax - 8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
test eax, eax
jne 0x140015731
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
jmp 0x140015731
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400159fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r15d
lea rcx, [rbp - 0x78]
call qword [sym.imp.MFC42u.dll_COleControl::XOleInPlaceActiveObject::AddRef]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov eax, edi
jmp 0x140015a7c
call qword [sym.imp.MFC42u.dll_CTreeCtrl::SetCheck]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.MFC42u.dll_COleControl::XOleInPlaceActiveObject::AddRef]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
xor eax, eax
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.14001c820
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret