Function at 0x14003d4a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push r15
sub rsp, 0x460
mov rax, qword [rsp + 0x4a0]
xor ebx, ebx
cmp qword [0x140137f98], rbx
mov rbp, r8
mov r15, rdx
mov byte [r9], 0
mov byte [rax], 0
lea rax, [0x140137f98]
jne 0x14003d592
mov r8, qword [0x1401371c8]
lea r9, str.Lib_
mov rdx, rax
call fcn.14003d3f0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14003d515
mov word [rsp + 0x30], bx
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14003d521
test rax, rax
je 0x14003d53c
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14003d53c
mov word [rsp + rax*2 + 0x2e], bx
mov rcx, rbx
nop
movzx eax, word [rsp + rcx + 0x30]
mov word [rsp + rcx + 0x240], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14003d540
lea r9, str.PinkHotkeyLib_
lea r8, [rsp + 0x240]
lea rdx, [0x140137fa8]
call fcn.14003d3f0
mov r8, qword [0x1401371e0]
lea r9, str.Lib_
lea rdx, [0x140137fb8]
call fcn.14003d3f0
lea rax, [0x140137f98]
test rbp, rbp
jne 0x14003d5aa
mov rbp, 0xffffffffffffffff
nop
inc rbp
cmp word [r15 + rbp*2], bx
jne 0x14003d5a0
mov qword [rsp + 0x480], rsi
mov qword [rsp + 0x488], rdi
mov qword [rsp + 0x490], r12
mov qword [rsp + 0x458], r13
mov qword [rsp + 0x450], r14
cmp rbp, 0xfd
ja 0x14003d746
mov r13, r15
mov r14, rbp
mov r12d, ebx
nop dword [rax + rax]
mov esi, ebx
mov rbx, rax
mov rcx, qword [rbx]
cmp word [rcx], 0
je 0x14003d643
mov rax, qword [rbx + 8]
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r13
lea rcx, [rcx + rax*2]
call fcn.1400cfd20
movsd xmm0, qword [str..phk]
movsd qword [rdi + rax], xmm0
lea rcx, [rdi + rax]
movzx eax, word [0x140113308]
mov word [rcx + 8], ax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003d643
test al, 0x10
je 0x14003d6b5
inc esi
add rbx, 0x10
cmp esi, 3
jl 0x14003d5f5
mov edx, 0x5f
mov rcx, r15
call fcn.1400cbb24
mov r14, rax
test rax, rax
je 0x14003d746
sub r14, r15
sar r14, 1
cmp r14, 0xfe
jae 0x14003d746
lea rbx, [r14 + r14]
mov rdx, r15
mov r8, rbx
lea rcx, [rsp + 0x30]
lea r13, [rsp + 0x30]
call fcn.1400cfd20
xor eax, eax
inc r12d
mov word [rsp + rbx + 0x30], ax
cmp r12d, 2
jge 0x14003d746
xor ebx, ebx
lea rax, [0x140137f98]
jmp 0x14003d5f0
mov rax, qword [rsp + 0x4a0]
lea rcx, [0x140137f98]
mov byte [rax], 1
movsxd rax, esi
add rax, rax
lea rdi, [rcx + rax*8]
lea rsi, [rcx + rax*8]
mov rax, qword [rdi]
mov rcx, qword [rsi + 8]
lea rbx, [rax + rcx*2]
xor eax, eax
mov word [rbx - 2], ax
mov rcx, qword [rdi]
call fcn.140067190
mov word [rbx - 2], 0x5c
mov rcx, qword [0x140137200]
test rcx, rcx
je 0x14003d722
cmp byte [rsp + 0x4a8], 0
je 0x14003d722
mov r9, qword [rdi]
lea rdx, str.Include___0.s_nIncludeAgain__s_n
mov r8, qword [rsi + 8]
mov qword [rsp + 0x20], r9
call fcn.140027980
mov rdx, qword [rdi]
lea rcx, [0x140136640]
xor r9d, r9d
xor r8d, r8d
call fcn.14002add0
test eax, eax
jne 0x14003d77c
mov rax, qword [rsp + 0x498]
mov byte [rax], 1
xor eax, eax
mov r14, qword [rsp + 0x450]
mov r13, qword [rsp + 0x458]
mov r12, qword [rsp + 0x490]
mov rdi, qword [rsp + 0x488]
mov rsi, qword [rsp + 0x480]
add rsp, 0x460
pop r15
pop rbp
pop rbx
ret
xor r9d, r9d
lea rcx, [0x140136640]
mov r8, rbp
mov rdx, r15
call fcn.14003d7a0
jmp 0x14003d748