Function at 0x140052aa0
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 0x140052f41
mov rcx, qword [r8]
test rcx, rcx
je 0x140052f41
cmp qword [r8 + 0x10], rbx
je 0x140052f41
cmp qword [r8 + 0x18], rbx
je 0x140052f41
inc rcx
lea edx, [rbx + 0x10]
call fcn.1400c537c
mov r15, rax
test rax, rax
je 0x140052f41
inc dword [0x14019f580]
mov qword [rsp + 0x90], rdi
mov edi, ebx
mov qword [rsp + 0x88], r14
cmp qword [rsi], rbx
jbe 0x140052b6d
mov r14, rax
nop
mov rcx, qword [rsi + 0x10]
mov rcx, qword [rcx + rdi*8]
call fcn.140051830
mov qword [r14 + 8], rax
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + rdi*8]
call fcn.140051830
mov qword [r14], rax
lea r14, [r14 + 0x10]
inc rdi
cmp rdi, qword [rsi]
jb 0x140052b40
lea rax, [0x14016f7a8]
add rdi, rdi
mov ecx, 0xc23
mov qword [r15 + rdi*8 + 8], rax
call fcn.1400207e0
mov rcx, rax
call fcn.140051830
cmp dword [rbp - 0x11], ebx
lea rcx, [0x14013bef0]
mov qword [r15 + rdi*8], rax
lea r9, [0x14013ba40]
lea rax, [0x14013bf00]
cmovne rcx, rax
xor edx, edx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 3]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140052bd5
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x140052c26
mov eax, 0xc0033de1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140050120
lea rcx, str.CoCreateInstance_for_FileOpenDialog_failed:__s
mov rdx, rax
call fcn.14004f910
mov rcx, r15
call fcn.1400e9080
mov rcx, qword [rbp - 0x29]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rcx, rcx
je 0x140052c18
mov rax, qword [rcx]
call qword [rax + 0x10]
dec dword [0x14019f580]
mov rax, rbx
jmp 0x140052f43
mov edx, dword [rsi]
mov r8, r15
mov rax, qword [rcx]
inc edx
call qword [rax + 0x20]
test r12, r12
jne 0x140052ca0
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 0x140052ce1
mov rcx, qword [rbp - 0x21]
lea r9, [rbp - 0x19]
lea r8, [0x14013b640]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140052c94
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 0x140052ce1
mov rcx, r12
call fcn.140051830
lea r9, [rbp - 0x19]
mov qword [rbp - 0x21], rax
lea r8, [0x14013b640]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140052cd4
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.1400e9080
mov qword [rbp - 0x21], rbx
mov rax, qword [rsi + 8]
lea rdi, [0x14015644e]
test rax, rax
mov rcx, rdi
cmovne rcx, rax
call fcn.140051830
mov r14, rax
test rax, rax
je 0x140052d10
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 0x140052d1c
mov rdi, qword [rcx]
mov rcx, rdi
call fcn.140051830
mov rdi, rax
test rax, rax
je 0x140052d3c
mov rcx, qword [rbp - 0x29]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov edx, ebx
test r13, r13
je 0x140052d47
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 [0x1401e8a68]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r12d, eax
test r13, r13
je 0x140052d77
mov rcx, qword [rbp - 0x29]
mov rdx, r13
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, rdi
call fcn.1400e9080
mov rcx, r14
call fcn.1400e9080
mov r14, rbx
cmp qword [rsi], rbx
jbe 0x140052db6
mov rdi, r15
mov rcx, qword [rdi + 8]
call fcn.1400e9080
mov rcx, qword [rdi]
mov qword [rdi + 8], rbx
call fcn.1400e9080
mov qword [rdi], rbx
lea rdi, [rdi + 0x10]
inc r14
cmp r14, qword [rsi]
jb 0x140052d92
add r14, r14
mov rcx, qword [r15 + r14*8]
call fcn.1400e9080
mov rcx, r15
mov qword [r15 + r14*8], rbx
call fcn.1400e9080
mov r15, rbx
test r12d, r12d
js 0x140052f1b
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
js 0x140052bf1
mov rcx, qword [rbp - 9]
lea r8, [rbp - 0x21]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140052ef0
mov r14, qword [rbp - 0x21]
cmp word [r14], bx
jne 0x140052e40
mov edx, 1
mov ecx, edx
call fcn.1400c537c
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 0x140052bf1
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 0x140052ed7
mov rcx, rsi
mov edx, 1
call fcn.1400c537c
mov rdi, rax
test rax, rax
je 0x140052ed7
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 0x140052ed4
mov rcx, rdi
call fcn.1400e9080
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 0x140052bf1
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 0x140052bf1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140050120
mov rdx, rax
lea rcx, str.Unable_to_access_file_path:__s
call fcn.14004f910
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140052bf1
cmp r12w, 0x4c7
je 0x140052bf1
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140050120
lea rcx, str.Could_not_show_FileOpenDialog:__s
jmp 0x140052be9
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x98
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret