Function at 0x140052510
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x98
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0xf], rax
xor ebx, ebx
mov dword [rbp - 0x11], ecx
mov qword [rbp - 0x29], rbx
mov r13, r9
mov qword [rbp - 0x21], rbx
mov rsi, r8
mov qword [rbp - 0x19], rbx
mov r12, rdx
test r8, r8
je 0x1400529b3
mov rcx, qword [r8]
test rcx, rcx
je 0x1400529b3
cmp qword [r8 + 0x10], rbx
je 0x1400529b3
cmp qword [r8 + 0x18], rbx
je 0x1400529b3
inc rcx
mov edx, 0x10
call fcn.1400c4f6c
mov r15, rax
test rax, rax
je 0x1400529b3
inc dword [0x14019f600]
mov qword [rsp + 0x90], rdi
mov edi, ebx
mov qword [rsp + 0x88], r14
cmp qword [rsi], rbx
jbe 0x1400525dd
mov r14, rax
mov rcx, qword [rsi + 0x10]
mov rcx, qword [rcx + rdi*8]
call fcn.140051290
mov qword [r14 + 8], rax
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + rdi*8]
call fcn.140051290
mov qword [r14], rax
lea r14, [r14 + 0x10]
inc rdi
cmp rdi, qword [rsi]
jb 0x1400525b0
lea rax, [0x14016f868]
add rdi, rdi
mov ecx, 0xc23
mov qword [r15 + rdi*8 + 8], rax
call fcn.140021050
mov rcx, rax
call fcn.140051290
cmp dword [rbp - 0x11], ebx
lea rcx, [0x14013bf10]
mov qword [r15 + rdi*8], rax
lea r9, [0x14013ba60]
lea rax, [0x14013bf20]
mov r8d, 3
cmovne rcx, rax
lea rax, [rbp - 0x29]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140052647
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x140052698
mov eax, 0xc0033de1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14004fba0
lea rcx, str.CoCreateInstance_for_FileOpenDialog_failed:__s
mov rdx, rax
call fcn.14004f2f0
mov rcx, r15
call fcn.1400e8c70
mov rcx, qword [rbp - 0x29]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rcx, rcx
je 0x14005268a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
dec dword [0x14019f600]
mov rax, rbx
jmp 0x1400529b5
mov edx, dword [rsi]
mov r8, r15
mov rax, qword [rcx]
inc edx
call qword [rax + 0x20]
test r12, r12
jne 0x140052712
lea r9, [rbp - 0x21]
mov dword [rbp - 1], 0x374de290
xor r8d, r8d
mov dword [rbp + 3], 0x4565123f
xor edx, edx
mov dword [rbp + 7], 0xc4396491
lea rcx, [rbp - 1]
mov dword [rbp + 0xb], 0x7b465e92
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140052753
mov rcx, qword [rbp - 0x21]
lea r9, [rbp - 0x19]
lea r8, [0x14013b660]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140052706
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140052753
mov rcx, r12
call fcn.140051290
lea r9, [rbp - 0x19]
mov qword [rbp - 0x21], rax
lea r8, [0x14013b660]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140052746
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rbp - 0x21]
call fcn.1400e8c70
mov qword [rbp - 0x21], rbx
mov rax, qword [rsi + 8]
lea rdi, [0x1401564ce]
test rax, rax
mov rcx, rdi
cmovne rcx, rax
call fcn.140051290
mov r14, rax
test rax, rax
je 0x140052782
mov rcx, qword [rbp - 0x29]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14005278e
mov rdi, qword [rcx]
mov rcx, rdi
call fcn.140051290
mov rdi, rax
test rax, rax
je 0x1400527ae
mov rcx, qword [rbp - 0x29]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov edx, ebx
test r13, r13
je 0x1400527b9
mov edx, dword [r13]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp - 0x29]
mov rdx, qword [0x1401e89e8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r12d, eax
test r13, r13
je 0x1400527e9
mov rcx, qword [rbp - 0x29]
mov rdx, r13
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, rdi
call fcn.1400e8c70
mov rcx, r14
call fcn.1400e8c70
mov r14, rbx
cmp qword [rsi], rbx
jbe 0x140052828
mov rdi, r15
mov rcx, qword [rdi + 8]
call fcn.1400e8c70
mov rcx, qword [rdi]
mov qword [rdi + 8], rbx
call fcn.1400e8c70
mov qword [rdi], rbx
lea rdi, [rdi + 0x10]
inc r14
cmp r14, qword [rsi]
jb 0x140052804
add r14, r14
mov rcx, qword [r15 + r14*8]
call fcn.1400e8c70
mov rcx, r15
mov qword [r15 + r14*8], rbx
call fcn.1400e8c70
mov r15, rbx
test r12d, r12d
js 0x14005298d
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
js 0x140052663
mov rcx, qword [rbp - 9]
lea r8, [rbp - 0x21]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140052962
mov r14, qword [rbp - 0x21]
cmp word [r14], bx
jne 0x1400528b2
mov edx, 1
mov ecx, edx
call fcn.1400c4f6c
mov rcx, qword [rbp - 0x21]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052663
mov qword [rsp + 0x38], rbx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rbx
mov r8, r14
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
cmp esi, 1
jle 0x140052949
mov rcx, rsi
mov edx, 1
call fcn.1400c4f6c
mov rdi, rax
test rax, rax
je 0x140052949
mov qword [rsp + 0x38], rbx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rbx
mov r8, r14
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
je 0x140052946
mov rcx, rdi
call fcn.1400e8c70
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052663
mov rbx, rdi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052663
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Unable_to_access_file_path:__s
call fcn.14004f2f0
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052663
cmp r12w, 0x4c7
je 0x140052663
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14004fba0
lea rcx, str.Could_not_show_FileOpenDialog:__s
jmp 0x14005265b
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x98
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret