Function at 0x1400166f8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rcx
mov edx, 0xc8
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_LoadMenuW]
mov qword [rbx + 0x440], rax
mov rdx, rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetMenu]
mov edx, 0xca
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x28], rax
mov edx, 0xc9
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x20], rax
mov dword [rsp + 0x48], 0x26
xor r15d, r15d
mov dword [rsp + 0x50], r15d
lea r13, [0x140022b78]
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x6c], r15d
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x1061
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xd2
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3b0], rax
mov edx, 0xcc
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3b8], rax
mov edx, 0xce
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3c0], rax
mov edx, 0xd0
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3c8], rax
mov edx, 0xd4
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3d0], rax
lea edx, [r15 + 3]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3d8], rax
lea edx, [r15 + 5]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3e0], rax
lea edx, [r15 + 4]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3e8], rax
lea rdx, [rbx + 0x1a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbx + 0x10]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
mov dword [rbx + 0x98], r15d
mov r9d, COleControl::XPersistPropertyBag::AddRef
xor r8d, r8d
mov edx, 0x1036
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbx + 0x88]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
lea rcx, [rbx + 0x90]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
mov qword [rbx + 0x58], r15
lea rcx, [rbx + 0x60]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
mov dword [rbx + 0x30], 0x21
lea r12d, [r15 + 1]
mov dword [rbx + 0x84], r12d
mov dword [rbx + 0x3a8], r12d
mov r9d, r12d
xor r8d, r8d
mov edx, CDocObjectServer::XOleObject::Advise
mov rcx, qword [rbx + 0x3b8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov r8d, r12d
mov edx, 0x459
mov rcx, qword [rbx + 0x3b8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x80]
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x70]
mov rcx, qword [rbx + 0x3d8]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbx + 0x3e8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, qword [rbp - 0x48]
mov ecx, edx
mov r10, qword [rbp - 0x50]
sub ecx, r10d
mov eax, dword [rbp - 0x78]
sub eax, dword [rbp - 0x80]
cmp ecx, eax
jle 0x140016981
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x140016992
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x50], xmm0
mov rdx, qword [rbp - 0x48]
mov r10, qword [rbp - 0x50]
mov ecx, dword [rbp - 0x58]
sub ecx, dword [rbp - 0x60]
mov eax, dword [rbp - 0x68]
sub eax, dword [rbp - 0x70]
cmp eax, ecx
jle 0x1400169ad
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x60], xmm0
jmp 0x1400169b6
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x70], xmm0
mov rcx, r10
shr rcx, 0x20
mov rax, rdx
shr rax, 0x20
sub eax, ecx
sub edx, r10d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov r9d, edx
mov r8d, ecx
mov edx, r10d
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x7c]
sub eax, r8d
mov r9d, dword [rbp - 0x78]
mov edx, dword [rbp - 0x80]
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [rbp - 0x64]
mov r8d, dword [rbp - 0x6c]
sub eax, r8d
mov r9d, dword [rbp - 0x68]
mov edx, dword [rbp - 0x70]
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x3d8]
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [rbp - 0x54]
mov r8d, dword [rbp - 0x5c]
sub eax, r8d
mov r9d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x60]
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x3e8]
call qword [sym.imp.USER32.dll_MoveWindow]
mov qword [rbx + 0x3f0], r15
mov dword [rbx + 0x3f8], r15d
mov rdx, r13
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
lea rcx, [rbx + 0x408]
mov rdx, rax
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov qword [rbx + reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef], r15
mov qword [rbx + 0x3fc], r15
mov rcx, rbx
call fcn.140016fd8
mov rcx, rbx
call fcn.140017108
mov dword [rbx + 0x19c], r15d
lea rsi, [rbx + 0x420]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
lea r14, [rbx + 0x428]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
lea rcx, [rbx + 0x430]
mov rdx, r13
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov qword [rbx + CObList::AddTail], r15
mov qword [rbx + 0x38], r15
mov ecx, 0x48
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140016b27
mov rcx, rax
call fcn.1400085e4
mov rdi, rax
jmp 0x140016b2a
mov rdi, r15
test rdi, rdi
je 0x140016b5c
mov rax, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, r13
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140022378]
test eax, eax
jns 0x140016b5f
mov rax, qword [rdi]
mov edx, r12d
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140022378]
mov rdi, r15
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x50], r15
mov rax, qword [r14]
cmp dword [rax - 8], r15d
je 0x140016b80
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
mov rdx, qword [rsi]
cmp dword [rdx - 8], r15d
je 0x140016bc2
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140016b8d
sub eax, r12d
movsxd rcx, eax
js 0x140016bae
cmp word [rdx + rcx*2], 0x2e
je 0x140016bae
sub eax, r12d
sub rcx, r12
jns 0x140016b9f
test eax, eax
js 0x140016bc2
lea r8d, [rax + 1]
mov rcx, rbx
call fcn.1400172ac
test eax, eax
jns 0x140016bd3
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x140016bd3
mov rcx, rbx
call fcn.1400187f0
mov edx, 0xd5
mov rcx, qword [0x1400382c0]
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [rbx + 0x448], rax
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea edi, [rax + 0x2c]
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_memset
movdqa xmm0, xmmword [0x140029110]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rbp - 0x30], edi
mov dword [rbp - 0x28], r15d
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140016c55
mov rax, qword [rbp - 0x38]
cmp eax, 0x28a
jle 0x140016c44
add eax, 0xffffffce
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x34]
cmp eax, 0x1f4
jle 0x140016c55
add eax, 0xffffffce
mov dword [rsp + 0x3c], eax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbp - 0x14], xmm0
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetWindowPlacement]
mov edx, 0x18f
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_LoadIconW]
mov rdi, rax
test rax, rax
je 0x140016caa
mov r8, rax
mov edx, 0xffffffde
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetClassLongPtrW]
mov r9, rdi
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14001cbc0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret