Function at 0x1400163b8
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 edi, 0xc9
mov edx, edi
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]
lea edx, [rdi + 1]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x28], rax
mov edx, edi
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, [0x140022b28]
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]
lea edx, [rdi + 7]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3b0], rax
lea edx, [rdi + 2]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3b8], rax
lea edx, [rdi + 3]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3c0], rax
lea edx, [rdi + 4]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx + 0x3c8], rax
lea edx, [rdi + 8]
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]
lea ecx, [rdi + 0x3b]
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 - 0x80]
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x70]
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbx + 0x3d8]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx + 0x3e8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r9d, dword [rbp - 0x78]
mov ecx, r9d
mov edx, dword [rbp - 0x80]
sub ecx, edx
mov eax, dword [rbp - 0x68]
sub eax, dword [rbp - 0x70]
cmp ecx, eax
jle 0x140016631
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x70], xmm0
jmp 0x140016641
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x80], xmm0
mov r9d, dword [rbp - 0x78]
mov edx, dword [rbp - 0x80]
mov ecx, dword [rbp - 0x48]
sub ecx, dword [rbp - 0x50]
mov eax, dword [rbp - 0x58]
sub eax, dword [rbp - 0x60]
cmp eax, ecx
jle 0x14001665c
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140016665
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x7c]
sub eax, r8d
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x3d0]
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 + 0x3e0]
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 + 0x3d8]
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [rbp - 0x44]
mov r8d, dword [rbp - 0x4c]
sub eax, r8d
mov r9d, dword [rbp - 0x48]
mov edx, dword [rbp - 0x50]
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.140016c70
mov rcx, rbx
call fcn.140016da0
mov dword [rbx + 0x19c], r15d
lea r14, [rbx + 0x420]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
lea rsi, [rbx + 0x428]
mov rdx, r13
mov rcx, rsi
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 0x1400167c7
mov rcx, rax
call fcn.140008634
mov rdi, rax
jmp 0x1400167ca
mov rdi, r15
test rdi, rdi
je 0x140016804
mov rax, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, r13
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140022358]
test eax, eax
jns 0x1400167fe
mov rax, qword [rdi]
mov edx, r12d
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140022358]
jmp 0x140016804
mov qword [rbx + 0x38], rdi
jmp 0x140016808
mov qword [rbx + 0x38], r15
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x50], r15
mov rax, qword [rsi]
cmp dword [rax - 8], r15d
je 0x140016825
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
mov rdx, qword [r14]
cmp dword [rdx - 8], r15d
je 0x140016867
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140016832
sub eax, r12d
movsxd rcx, eax
js 0x140016853
cmp word [rdx + rcx*2], 0x2e
je 0x140016853
sub eax, r12d
sub rcx, r12
jns 0x140016844
test eax, eax
js 0x140016867
lea r8d, [rax + 1]
mov rcx, rbx
call fcn.140016f44
test eax, eax
jns 0x140016878
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x140016878
mov rcx, rbx
call fcn.140018450
mov edx, 0xd1
mov rcx, qword [0x1400382e0]
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
xor edx, edx
lea r8d, [rax + 0x28]
lea rcx, [rbp - 0x2c]
call sub.msvcrt.dll_memset
movdqa xmm0, xmmword [0x140028fe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rbp - 0x30], 0x2c
mov dword [rbp - 0x28], r15d
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x1400168fc
mov rax, qword [rbp - 0x38]
cmp eax, 0x28a
jle 0x1400168eb
add eax, 0xffffffce
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x34]
cmp eax, 0x1f4
jle 0x1400168fc
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 0x140016951
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.14001c820
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