Function at 0x140010fa0
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 [0x140035898]
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 0x14001136b
mov edx, 0x254
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea r8, [0x140024bc4]
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, [0x140024bc4]
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 [0x14003a778]
cmp dword [rax - 8], edi
jne 0x1400112eb
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 0x14001116e
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 0x140011156
cmp dword [rsp + 0x5c], 1
jne 0x14001114f
mov edx, 0x2f0
jmp 0x14001115b
mov edx, 0x2f1
jmp 0x14001115b
mov edx, 0x2ef
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001117e
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 0x1400112eb
mov ecx, ebx
lea rax, [rsp + 0x70]
cmp word [rax], di
je 0x1400111ae
add rax, 2
sub rcx, 1
jne 0x14001119f
mov rax, rcx
neg rax
sbb esi, esi
not esi
and esi, 0x80070057
test rcx, rcx
je 0x1400111cb
mov rax, rbx
sub rax, rcx
jmp 0x1400111ce
mov rax, rdi
test rcx, rcx
je 0x140011231
sub rbx, rax
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rax*2]
je 0x140011216
lea rdx, [rax + 0x7ffffefa]
add rdx, rbx
lea rax, str._fveapi.dll
sub rax, rcx
test rdx, rdx
je 0x140011216
movzx r8d, word [rax + rcx]
test r8w, r8w
je 0x140011216
mov word [rcx], r8w
add rcx, 2
dec rdx
sub rbx, 1
jne 0x1400111f5
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 0x1400112eb
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x1400112eb
lea rdx, str.FveGetSecureBootBindingState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400112e2
or dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x40]
call qword [0x140022398]
mov esi, eax
test eax, eax
je 0x14001128e
cmp eax, 0x80070522
jne 0x1400112e2
mov edx, 0x2ff
jmp 0x1400112d7
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffffff
je 0x1400112d2
test eax, eax
je 0x1400112cb
cmp eax, 1
je 0x1400112c4
cmp eax, 2
je 0x1400112bd
lea rcx, [rsp + 0x30]
cmp eax, 3
je 0x1400112b6
mov edx, 0x153
jmp 0x1400112dc
mov edx, 0x2f5
jmp 0x1400112dc
mov edx, 0x2f4
jmp 0x1400112d7
mov edx, 0x2f3
jmp 0x1400112d7
mov edx, 0x2f2
jmp 0x1400112d7
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 [0x140022398]
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 [0x140022398]
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 [0x140022398]
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 [0x140022398]
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.14001d7f0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret