Function at 0x10000f328
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x700
mov rax, qword [0x100015138]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
xor r14d, r14d
cmp dword [rcx + 0x48], 1
mov rbp, rcx
jne 0x10000f3a6
lea edx, [r14 + 2]
call fcn.10000f174
cmp qword [rbp + 0x40], r14
je 0x10000f38c
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ecx, r14d
cmp eax, r14d
cmovl ecx, eax
cmp ecx, r14d
je 0x10000f3a6
xor edx, edx
mov rcx, rbp
call fcn.10000f174
cmp qword [rbp + 0x40], r14
je 0x10000f3a6
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbp + 0x40]
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov esi, 0x206
lea rcx, [rsp + 0x2d2]
mov r8, rsi
xor edx, edx
mov word [rsp + 0x2d0], r14w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xc2]
mov r8, rsi
xor edx, edx
mov word [rsp + 0xc0], r14w
call sub.msvcrt.dll_memset
mov r8, qword [rbp + 0xb0]
mov ebx, 0x104
mov edi, 0x82
cmp dword [r8 - 0x10], r14d
je 0x10000f52f
lea rax, [rsp + 0x2d0]
mov rdx, rbx
lea rcx, [rsp + 0x2d0]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, r14
je 0x10000f450
movzx eax, word [r8 + rcx]
cmp ax, r14w
je 0x10000f450
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10000f42c
cmp rdx, r14
jne 0x10000f459
sub rcx, 2
mov word [rcx], r14w
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rsp + 0xc0]
mov r8, rbx
sub rax, rcx
lea rdx, [rsp + 0xc0]
lea rcx, [r8 + 0x7ffffefa]
cmp rcx, r14
je 0x10000f4b1
movzx ecx, word [rax + rdx]
cmp cx, r14w
je 0x10000f4b1
mov word [rdx], cx
add rdx, 2
sub r8, 1
jne 0x10000f48e
cmp r8, r14
jne 0x10000f4ba
sub rdx, 2
mov word [rdx], r14w
mov rcx, rdi
lea rax, [rsp + 0x2d0]
cmp word [rax], r14w
je 0x10000f4d9
add rax, 2
sub rcx, 1
jne 0x10000f4c9
cmp rcx, r14
je 0x10000f4f1
mov rax, rdi
sub rax, rcx
mov qword [rsp + 0xb0], rax
add rax, rax
jmp 0x10000f4f4
mov rax, r14
cmp rax, r14
jbe 0x10000f52f
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, r14d
jne 0x10000f51c
lea rdx, [rsp + 0x2d0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, r14d
jne 0x10000f54f
lea rax, [rsp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rax, rdi
lea rcx, [rsp + 0xc0]
cmp word [rcx], r14w
je 0x10000f56a
add rcx, 2
sub rax, 1
jne 0x10000f55a
cmp rax, r14
je 0x10000f587
sub rdi, rax
mov qword [rsp + 0xb8], rdi
add rdi, rdi
mov qword [rsp + 0xa8], rdi
jmp 0x10000f592
mov rdi, r14
mov qword [rsp + 0xa8], r14
cmp rdi, r14
jne 0x10000f5b4
mov rcx, qword [0x100015570]
lea r8, [rsp + 0xc0]
mov r9d, ebx
mov edx, 0x6a
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea rdx, [0x100003890]
lea rcx, [rsp + 0xa0]
mov rbx, rax
call fcn.10000885c
lea rdx, [0x100003790]
lea rcx, [rsp + 0x90]
call fcn.10000885c
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.10000885c
cmp dword [rsp + 0x50], r14d
je 0x10000f626
mov rdi, qword [rsp + 0xa0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x10000f63f
cmp dword [rsp + 0x50], r14d
jne 0x10000f650
mov rdi, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
je 0x10000f650
mov r8d, dword [rdi - 0x10]
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.100008a14
lea rcx, [rsp + 0x4e2]
mov r8, rsi
xor edx, edx
mov word [rsp + 0x4e0], r14w
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov r9, qword [rsp + 0x58]
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0xc0]
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
xor eax, eax
or r15, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
mov rcx, r15
lea rdx, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.1000054e4
cmp dword [rsp + 0x50], r14d
lea rax, [0x100003988]
lea rdx, [0x100003990]
lea rcx, [rsp + 0x80]
cmovne rdx, rax
call fcn.10000885c
mov rax, qword [0x100015100]
lea rdi, [0x100015100]
mov rcx, rdi
call qword [rax + 0x18]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x98]
add rax, 0x18
mov qword [rsp + 0x78], rax
call fcn.10000885c
mov rax, qword [0x100015100]
mov rcx, rdi
call qword [rax + 0x18]
lea rcx, [rsp + 0x68]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x50]
neg eax
sbb edx, edx
and edx, 0xc
add edx, 0x6b
call fcn.1000088e4
mov rax, qword [0x100015100]
mov rcx, rdi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
call qword [rax + 0x18]
mov rbx, rax
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 8]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x8802
call fcn.10000db2c
cmp eax, r14d
jne 0x10000fb70
mov rcx, qword [0x100015570]
mov edx, 0x7f02
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov r13, rax
cmp qword [rbp + 0x40], r14
je 0x10000f7fe
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x30]
mov rdi, qword [rsp + 0x58]
cmp qword [rbp + 0x40], r14
je 0x10000f81b
cmp rdi, r14
je 0x10000f81b
mov rcx, qword [rbp + 0x40]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rsi, qword [rsp + 0x70]
cmp rsi, r14
je 0x10000fb32
cmp qword [rsp + 0x60], r14
je 0x10000fb32
lea r9, [rsp + 0x88]
lea r8, [0x1000039e0]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x88], r14
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
cmp eax, r14d
jge 0x10000f9ae
mov rcx, qword [rsp + 0x88]
movsxd rdi, eax
cmp rcx, r14
je 0x10000f875
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, r15d
lock xadd dword [rbx + 0x10], eax
add eax, r15d
mov rdx, rbx
cmp eax, r14d
jg 0x10000f891
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x10000f8ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x68]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f8ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x98]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f8f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x78]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f915
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x80]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f93a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f95c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x90]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f981
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
mov ecx, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
cmp ecx, r14d
jg 0x10000f9a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
jmp 0x10000fcb2
mov rdx, qword [rsp + 0x88]
cmp rdx, r14
jne 0x10000fafc
mov rdx, rbx
mov eax, r15d
lock xadd dword [rbx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000f9db
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x10000f9f6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x68]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fa18
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x98]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fa3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x78]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fa5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x80]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fa84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000faa6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x90]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000facb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000faf0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, 0xffffffff80004003
jmp 0x10000fcb2
mov rax, qword [rsi]
mov r9, qword [rbp + 8]
mov r8, qword [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [rax + 0xf8]
mov rcx, qword [rsp + 0x88]
cmp eax, r14d
jl 0x10000f867
cmp rcx, r14
je 0x10000fb32
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
lea rdi, [rsp + 0xc0]
mov rcx, r15
repne scasw ax, word [rdi]
lea rdx, [rsp + 0xc0]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rbp + 0xb0]
call fcn.1000054e4
xor edx, edx
mov rcx, rbp
call fcn.10000f174
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov rdx, rbx
mov eax, r15d
lock xadd dword [rbx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fb96
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x70]
cmp rcx, r14
je 0x10000fba6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x10000fbb6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x68]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fbd8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x98]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fbfd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x78]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fc1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x80]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fc44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fc66
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x90]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fc8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r14d
jg 0x10000fcb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.1000115c0
lea r11, [rsp + 0x700]
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