Function at 0x1400c3f10
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 [0x1414cdb60]
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, [0x14135c948]
mov qword [rsp + 0x20], rbx
mov eax, dword [0x1414d1838]
test al, 1
jne 0x1400c4042
or eax, 1
mov dword [0x1414d1838], eax
mov edx, 7
lea rcx, [0x141475ff0]
call fcn.140014c00
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x58], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140011e20
mov qword [rbp - 0x60], 0
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x58]
call fcn.14001a740
mov rcx, rax
mov dl, 1
call fcn.1400a55f0
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x50], 1
test rax, rax
je 0x1400c3fe8
lea rdx, [0x141475fd8]
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 0x1400c4000
cmp eax, 0xffffffff
je 0x1400c400e
lock dec dword [rcx]
jne 0x1400c400e
mov rcx, qword [rbp - 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rax, qword [rbp - 0x20]
mov qword [0x1414d1830], rax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4033
cmp eax, 0xffffffff
je 0x1400c4042
lock dec dword [rcx]
jne 0x1400c4042
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
cmp esi, 0x10
ja case.default.0x1400c405c
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0xc483c]
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 0x1400c40c4
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.1400c3b30
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 0x1400c40b6
cmp eax, 0xffffffff
je 0x1400c40c4
lock dec dword [rcx]
jne 0x1400c40c4
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
call fcn.1400af9c0
test al, al
je 0x1400c40fc
mov dword [rbp - 0x20], 7
lea rax, [0x141475ff8]
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.140012510
cmp esi, 0xb
je case.default.0x1400c405c
cmp esi, 0x10
je case.default.0x1400c405c
lea rcx, [rbp - 0x10]
call fcn.14002d520
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rbp - 0x10]
mov eax, dword [rcx]
test eax, eax
je 0x1400c413a
cmp eax, 0xffffffff
je 0x1400c4148
lock dec dword [rcx]
jne 0x1400c4148
mov rcx, qword [rbp - 0x10]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
test sil, sil
je 0x1400c41a1
lea rcx, [rsp + 0x70]
call fcn.14002d520
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.14007b790
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4193
cmp eax, 0xffffffff
je 0x1400c41a1
lock dec dword [rcx]
jne 0x1400c41a1
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
lea rcx, [rbp]
call fcn.14002c5e0
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rbp]
mov eax, dword [rcx]
test eax, eax
je 0x1400c41cd
cmp eax, 0xffffffff
je 0x1400c41db
lock dec dword [rcx]
jne 0x1400c41db
mov rcx, qword [rbp]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
test sil, sil
je case.default.0x1400c405c
lea rcx, [rbp - 0x80]
call fcn.14002c5e0
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.14007b790
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x80]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x68]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x68]
jmp 0x1400c47b5
mov rax, qword [0x1414d1830]
test rax, rax
je case.0x1400c405c.1
lea r9, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [0x141475f50]
call rax
test eax, eax
jne case.default.0x1400c405c
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1400c3b30
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 0x1400c4300
cmp eax, 0xffffffff
je 0x1400c430e
lock dec dword [rcx]
jne 0x1400c430e
mov rcx, qword [rbp - 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.default.0x1400c405c
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x38]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x38]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rsp + 0x50]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x40]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x40]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 8]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 8]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x30]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x30]
jmp 0x1400c47b5
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.0x1400c405c
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 8]
call fcn.1400c3b30
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp + 8]
jmp 0x1400c47b5
mov edx, 9
lea rcx, [rsp + 0x58]
call fcn.1400c3f10
nop
mov dword [rbp + 0x50], 6
lea rcx, [0x141476000]
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.1400afe90
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 [0x14135c948]
test eax, eax
je 0x1400c460f
cmp eax, 0xffffffff
je 0x1400c4621
lock dec dword [0x14135c948]
jne 0x1400c4621
mov rbx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c463b
cmp eax, 0xffffffff
je 0x1400c464a
lock dec dword [rcx]
jne 0x1400c464a
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c47fe
cmp eax, 0xffffffff
je 0x1400c480d
lock dec dword [rcx]
jne 0x1400c480d
mov rcx, qword [rsp + 0x20]
jmp 0x1400c47fe
mov edx, 0xb
lea rcx, [rsp + 0x68]
call fcn.1400c3f10
nop
mov dword [rbp + 0x40], 6
lea rcx, [0x141476000]
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.1400afe90
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 [0x14135c948]
test eax, eax
je 0x1400c46e8
cmp eax, 0xffffffff
je 0x1400c46fa
lock dec dword [0x14135c948]
jne 0x1400c46fa
mov rbx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4714
cmp eax, 0xffffffff
je 0x1400c4723
lock dec dword [rcx]
jne 0x1400c4723
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c47fe
cmp eax, 0xffffffff
je 0x1400c480d
lock dec dword [rcx]
jne 0x1400c480d
mov rcx, qword [rsp + 0x20]
jmp 0x1400c47fe
lea rcx, [rsp + 0x78]
call fcn.140021fd0
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rsp + 0x78]
jmp 0x1400c47b5
lea rcx, [rbp - 0x78]
call fcn.140022e80
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 0x1400c47b5
cmp eax, 0xffffffff
je case.default.0x1400c405c
lock dec dword [rcx]
jne case.default.0x1400c405c
mov rcx, qword [rbp - 0x78]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400112a0
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 [0x14135c948]
test eax, eax
je 0x1400c47fb
cmp eax, 0xffffffff
je 0x1400c480d
lock dec dword [0x14135c948]
jne 0x1400c480d
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400112a0
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400face0
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