Function at 0x1400c4540
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov esi, edx
mov rdi, rcx
mov qword [rbp - 0x40], rcx
mov dword [rsp + 0x30], 0
lea rax, [0x141468e50]
mov qword [rcx], rax
mov dword [rsp + 0x30], 1
cmp edx, 0x10
ja 0x1400c482f
mov eax, 0x12a00
bt eax, edx
jae 0x1400c482f
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400c482f
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400c44c0
nop
cmp esi, 0xb
je 0x1400c4718
cmp esi, 0x10
je 0x1400c4718
lea rcx, [rsp + 0x58]
call fcn.14002dc50
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne r14b
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c461b
cmp eax, 0xffffffff
je 0x1400c4629
lock dec dword [rcx]
jne 0x1400c4629
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test r14b, r14b
je 0x1400c4682
lea rcx, [rsp + 0x68]
call fcn.14002dc50
nop
mov byte [rsp + 0x21], 0x2f
lea rcx, [rsp + 0x21]
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x28]
call fcn.14007bda0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4674
cmp eax, 0xffffffff
je 0x1400c4682
lock dec dword [rcx]
jne 0x1400c4682
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rcx, [rsp + 0x70]
call fcn.14002cd10
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne r14b
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c46b1
cmp eax, 0xffffffff
je 0x1400c46bf
lock dec dword [rcx]
jne 0x1400c46bf
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test r14b, r14b
je 0x1400c4718
lea rcx, [rsp + 0x48]
call fcn.14002cd10
nop
mov byte [rsp + 0x20], 0x2f
lea rcx, [rsp + 0x20]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x28]
call fcn.14007bda0
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400c470a
cmp eax, 0xffffffff
je 0x1400c4718
lock dec dword [rcx]
jne 0x1400c4718
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140008670
cmp esi, 0xb
je 0x1400c4807
lea rcx, [rsp + 0x60]
call fcn.14002ca10
nop
mov rdx, rax
mov rcx, rdi
call fcn.140008670
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400c475f
cmp eax, 0xffffffff
je 0x1400c476d
lock dec dword [rcx]
jne 0x1400c476d
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rcx, [rsp + 0x50]
call fcn.14002ca10
nop
mov dword [rbp - 0x58], 5
lea rcx, [0x141558d98]
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1400b06c0
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140008670
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400c47cf
cmp eax, 0xffffffff
je 0x1400c47de
lock dec dword [rcx]
jne 0x1400c47de
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400c47f8
cmp eax, 0xffffffff
je 0x1400c4807
lock dec dword [rcx]
jne 0x1400c4807
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4821
cmp eax, 0xffffffff
je 0x1400c482f
lock dec dword [rcx]
jne 0x1400c482f
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.1400c48a0
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140028fa0
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400c4864
cmp eax, 0xffffffff
je 0x1400c4872
lock dec dword [rcx]
jne 0x1400c4872
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400fb630
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret