Function at 0x14003fb60
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x418]
sub rsp, 0x4e0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400a48d0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, r8
mov r13, rcx
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov r12d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], r15d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x14004015b
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x70], rax
xor edx, edx
lea rcx, str.WfsR.dll
call fcn.140014ccc
mov rsi, rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov ebx, r15d
mov qword [rbp - 0x68], rbx
mov r9d, 0x200
lea r8, [rbp - 0x40]
mov edx, 0x4e9c
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x14003fc76
cmp eax, 0x1ff
jne 0x14003fc5f
lea r9d, [rax + 2]
lea r8, [rbp - 0x40]
mov edx, 0x4e9c
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
cmp eax, 0x200
je 0x14003fc76
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x68], rax
test rdi, rdi
je 0x140040084
test rbx, rbx
je 0x140040084
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.Scanned_Documents_
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140040089
mov rax, qword [r14 + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.ScanSetting.DLL_GetDefaultProfileScan]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140040089
cmp dword [rsp + 0x40], r15d
je 0x140040089
cmp qword [rsp + 0x48], r15
je 0x1400400ea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140040089
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x58], 7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x78]
call qword [case.0x14000c28f.0]
mov esi, eax
test eax, eax
jne 0x140040089
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x140082d08]
mov rax, qword [rax]
call qword [case.0x14000c28f.0]
mov esi, eax
test eax, eax
jne 0x140040089
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
lea edx, [rsi + 1]
mov rax, qword [rax + 0x18]
call qword [case.0x14000c28f.0]
mov esi, eax
test eax, eax
je 0x14003fdc3
mov esi, 0x80004005
jmp 0x140040089
mov eax, 8
cmp word [rbp - 0x80], ax
jne 0x14004007d
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14004007d
mov r12, rax
mov qword [rbp - 0x78], r15
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop dword [rax + rax]
cmp dword [rsp + 0x40], 0
jle 0x14003fe41
xor r14d, r14d
lea edi, [r14 + 8]
mov rdx, r12
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop dword [rax + rax]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x48]
mov rcx, qword [r14 + rcx]
call fcn.14004de70
inc r15d
add r14, rdi
cmp r15d, dword [rsp + 0x40]
jl 0x14003fe04
mov rdi, qword [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
xor r15d, r15d
test rax, rax
je 0x14003fe6d
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x14003fe70
mov rax, r15
cmp dword [rax + reloc.MFC42u.dll_COleClientItem::GetCachedExtent], r15d
je 0x14003fe8c
lea rcx, [rax + 0x590]
mov edx, 1
call fcn.1400040c0
jmp 0x14003fe94
mov rcx, rax
call fcn.14000dd3c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop dword [rax + rax]
mov r14, rax
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14003fedf
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x14003fee2
mov rax, r15
lea rcx, [rax + 0x2b8]
mov edx, dword [rax + 0x788]
call fcn.140001fcc
mov rcx, rax
mov rdx, r14
call fcn.140044430
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14003ff28
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x14003ff2b
mov rax, r15
lea rcx, [rax + 0x2b8]
mov edx, dword [rax + 0x788]
call fcn.140001fcc
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop dword [rax + rax]
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14003ff7c
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x14003ff7f
mov rax, r15
lea rcx, [rax + 0x2b8]
mov edx, dword [rax + 0x788]
call fcn.140001fcc
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x1e8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [case.0x14000c28f.0]
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14003ffd8
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x14003ffdb
mov rax, r15
lea rcx, [rax + 0x2b8]
mov edx, dword [rax + 0x788]
call fcn.140001fcc
mov rcx, rax
call fcn.1400491bc
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop dword [rax + rax]
mov r14, rax
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x140040044
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
jmp 0x140040047
mov rax, r15
lea rcx, [rax + 0x2b8]
mov edx, dword [rax + 0x788]
call fcn.140001fcc
mov rcx, rax
mov rdx, r14
call fcn.140049b34
mov r8d, dword [rsp + 0x40]
mov rdx, r13
mov rcx, qword [rsp + 0x48]
call fcn.140040190
mov qword [rsp + 0x48], r15
jmp 0x1400400d6
mov esi, 0x8000ffff
jmp 0x140040089
mov esi, 0x8007000e
cmp qword [rsp + 0x48], r15
je 0x1400400ea
cmp dword [rsp + 0x40], 0
jle 0x1400400c5
xor r14d, r14d
lea edi, [r14 + 8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [r14 + rcx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
inc r15d
add r14, rdi
cmp r15d, dword [rsp + 0x40]
jl 0x14004009e
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r12, r12
je 0x1400400ea
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040101
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000c28f.0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040118
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000c28f.0]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004012f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000c28f.0]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.14006e550
mov rbx, qword [rsp + reloc.MFC42u.dll_Ordinal_1320]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret