Function at 0x140043550
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 [0x140106438]
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 0x1400439f1
mov rcx, qword [r8]
test rcx, rcx
je 0x1400439f1
cmp qword [r8 + 0x10], rbx
je 0x1400439f1
cmp qword [r8 + 0x18], rbx
je 0x1400439f1
inc rcx
lea edx, [rbx + 0x10]
call fcn.1400966e0
mov r15, rax
test rax, rax
je 0x1400439f1
inc dword [0x140112950]
mov qword [rsp + 0x90], rdi
mov edi, ebx
mov qword [rsp + 0x88], r14
cmp qword [rsi], rbx
jbe 0x14004361d
mov r14, rax
nop
mov rcx, qword [rsi + 0x10]
mov rcx, qword [rcx + rdi*8]
call fcn.140003550
mov qword [r14 + 8], rax
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + rdi*8]
call fcn.140003550
mov qword [r14], rax
lea r14, [r14 + 0x10]
inc rdi
cmp rdi, qword [rsi]
jb 0x1400435f0
lea rax, [0x1400efcf8]
add rdi, rdi
mov ecx, 0xc23
mov qword [r15 + rdi*8 + 8], rax
call fcn.14001b320
mov rcx, rax
call fcn.140003550
cmp dword [rbp - 0x11], ebx
lea rcx, [0x1400c0b70]
mov qword [r15 + rdi*8], rax
lea r9, [0x1400c0b50]
lea rax, [0x1400c0b80]
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 0x140043685
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x1400436d6
mov eax, 0xc0033de1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140041e50
lea rcx, str.CoCreateInstance_for_FileOpenDialog_failed:__s
mov rdx, rax
call fcn.140041aa0
mov rcx, r15
call fcn.14009b5a0
mov rcx, qword [rbp - 0x29]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rcx, rcx
je 0x1400436c8
mov rax, qword [rcx]
call qword [rax + 0x10]
dec dword [0x140112950]
mov rax, rbx
jmp 0x1400439f3
mov edx, dword [rsi]
mov r8, r15
mov rax, qword [rcx]
inc edx
call qword [rax + 0x20]
test r12, r12
jne 0x140043750
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 0x140043791
mov rcx, qword [rbp - 0x21]
lea r9, [rbp - 0x19]
lea r8, [0x1400c0b30]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140043744
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 0x140043791
mov rcx, r12
call fcn.140003550
lea r9, [rbp - 0x19]
mov qword [rbp - 0x21], rax
lea r8, [0x1400c0b30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140043784
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.14009b5a0
mov qword [rbp - 0x21], rbx
mov rax, qword [rsi + 8]
lea rdi, [0x1400d756a]
test rax, rax
mov rcx, rdi
cmovne rcx, rax
call fcn.140003550
mov r14, rax
test rax, rax
je 0x1400437c0
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 0x1400437cc
mov rdi, qword [rcx]
mov rcx, rdi
call fcn.140003550
mov rdi, rax
test rax, rax
je 0x1400437ec
mov rcx, qword [rbp - 0x29]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov edx, ebx
test r13, r13
je 0x1400437f7
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 [0x14015a568]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r12d, eax
test r13, r13
je 0x140043827
mov rcx, qword [rbp - 0x29]
mov rdx, r13
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, rdi
call fcn.14009b5a0
mov rcx, r14
call fcn.14009b5a0
mov r14, rbx
cmp qword [rsi], rbx
jbe 0x140043866
mov rdi, r15
mov rcx, qword [rdi + 8]
call fcn.14009b5a0
mov rcx, qword [rdi]
mov qword [rdi + 8], rbx
call fcn.14009b5a0
mov qword [rdi], rbx
lea rdi, [rdi + 0x10]
inc r14
cmp r14, qword [rsi]
jb 0x140043842
add r14, r14
mov rcx, qword [r15 + r14*8]
call fcn.14009b5a0
mov rcx, r15
mov qword [r15 + r14*8], rbx
call fcn.14009b5a0
mov r15, rbx
test r12d, r12d
js 0x1400439cb
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
js 0x1400436a1
mov rcx, qword [rbp - 9]
lea r8, [rbp - 0x21]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x1400439a0
mov r14, qword [rbp - 0x21]
cmp word [r14], bx
jne 0x1400438f0
mov edx, 1
mov ecx, edx
call fcn.1400966e0
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 0x1400436a1
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 0x140043987
mov rcx, rsi
mov edx, 1
call fcn.1400966e0
mov rdi, rax
test rax, rax
je 0x140043987
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 0x140043984
mov rcx, rdi
call fcn.14009b5a0
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 0x1400436a1
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 0x1400436a1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140041e50
mov rdx, rax
lea rcx, str.Unable_to_access_file_path:__s
call fcn.140041aa0
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400436a1
cmp r12w, 0x4c7
je 0x1400436a1
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140041e50
lea rcx, str.Could_not_show_FileOpenDialog:__s
jmp 0x140043699
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140092060
add rsp, 0x98
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret