Function at 0x1400c3380
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 + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x141693be0]
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, [0x14154e0f0]
mov qword [rcx], rax
mov dword [rsp + 0x30], 1
cmp edx, 0x11
ja 0x1400c367d
mov eax, 0x32a00
bt eax, edx
jae 0x1400c367d
mov eax, 0x1a
mov r8d, 0x1c
cmp edx, 0x11
cmove r8d, eax
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400c367d
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400c3310
nop
cmp esi, 0xb
je 0x1400c3566
cmp esi, 0x10
je 0x1400c3566
lea rcx, [rsp + 0x58]
call fcn.14002e2b0
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne r14b
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3469
cmp eax, 0xffffffff
je 0x1400c3477
lock dec dword [rcx]
jne 0x1400c3477
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test r14b, r14b
je 0x1400c34d0
lea rcx, [rsp + 0x68]
call fcn.14002e2b0
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.14007ba30
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c34c2
cmp eax, 0xffffffff
je 0x1400c34d0
lock dec dword [rcx]
jne 0x1400c34d0
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
lea rcx, [rsp + 0x70]
call fcn.14002d380
mov rcx, qword [rax]
cmp dword [rcx + 4], 0
setne r14b
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400c34ff
cmp eax, 0xffffffff
je 0x1400c350d
lock dec dword [rcx]
jne 0x1400c350d
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
test r14b, r14b
je 0x1400c3566
lea rcx, [rsp + 0x48]
call fcn.14002d380
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.14007ba30
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3558
cmp eax, 0xffffffff
je 0x1400c3566
lock dec dword [rcx]
jne 0x1400c3566
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140008590
cmp esi, 0xb
je 0x1400c3655
lea rcx, [rsp + 0x60]
call fcn.14002d0a0
nop
mov rdx, rax
mov rcx, rdi
call fcn.140008590
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400c35ad
cmp eax, 0xffffffff
je 0x1400c35bb
lock dec dword [rcx]
jne 0x1400c35bb
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
lea rcx, [rsp + 0x50]
call fcn.14002d0a0
nop
mov dword [rbp - 0x58], 5
lea rcx, [0x14163cc08]
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.1400afed0
nop
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140008590
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400c361d
cmp eax, 0xffffffff
je 0x1400c362c
lock dec dword [rcx]
jne 0x1400c362c
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400c3646
cmp eax, 0xffffffff
je 0x1400c3655
lock dec dword [rcx]
jne 0x1400c3655
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400c366f
cmp eax, 0xffffffff
je 0x1400c367d
lock dec dword [rcx]
jne 0x1400c367d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.1400c36f0
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140029580
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400c36b2
cmp eax, 0xffffffff
je 0x1400c36c0
lock dec dword [rcx]
jne 0x1400c36c0
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400fa620
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret