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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x8d8
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rax, qword [rsp + 0x8f0]
movzx eax, byte [rax + 8]
test eax, eax
je 0x1801d6ad5
jmp 0x1801d6da3
mov rax, qword [rsp + 0x8f0]
mov byte [rax + 8], 1
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1801d6b6f
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1801d6b40
cmp qword [rsp + 0x40], 0
je 0x1801d6b3e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1801d6b6f
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x410
jae 0x1801d6b5b
jmp 0x1801d6b60
call fcn.18022ae28
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rsp + rcx + 0x90], ax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
sub qword [rsp + 0x20], 2
add qword [rsp + 0x20], 2
mov rax, qword [rsp + 0x20]
cmp word [rax], 0
jne 0x1801d6b82
mov rax, qword [rsp + 0x20]
lea rcx, [0x18026cd74]
mov rdi, rax
mov rsi, rcx
mov ecx, 4
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
sub qword [rsp + 0x28], 2
add qword [rsp + 0x28], 2
mov rax, qword [rsp + 0x28]
cmp word [rax], 0
jne 0x1801d6bbf
mov rax, qword [rsp + 0x28]
lea rcx, [0x180266ae0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1801d6c2b
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x410
jae 0x1801d6c17
jmp 0x1801d6c1c
call fcn.18022ae28
xor eax, eax
mov rcx, qword [rsp + 0x68]
mov word [rsp + rcx + 0x90], ax
lea rax, [rsp + 0x4a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x412
rep stosb byte [rdi], al
lea rax, [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x1801d6c55
mov rax, qword [rsp + 0x48]
test rax, rax
jbe 0x1801d6d45
mov r8d, 0x207
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x1801d6cab
mov rax, qword [rsp + 0x50]
test rax, rax
jbe 0x1801d6d45
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x30], rax
sub qword [rsp + 0x30], 2
add qword [rsp + 0x30], 2
mov rax, qword [rsp + 0x30]
cmp word [rax], 0
jne 0x1801d6cde
mov rax, qword [rsp + 0x30]
lea rcx, [0x18026cd74]
mov rdi, rax
mov rsi, rcx
mov ecx, 4
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x38], rax
sub qword [rsp + 0x38], 2
add qword [rsp + 0x38], 2
mov rax, qword [rsp + 0x38]
cmp word [rax], 0
jne 0x1801d6d1b
mov rax, qword [rsp + 0x38]
lea rcx, str.2345PdfConverter.hzv
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
call fcn.180118330
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x1801d6d6b
mov rax, qword [rsp + 0x58]
test rax, rax
jbe 0x1801d6da3
lea rdx, [rsp + 0x4a0]
mov rcx, qword [rsp + 0x88]
call fcn.180118460
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.18022a7d0
add rsp, 0x8d8
pop rdi
pop rsi
ret