Function at 0x1400108d8
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 0x140010ca3
mov edx, 0x254
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea r8, [0x140024ba4]
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, [0x140024ba4]
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 [0x14003a748]
cmp dword [rax - 8], edi
jne 0x140010c23
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 0x140010aa6
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 0x140010a8e
cmp dword [rsp + 0x5c], 1
jne 0x140010a87
mov edx, 0x2f0
jmp 0x140010a93
mov edx, 0x2f1
jmp 0x140010a93
mov edx, 0x2ef
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010ab6
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 0x140010c23
mov ecx, ebx
lea rax, [rsp + 0x70]
cmp word [rax], di
je 0x140010ae6
add rax, 2
sub rcx, 1
jne 0x140010ad7
mov rax, rcx
neg rax
sbb esi, esi
not esi
and esi, 0x80070057
test rcx, rcx
je 0x140010b03
mov rax, rbx
sub rax, rcx
jmp 0x140010b06
mov rax, rdi
test rcx, rcx
je 0x140010b69
sub rbx, rax
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rax*2]
je 0x140010b4e
lea rdx, [rax + 0x7ffffefa]
add rdx, rbx
lea rax, str._fveapi.dll
sub rax, rcx
test rdx, rdx
je 0x140010b4e
movzx r8d, word [rax + rcx]
test r8w, r8w
je 0x140010b4e
mov word [rcx], r8w
add rcx, 2
dec rdx
sub rbx, 1
jne 0x140010b2d
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], di
neg rbx
sbb esi, esi
not esi
and esi, 0x8007007a
test esi, esi
js 0x140010c23
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140010c23
lea rdx, str.FveGetSecureBootBindingState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010c1a
or dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x40]
call qword [0x140022378]
mov esi, eax
test eax, eax
je 0x140010bc6
cmp eax, 0x80070522
jne 0x140010c1a
mov edx, 0x2ff
jmp 0x140010c0f
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffffff
je 0x140010c0a
test eax, eax
je 0x140010c03
cmp eax, 1
je 0x140010bfc
cmp eax, 2
je 0x140010bf5
lea rcx, [rsp + 0x30]
cmp eax, 3
je 0x140010bee
mov edx, 0x153
jmp 0x140010c14
mov edx, 0x2f5
jmp 0x140010c14
mov edx, 0x2f4
jmp 0x140010c0f
mov edx, 0x2f3
jmp 0x140010c0f
mov edx, 0x2f2
jmp 0x140010c0f
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 [0x140022378]
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 [0x140022378]
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 [0x140022378]
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 [0x140022378]
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.14001cbc0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret