Function at 0x14004b648
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140253530]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rbp, rcx
mov rax, qword [rcx]
call qword [rax + 0x338]
mov rsi, rax
mov rcx, qword [rbp + 0x1508]
xor ebx, ebx
cmp rcx, rbx
je 0x14004b755
call qword [sym.imp.USER32.dll_IsMenu]
mov ecx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x14004b6ba
call fcn.14001501c
int3
cmp qword [rbp + 0x1e0], rbx
jne 0x14004b6dd
mov r8, rsi
mov rdx, qword [rbp + 0x1508]
lea rcx, vtable.CMenuHash.0
call fcn.1400c11a4
cmp eax, ebx
jne 0x14004b755
cmp dword [0x140259dc0], ebx
jne 0x14004b731
cmp dword [0x14024e588], ebx
je 0x14004b731
lea rcx, [0x140259d00]
call fcn.1400e93d0
cmp eax, ebx
je 0x14004b731
mov eax, ebx
cmp qword [rbp + 0x1e0], rbx
setne al
mov r9, qword [rsi]
mov r8d, ebx
cmp eax, ebx
sete r8b
mov rdx, qword [rbp + 0x1508]
mov rcx, rsi
call qword [r9 + 0x820]
cmp eax, ebx
jne 0x14004b755
xor eax, eax
jmp 0x14004bcbc
mov rax, qword [rsi]
mov r8d, 1
mov rdx, qword [rbp + 0x1508]
mov rcx, rsi
call qword [rax + 0x820]
cmp eax, ebx
jne 0x14004b755
xor eax, eax
jmp 0x14004bcbc
call fcn.14005b1a4
mov rcx, qword [rax + 8]
mov r14, qword [rcx + 0x110]
xor r8d, r8d
cmp r14, r8
je 0x14004ba47
cmp dword [0x140258fb8], r8d
jne 0x14004ba47
mov edi, r8d
mov dword [rsp + 0x34], r8d
mov r13d, r8d
mov r12, qword [rsi + 0x1088]
cmp r12, r8
je 0x14004ba47
mov r15, r12
mov rbx, r12
cmp r12, r8
je 0x14004ba41
mov r12, qword [r12]
mov rbx, qword [rbx + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
je 0x14004ba3b
cmp dword [rbx + 0x24], 0xe110
jne 0x14004b7e9
lea rdx, str.Recent_File
mov rcx, qword [rbx + 0x30]
call fcn.14018712c
xor r8d, r8d
cmp eax, r8d
sete al
cmp al, r8b
jne 0x14004b802
mov r13d, dword [rbx + 0x28]
and r13d, 1
inc edi
mov dword [rsp + 0x34], edi
cmp r12, r8
je 0x14004ba47
jmp 0x14004b799
mov rdx, r15
lea rcx, [rsi + 0x1080]
call fcn.1400c0ad8
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
mov eax, 0x5c
mov word [rsp + rbx*2 + 0x2a0], ax
inc ebx
mov dword [rsp + 0x38], ebx
movsxd rcx, ebx
xor r8d, r8d
mov word [rsp + rcx*2 + 0x2a0], r8w
mov dword [rsp + 0x30], r8d
mov r15d, r8d
cmp dword [r14 + 8], r8d
jle 0x14004b9ef
call fcn.140013f60
xor edx, edx
mov ecx, edx
cmp rax, rdx
setne cl
cmp ecx, edx
je 0x14004b9e4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rax, qword [r14]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x2a0]
mov r8d, r15d
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor r8d, r8d
cmp eax, r8d
je 0x14004b99c
call fcn.140013f60
xor ebx, ebx
mov ecx, ebx
cmp rax, rbx
setne cl
cmp ecx, ebx
je 0x14004b9ce
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov r9, qword [rsp + 0x40]
mov r8d, eax
lea rdx, str._d__s
lea rcx, [rsp + 0x48]
call fcn.140008680
movsxd rdi, edi
lea edx, [r15 + 0xe110]
mov dword [rsp + 0x28], ebx
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.1400e76a8
nop
mov r9, qword [rsi]
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call qword [r9 + 0x640]
mov edi, dword [rsp + 0x34]
inc edi
mov dword [rsp + 0x34], edi
lea rcx, [rsp + 0x58]
call fcn.1400e5d7c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor r8d, r8d
cmp eax, r8d
jg 0x14004b998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x38]
xor r8d, r8d
jmp 0x14004b99c
mov ebx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r8d
jg 0x14004b9c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
inc r15d
cmp r15d, dword [r14 + 8]
jge 0x14004b9d9
jmp 0x14004b878
mov ecx, 0x80004005
call fcn.140001f40
nop
mov eax, dword [rsp + 0x30]
cmp eax, r8d
jne 0x14004ba47
jmp 0x14004b9ef
mov ecx, 0x80004005
call fcn.140001f40
int3
cmp r13d, r8d
je 0x14004ba47
cmp r12, r8
je 0x14004ba47
mov rbx, qword [r12 + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
jne 0x14004ba12
call fcn.14001501c
int3
test byte [rbx + 0x28], 1
je 0x14004ba47
mov rdx, r12
lea rcx, [rsi + 0x1080]
call fcn.1400c0ad8
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
jmp 0x14004ba47
call fcn.14001501c
int3
call fcn.14001501c
int3
cmp qword [0x14025aa80], r8
je 0x14004bc36
cmp dword [0x140258fb8], r8d
jne 0x14004bc36
mov r15d, r8d
mov r12d, r8d
mov r14d, r8d
mov r13, qword [rsi + 0x1088]
cmp r13, r8
je 0x14004bc36
mov rdx, r13
mov rbx, r13
cmp r13, r8
je 0x14004bc30
mov r13, qword [r13]
mov rbx, qword [rbx + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
je 0x14004bc2a
mov rdi, qword [0x14025aa80]
mov eax, dword [rdi + 0x40]
cmp eax, dword [rbx + 0x24]
jne 0x14004bbe3
cmp dword [0x140259f84], r8d
je 0x14004bac5
cmp qword [rdi + 0x20], r8
je 0x14004bae3
lea rcx, [rsi + 0x1080]
call fcn.1400c0ad8
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
cmp r15d, r8d
jne 0x14004bc17
cmp r14d, r8d
jne 0x14004bb15
cmp qword [rdi + 0x20], r8
je 0x14004bb15
cmp qword [rsi + 0x1098], r8
je 0x14004bb15
movsxd rdx, r12d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x648]
inc r12d
xor r8d, r8d
mov r15, qword [rdi + 0x10]
cmp r15, r8
je 0x14004bbb3
mov rdi, r15
cmp r15, r8
je 0x14004bc24
mov r15, qword [r15]
mov rdi, qword [rdi + 0x10]
mov ebx, dword [rdi + 0x20]
call fcn.1400a3094
mov rcx, rax
mov r8d, 1
mov edx, ebx
call fcn.1400a3350
movsxd rbx, r12d
mov r9, qword [rdi + 8]
xor edx, edx
mov ecx, edx
cmp eax, 0xffffffff
setne cl
cmp eax, 0xffffffff
cmove eax, edx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r9
mov r9d, eax
xor r8d, r8d
mov edx, dword [rdi + 0x20]
lea rcx, [rsp + 0x178]
call fcn.1400e76a8
nop
mov r9, qword [rsi]
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [r9 + 0x640]
inc r12d
lea rcx, [rsp + 0x178]
call fcn.1400e5d7c
xor r8d, r8d
cmp r15, r8
jne 0x14004bb22
cmp r13, r8
je 0x14004bbdb
movsxd rdx, r12d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x648]
inc r12d
xor r8d, r8d
cmp eax, r8d
jl 0x14004bbd8
lea r14d, [r8 + 1]
jmp 0x14004bbdb
mov r14d, r8d
mov r15d, 1
jmp 0x14004bc17
test byte [rbx + 0x28], 1
je 0x14004bc14
cmp r14d, r8d
je 0x14004bc0c
lea rcx, [rsi + 0x1080]
call fcn.1400c0ad8
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
mov r14d, 1
jmp 0x14004bc17
mov r14d, r8d
inc r12d
cmp r13, r8
je 0x14004bc36
jmp 0x14004ba7a
call fcn.14001501c
int3
call fcn.14001501c
int3
call fcn.14001501c
int3
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x740]
mov rbx, rax
xor edi, edi
cmp rax, rdi
je 0x14004bc5c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x250]
cmp eax, edi
jne 0x14004bc67
mov rcx, rbp
call fcn.140097280
mov rbx, rax
cmp rbx, rdi
je 0x14004bc7e
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x438]
mov rax, qword [0x14025a570]
cmp rax, rdi
jne 0x14004bc92
mov rcx, rbp
call fcn.14001d3c8
mov rdx, rbp
mov rcx, rax
call fcn.1400481c8
cmp eax, edi
jne 0x14004bca5
xor eax, eax
jmp 0x14004bcbc
mov r8, qword [rbp]
mov ebx, 1
mov edx, ebx
mov rcx, rbp
call qword [r8 + 0x2a0]
mov eax, ebx
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140184d90
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret