Function at 0x1400548e0
Capabilities:
Check if file exists
Delete file
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
or r12, 0xffffffffffffffff
xor esi, esi
mov rbx, rcx
test rcx, rcx
jne 0x140054908
mov eax, esi
jmp 0x14005491b
call fcn.1400b2af0
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.1400be600
mov rcx, rax
call fcn.1400b4534
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, eax
test eax, eax
jne 0x140054952
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov ecx, 0xfde9
call fcn.1400be6d0
mov rbp, rax
jmp 0x14005499e
lea ecx, [rax + 1]
mov edx, 2
call fcn.140109ad8
mov r8d, ebp
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test rdi, rdi
jne 0x14005497b
mov rbp, rsi
jmp 0x140054996
call fcn.1400b2af0
mov r9, rax
mov r8, r12
mov rdx, rdi
mov ecx, 0xfde9
call fcn.1400be6d0
mov rbp, rax
mov rcx, rdi
call fcn.140107298
mov rcx, rbx
call fcn.140107298
lea rcx, [0x140145dec]
call fcn.1400b4b50
xor ecx, ecx
mov r14, rax
call fcn.140107298
mov rbx, rsi
test r14, r14
je 0x1400549e3
mov r8, r12
inc r8
cmp byte [r14 + r8], sil
jne 0x1400549c7
mov r9d, 1
mov rdx, r14
xor ecx, ecx
call fcn.1400b3634
mov rbx, rax
call fcn.140054508
mov r15, rax
test rbp, rbp
je 0x140054b3f
test r14, r14
je 0x140054b3f
test rax, rax
je 0x140054b3f
mov r9, rbp
lea rcx, str.__s___q__dSAFER__dNOPAUSE__dBATCH__dEPSCrop__sOutputFile__s___sDEVICEpdfwrite__f___s_
mov r8, r14
mov rdx, rax
call fcn.1400b2dac
lea rcx, str.C:UserspentesterDownloads_sumatrapdf_master_sumatrapdf_master_srcEnginePs.cpp
mov rdi, rax
call fcn.1400b412c
mov rcx, r14
mov r10, rax
call fcn.1400b412c
mov rdx, r10
mov qword [rsp + 0x20], rax
mov r9, r15
lea rcx, str.___s:_d:_using__s_for_creating___TEMP___s_n
mov r8d, 0xad
call fcn.1400b3458
xor edx, edx
mov r8d, 0x8000000
mov rcx, rdi
call fcn.1400b6fbc
mov rdi, rax
test rax, rax
je 0x140054b3f
xor r8d, r8d
lea rcx, str.SUMATRAPDF_NO_GHOSTSCRIPT_TIMEOUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, rdi
mov dword [rsp + 0x70], 1
neg eax
sbb edx, edx
and edx, 0xffff63bf
add edx, 0x9c40
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x70], esi
jne 0x140054b3f
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400b4c2c
cmp qword [rsp + 0x30], rsi
je 0x140054b3f
lea rcx, [rsp + 0x30]
call fcn.1400b82e8
mov rcx, qword [rsp + 0x30]
mov rdi, rax
call fcn.140107298
test rdi, rdi
je 0x140054b3f
mov ecx, 0x208
call fcn.1400f44e0
mov rcx, rax
call fcn.14004d74c
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.14004e578
test al, al
jne 0x140054b34
mov rcx, rbp
call fcn.14003ccc0
mov rbp, rsi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x140054b42
mov rbp, rsi
test rbx, rbx
je 0x140054b7d
call fcn.1400b2af0
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.1400be600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete sil
or esi, edi
jne 0x140054b7d
xor ecx, ecx
call fcn.1400b5d58
mov rcx, rbx
call fcn.140107298
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret