Function at 0x1400c48a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2b8]
sub rsp, 0x3b0
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
movsxd rsi, edx
mov qword [rsp + 0x48], rcx
mov qword [rbp + 0x78], rcx
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rsp + 0x2c], eax
lea rbx, [0x14143f7c8]
mov qword [rsp + 0x20], rbx
mov eax, dword [0x1415b4858]
test al, 1
jne 0x1400c49d2
or eax, 1
mov dword [0x1415b4858], eax
mov edx, 7
lea rcx, [0x141558d80]
call fcn.140015480
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x58], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.1400126a0
mov qword [rbp - 0x60], 0
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x58]
call fcn.14001afc0
mov rcx, rax
mov dl, 1
call fcn.1400a5d50
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x50], 1
test rax, rax
je 0x1400c4978
lea rdx, [0x141558d68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4990
cmp eax, 0xffffffff
je 0x1400c499e
lock dec dword [rcx]
jne 0x1400c499e
mov rcx, qword [rbp - 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rax, qword [rbp - 0x20]
mov qword [0x1415b4850], rax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400c49c3
cmp eax, 0xffffffff
je 0x1400c49d2
lock dec dword [rcx]
jne 0x1400c49d2
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
cmp esi, 0x10
ja case.default.0x1400c49ec
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0xc51cc]
add rcx, rdx
jmp rcx
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400c4a54
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4a46
cmp eax, 0xffffffff
je 0x1400c4a54
lock dec dword [rcx]
jne 0x1400c4a54
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
call fcn.1400b01f0
test al, al
je 0x1400c4a8c
mov dword [rbp - 0x20], 7
lea rax, [0x141558d88]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x80], xmm0
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140012d90
cmp esi, 0xb
je case.default.0x1400c49ec
cmp esi, 0x10
je case.default.0x1400c49ec
lea rcx, [rbp - 0x10]
call fcn.14002dc50
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rbp - 0x10]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4aca
cmp eax, 0xffffffff
je 0x1400c4ad8
lock dec dword [rcx]
jne 0x1400c4ad8
mov rcx, qword [rbp - 0x10]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test sil, sil
je 0x1400c4b31
lea rcx, [rsp + 0x70]
call fcn.14002dc50
nop
mov byte [rsp + 0x28], 0x2f
lea rcx, [rsp + 0x28]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14007bda0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4b23
cmp eax, 0xffffffff
je 0x1400c4b31
lock dec dword [rcx]
jne 0x1400c4b31
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rcx, [rbp]
call fcn.14002cd10
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rbp]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4b5d
cmp eax, 0xffffffff
je 0x1400c4b6b
lock dec dword [rcx]
jne 0x1400c4b6b
mov rcx, qword [rbp]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test sil, sil
je case.default.0x1400c49ec
lea rcx, [rbp - 0x80]
call fcn.14002cd10
nop
mov byte [rsp + 0x29], 0x2f
lea rcx, [rsp + 0x29]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14007bda0
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x80]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x68]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x68]
jmp 0x1400c5145
mov rax, qword [0x1415b4850]
test rax, rax
je case.0x1400c49ec.1
lea r9, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [0x141558ce0]
call rax
test eax, eax
jne case.default.0x1400c49ec
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4c90
cmp eax, 0xffffffff
je 0x1400c4c9e
lock dec dword [rcx]
jne 0x1400c4c9e
mov rcx, qword [rbp - 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.default.0x1400c49ec
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x38]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x38]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 0x14]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rsp + 0x50]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x40]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x40]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 0xd]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 8]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 8]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 8]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 0xe]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x30]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x30]
jmp 0x1400c5145
xor r9d, r9d
lea r8d, [r9 + 0x27]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x1400c49ec
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 8]
call fcn.1400c44c0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp + 8]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp + 8]
jmp 0x1400c5145
mov edx, 9
lea rcx, [rsp + 0x58]
call fcn.1400c48a0
nop
mov dword [rbp + 0x50], 6
lea rcx, [0x141558d90]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1400b06c0
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x2c], 1
mov eax, dword [0x14143f7c8]
test eax, eax
je 0x1400c4f9f
cmp eax, 0xffffffff
je 0x1400c4fb1
lock dec dword [0x14143f7c8]
jne 0x1400c4fb1
mov rbx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4fcb
cmp eax, 0xffffffff
je 0x1400c4fda
lock dec dword [rcx]
jne 0x1400c4fda
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c518e
cmp eax, 0xffffffff
je 0x1400c519d
lock dec dword [rcx]
jne 0x1400c519d
mov rcx, qword [rsp + 0x20]
jmp 0x1400c518e
mov edx, 0xb
lea rcx, [rsp + 0x68]
call fcn.1400c48a0
nop
mov dword [rbp + 0x40], 6
lea rcx, [0x141558d90]
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x68], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x60]
call fcn.1400b06c0
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x2c], 1
mov eax, dword [0x14143f7c8]
test eax, eax
je 0x1400c5078
cmp eax, 0xffffffff
je 0x1400c508a
lock dec dword [0x14143f7c8]
jne 0x1400c508a
mov rbx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c50a4
cmp eax, 0xffffffff
je 0x1400c50b3
lock dec dword [rcx]
jne 0x1400c50b3
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c518e
cmp eax, 0xffffffff
je 0x1400c519d
lock dec dword [rcx]
jne 0x1400c519d
mov rcx, qword [rsp + 0x20]
jmp 0x1400c518e
lea rcx, [rsp + 0x78]
call fcn.140022850
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rsp + 0x78]
jmp 0x1400c5145
lea rcx, [rbp - 0x78]
call fcn.140023700
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5145
cmp eax, 0xffffffff
je case.default.0x1400c49ec
lock dec dword [rcx]
jne case.default.0x1400c49ec
mov rcx, qword [rbp - 0x78]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011b40
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x2c], 1
mov eax, dword [0x14143f7c8]
test eax, eax
je 0x1400c518b
cmp eax, 0xffffffff
je 0x1400c519d
lock dec dword [0x14143f7c8]
jne 0x1400c519d
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011b40
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400fb630
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret