Function at 0x1400494d8
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 [0x14024f530]
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 0x1400495e5
call qword [sym.imp.USER32.dll_IsMenu]
mov ecx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x14004954a
call fcn.1400129dc
int3
cmp qword [rbp + 0x1e0], rbx
jne 0x14004956d
mov r8, rsi
mov rdx, qword [rbp + 0x1508]
lea rcx, vtable.CMenuHash.0
call fcn.1400bef8c
cmp eax, ebx
jne 0x1400495e5
cmp dword [0x140255d00], ebx
jne 0x1400495c1
cmp dword [0x14024a588], ebx
je 0x1400495c1
lea rcx, [0x140255c40]
call fcn.1400e71e0
cmp eax, ebx
je 0x1400495c1
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 0x1400495e5
xor eax, eax
jmp 0x140049b4c
mov rax, qword [rsi]
mov r8d, 1
mov rdx, qword [rbp + 0x1508]
mov rcx, rsi
call qword [rax + 0x820]
cmp eax, ebx
jne 0x1400495e5
xor eax, eax
jmp 0x140049b4c
call fcn.140058dec
mov rcx, qword [rax + 8]
mov r14, qword [rcx + 0x110]
xor r8d, r8d
cmp r14, r8
je 0x1400498d7
cmp dword [0x140254ef8], r8d
jne 0x1400498d7
mov edi, r8d
mov dword [rsp + 0x34], r8d
mov r13d, r8d
mov r12, qword [rsi + 0x1088]
cmp r12, r8
je 0x1400498d7
mov r15, r12
mov rbx, r12
cmp r12, r8
je 0x1400498d1
mov r12, qword [r12]
mov rbx, qword [rbx + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
je 0x1400498cb
cmp dword [rbx + 0x24], 0xe110
jne 0x140049679
lea rdx, str.Recent_File
mov rcx, qword [rbx + 0x30]
call fcn.140184bac
xor r8d, r8d
cmp eax, r8d
sete al
cmp al, r8b
jne 0x140049692
mov r13d, dword [rbx + 0x28]
and r13d, 1
inc edi
mov dword [rsp + 0x34], edi
cmp r12, r8
je 0x1400498d7
jmp 0x140049629
mov rdx, r15
lea rcx, [rsi + 0x1080]
call fcn.1400bea94
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 0x14004987f
call fcn.140011920
xor edx, edx
mov ecx, edx
cmp rax, rdx
setne cl
cmp ecx, edx
je 0x140049874
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 0x14004982c
call fcn.140011920
xor ebx, ebx
mov ecx, ebx
cmp rax, rbx
setne cl
cmp ecx, ebx
je 0x14004985e
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.140006400
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.1400e54b8
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.1400e3b50
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
xor r8d, r8d
cmp eax, r8d
jg 0x140049828
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x38]
xor r8d, r8d
jmp 0x14004982c
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 0x140049850
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 0x140049869
jmp 0x140049708
mov ecx, 0x80004005
call fcn.140001f40
nop
mov eax, dword [rsp + 0x30]
cmp eax, r8d
jne 0x1400498d7
jmp 0x14004987f
mov ecx, 0x80004005
call fcn.140001f40
int3
cmp r13d, r8d
je 0x1400498d7
cmp r12, r8
je 0x1400498d7
mov rbx, qword [r12 + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
jne 0x1400498a2
call fcn.1400129dc
int3
test byte [rbx + 0x28], 1
je 0x1400498d7
mov rdx, r12
lea rcx, [rsi + 0x1080]
call fcn.1400bea94
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
jmp 0x1400498d7
call fcn.1400129dc
int3
call fcn.1400129dc
int3
cmp qword [0x1402569c0], r8
je 0x140049ac6
cmp dword [0x140254ef8], r8d
jne 0x140049ac6
mov r15d, r8d
mov r12d, r8d
mov r14d, r8d
mov r13, qword [rsi + 0x1088]
cmp r13, r8
je 0x140049ac6
mov rdx, r13
mov rbx, r13
cmp r13, r8
je 0x140049ac0
mov r13, qword [r13]
mov rbx, qword [rbx + 0x10]
mov eax, r8d
cmp rbx, r8
setne al
cmp eax, r8d
je 0x140049aba
mov rdi, qword [0x1402569c0]
mov eax, dword [rdi + 0x40]
cmp eax, dword [rbx + 0x24]
jne 0x140049a73
cmp dword [0x140255ec4], r8d
je 0x140049955
cmp qword [rdi + 0x20], r8
je 0x140049973
lea rcx, [rsi + 0x1080]
call fcn.1400bea94
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
cmp r15d, r8d
jne 0x140049aa7
cmp r14d, r8d
jne 0x1400499a5
cmp qword [rdi + 0x20], r8
je 0x1400499a5
cmp qword [rsi + 0x1098], r8
je 0x1400499a5
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 0x140049a43
mov rdi, r15
cmp r15, r8
je 0x140049ab4
mov r15, qword [r15]
mov rdi, qword [rdi + 0x10]
mov ebx, dword [rdi + 0x20]
call fcn.1400a0ed0
mov rcx, rax
mov r8d, 1
mov edx, ebx
call fcn.1400a118c
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.1400e54b8
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.1400e3b50
xor r8d, r8d
cmp r15, r8
jne 0x1400499b2
cmp r13, r8
je 0x140049a6b
movsxd rdx, r12d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x648]
inc r12d
xor r8d, r8d
cmp eax, r8d
jl 0x140049a68
lea r14d, [r8 + 1]
jmp 0x140049a6b
mov r14d, r8d
mov r15d, 1
jmp 0x140049aa7
test byte [rbx + 0x28], 1
je 0x140049aa4
cmp r14d, r8d
je 0x140049a9c
lea rcx, [rsi + 0x1080]
call fcn.1400bea94
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
xor r8d, r8d
mov r14d, 1
jmp 0x140049aa7
mov r14d, r8d
inc r12d
cmp r13, r8
je 0x140049ac6
jmp 0x14004990a
call fcn.1400129dc
int3
call fcn.1400129dc
int3
call fcn.1400129dc
int3
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x740]
mov rbx, rax
xor edi, edi
cmp rax, rdi
je 0x140049aec
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x250]
cmp eax, edi
jne 0x140049af7
mov rcx, rbp
call fcn.140095008
mov rbx, rax
cmp rbx, rdi
je 0x140049b0e
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x438]
mov rax, qword [0x1402564b0]
cmp rax, rdi
jne 0x140049b22
mov rcx, rbp
call fcn.14001ae38
mov rdx, rbp
mov rcx, rax
call fcn.140046058
cmp eax, edi
jne 0x140049b35
xor eax, eax
jmp 0x140049b4c
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.140182850
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