Function at 0x1400107b0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r15, rdx
mov r14, rcx
xor edi, edi
mov esi, edi
mov dword [rsp + 0x58], 4
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
test r14, r14
je 0x140010b76
mov edx, 0x254
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea r8, [0x140024b14]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CComboBoxEx::DeleteItem]
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, 0x153
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov edx, 0x255
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea r8, [0x140024b14]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CComboBoxEx::DeleteItem]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov edx, 0x153
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rax, qword [0x14003a768]
cmp dword [rax - 8], edi
jne 0x140010af6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSecureBootState
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001097e
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UEFISecureBootEnabled
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea rcx, [rsp + 0x38]
test esi, esi
jne 0x140010966
cmp dword [rsp + 0x5c], 1
jne 0x14001095f
mov edx, 0x2f0
jmp 0x14001096b
mov edx, 0x2f1
jmp 0x14001096b
mov edx, 0x2ef
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001098e
mov edx, 0x2ef
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140010af6
mov edx, ebx
lea rax, [rsp + 0x70]
cmp word [rax], di
je 0x1400109be
add rax, 2
sub rdx, 1
jne 0x1400109af
mov rax, rdx
neg rax
sbb esi, esi
not esi
and esi, 0x80070057
test rdx, rdx
je 0x1400109db
mov rcx, rbx
sub rcx, rdx
jmp 0x1400109de
mov rcx, rdi
test esi, esi
js 0x140010af6
sub rbx, rcx
lea rax, [rsp + 0x70]
lea rax, [rax + rcx*2]
mov esi, edi
je 0x140010a30
lea rdx, [rcx + 0x7ffffefa]
add rdx, rbx
lea rcx, str._fveapi.dll
sub rcx, rax
test rdx, rdx
je 0x140010a2b
movzx r8d, word [rcx + rax]
test r8w, r8w
je 0x140010a2b
mov word [rax], r8w
add rax, 2
dec rdx
sub rbx, 1
jne 0x140010a0a
test rbx, rbx
jne 0x140010a39
sub rax, 2
mov esi, 0x8007007a
mov word [rax], di
test esi, esi
js 0x140010af6
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140010af6
lea rdx, str.FveGetSecureBootBindingState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010aed
or dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x40]
call qword [0x140022358]
mov esi, eax
test eax, eax
je 0x140010a99
cmp eax, 0x80070522
jne 0x140010aed
mov edx, 0x2ff
jmp 0x140010ae2
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffffff
je 0x140010add
test eax, eax
je 0x140010ad6
cmp eax, 1
je 0x140010acf
cmp eax, 2
je 0x140010ac8
lea rcx, [rsp + 0x30]
cmp eax, 3
je 0x140010ac1
mov edx, 0x153
jmp 0x140010ae7
mov edx, 0x2f5
jmp 0x140010ae7
mov edx, 0x2f4
jmp 0x140010ae2
mov edx, 0x2f3
jmp 0x140010ae2
mov edx, 0x2f2
jmp 0x140010ae2
mov edx, 0x153
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [r14]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, r14
mov rax, qword [rax + 0x60]
call qword [0x140022358]
mov rax, qword [r14]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [r15 + 0x38]
mov rcx, r14
mov rax, qword [rax + 0x60]
call qword [0x140022358]
mov rax, qword [r14]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rdx, r15
mov rcx, r14
mov rax, qword [rax + 0x60]
call qword [0x140022358]
mov rax, qword [r14]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [r15 + 0x38]
mov rcx, r14
mov rax, qword [rax + 0x60]
call qword [0x140022358]
mov edi, esi
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001c820
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret