Function at 0x140015da0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, r8
mov rsi, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rdx, [rsp + 0x60]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
cmp eax, ebx
jbe 0x140015e2e
lea rdx, [0x140022b28]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
jmp 0x140015fa5
mov edx, 0x4b6
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
lea rdx, [0x1400239a8]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
mov rbx, rax
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
mov r8, qword [rbx]
mov rcx, qword [rax]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x140015e96
add rcx, 2
test eax, eax
jne 0x140015e82
test edx, edx
sete bl
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
test bl, bl
je 0x140015ee2
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x28]
jmp 0x140015f49
lea rdx, [0x1400239a8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140015ff4
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x140015f92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140015f92
lea rdx, [0x140023f51]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDaoTerm]
jmp 0x140015fa5
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
mov edi, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14001c820
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret