Function at 0x1400c36f0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x3e0], rbx
mov rax, qword [0x141693be0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
movsxd rsi, edx
mov qword [rsp + 0x48], rcx
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], eax
lea rbx, [0x141524b70]
mov qword [rsp + 0x20], rbx
mov eax, dword [0x141699868]
test al, 1
jne 0x1400c381d
or eax, 1
mov dword [0x141699868], eax
mov edx, 7
lea rcx, [0x14163cbf0]
call fcn.140015850
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x18], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140012b30
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
call fcn.14001b320
mov rcx, rax
mov dl, 1
call fcn.140042210
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x10], 1
test rax, rax
je 0x1400c37c2
lea rdx, [0x14163cbd8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x1400c37da
cmp eax, 0xffffffff
je 0x1400c37e8
lock dec dword [rcx]
jne 0x1400c37e8
mov rcx, qword [rbp - 0x18]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rax, qword [rsp + 0x60]
mov qword [0x141699860], rax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400c380e
cmp eax, 0xffffffff
je 0x1400c381d
lock dec dword [rcx]
jne 0x1400c381d
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
cmp esi, 0x11
ja case.default.0x1400c3837
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0xc4000]
add rcx, rdx
jmp rcx
mov eax, 0x1a
mov r8d, 0x1c
cmp esi, 0x11
cmove r8d, eax
xor r9d, r9d
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400c38aa
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x28]
call fcn.1400c3310
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 - 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400c389c
cmp eax, 0xffffffff
je 0x1400c38aa
lock dec dword [rcx]
jne 0x1400c38aa
mov rcx, qword [rbp - 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
call fcn.1400afa00
test al, al
je 0x1400c38e5
mov dword [rsp + 0x60], 7
lea rax, [0x14163cbf8]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x80], xmm0
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140013220
cmp esi, 0xb
je case.default.0x1400c3837
cmp esi, 0x10
je case.default.0x1400c3837
lea rcx, [rsp + 0x78]
call fcn.14002e2b0
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3926
cmp eax, 0xffffffff
je 0x1400c3934
lock dec dword [rcx]
jne 0x1400c3934
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test sil, sil
je 0x1400c398a
lea rcx, [rbp - 0x38]
call fcn.14002e2b0
nop
mov byte [rsp + 0x29], 0x2f
lea rcx, [rsp + 0x29]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14007ba30
nop
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400c397c
cmp eax, 0xffffffff
je 0x1400c398a
lock dec dword [rcx]
jne 0x1400c398a
mov rcx, qword [rbp - 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
lea rcx, [rbp - 0x78]
call fcn.14002d380
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne sil
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400c39b6
cmp eax, 0xffffffff
je 0x1400c39c4
lock dec dword [rcx]
jne 0x1400c39c4
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test sil, sil
je case.default.0x1400c3837
lea rcx, [rbp - 0x30]
call fcn.14002d380
nop
mov byte [rsp + 0x28], 0x2f
lea rcx, [rsp + 0x28]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14007ba30
nop
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x30]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x68]
call fcn.1400c3310
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 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x68]
jmp 0x1400c3f8b
mov rax, qword [0x141699860]
test rax, rax
je case.0x1400c3837.1
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14163cb50]
call rax
test eax, eax
jne case.default.0x1400c3837
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x50]
call fcn.1400c3310
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 - 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3ae9
cmp eax, 0xffffffff
je 0x1400c3af7
lock dec dword [rcx]
jne 0x1400c3af7
mov rcx, qword [rbp - 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.default.0x1400c3837
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x48]
call fcn.1400c3310
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 - 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x48]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400c3310
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 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rsp + 0x50]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x40]
call fcn.1400c3310
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 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x40]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rbp]
call fcn.1400c3310
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]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 8]
call fcn.1400c3310
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 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 8]
jmp 0x1400c3f8b
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.0x1400c3837
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.1400c3310
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 + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rsp + 0x58]
jmp 0x1400c3f8b
mov edx, 9
lea rcx, [rsp + 0x70]
call fcn.1400c36f0
nop
mov dword [rbp + 0x10], 6
lea rcx, [0x14163cc00]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1400afed0
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x40], rbx
mov eax, dword [0x141524b70]
test eax, eax
je 0x1400c3df3
cmp eax, 0xffffffff
je 0x1400c3e05
lock dec dword [0x141524b70]
jne 0x1400c3e05
mov rbx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3e1f
cmp eax, 0xffffffff
je 0x1400c3e2e
lock dec dword [rcx]
jne 0x1400c3e2e
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3fcc
cmp eax, 0xffffffff
je 0x1400c3fdb
lock dec dword [rcx]
jne 0x1400c3fdb
mov rcx, qword [rsp + 0x20]
jmp 0x1400c3fcc
mov edx, 0xb
lea rcx, [rbp - 0x80]
call fcn.1400c36f0
nop
mov dword [rbp + 0x40], 6
lea rcx, [0x14163cc00]
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.1400afed0
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x38], rbx
mov eax, dword [0x141524b70]
test eax, eax
je 0x1400c3ec3
cmp eax, 0xffffffff
je 0x1400c3ed5
lock dec dword [0x141524b70]
jne 0x1400c3ed5
mov rbx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3eed
cmp eax, 0xffffffff
je 0x1400c3efc
lock dec dword [rcx]
jne 0x1400c3efc
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3fcc
cmp eax, 0xffffffff
je 0x1400c3fdb
lock dec dword [rcx]
jne 0x1400c3fdb
mov rcx, qword [rsp + 0x20]
jmp 0x1400c3fcc
lea rcx, [rbp - 0x70]
call fcn.140022ce0
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x70]
jmp 0x1400c3f8b
lea rcx, [rbp - 0x60]
call fcn.140023b20
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3f8b
cmp eax, 0xffffffff
je case.default.0x1400c3837
lock dec dword [rcx]
jne case.default.0x1400c3837
mov rcx, qword [rbp - 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011e00
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov qword [rsp + 0x20], rbx
mov eax, dword [0x141524b70]
test eax, eax
je 0x1400c3fc9
cmp eax, 0xffffffff
je 0x1400c3fdb
lock dec dword [0x141524b70]
jne 0x1400c3fdb
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140011e00
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400fa620
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3b0
pop rdi
pop rsi
pop rbp
ret