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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
or r13, 0xffffffffffffffff
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x1400b4df2
mov eax, ebx
jmp 0x1400b4e05
call fcn.1400804a4
mov r8, rax
mov rdx, r13
mov rcx, rdi
call fcn.140088f60
mov rcx, rax
call fcn.140080d5c
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov r14d, eax
test eax, eax
jne 0x1400b4e41
xor r9d, r9d
mov r8, r13
mov rdx, rsi
mov ecx, 0xfde9
call fcn.14008902c
mov r15, rax
mov qword [rbp + 0x60], rax
jmp 0x1400b4e82
lea ecx, [rax + 1]
mov edx, 2
call fcn.140100dac
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor r9d, r9d
mov r8, r13
mov rdx, rdi
mov ecx, 0xfde9
call fcn.14008902c
mov rcx, rdi
mov qword [rbp + 0x60], rax
mov r15, rax
call fcn.1400feb88
mov rcx, rsi
call fcn.1400feb88
lea rcx, [0x1401487e8]
call fcn.140081374
xor ecx, ecx
mov rdi, rax
call fcn.1400feb88
mov rsi, rbx
test rdi, rdi
je 0x1400b4ec7
mov r8, r13
inc r8
cmp byte [rdi + r8], bl
jne 0x1400b4eab
mov r9d, 1
mov rdx, rdi
xor ecx, ecx
call fcn.140080004
mov rsi, rax
call fcn.1400b4908
mov r14, rax
test r15, r15
je 0x1400b50be
test rdi, rdi
je 0x1400b50be
test rax, rax
je 0x1400b50be
mov r9, r15
lea rcx, str.__s___q__dSAFER__dNOPAUSE__dBATCH__dEPSCrop__sOutputFile__s___sDEVICEpdfwrite__f___s_
mov r8, rdi
mov rdx, rax
call fcn.14007c8d8
lea rcx, str.C:Userskjk_src_sumatrapdf_srcEnginePs.cpp
mov r15, rax
call fcn.14008097c
mov rcx, rdi
mov r10, rax
call fcn.14008097c
mov rdx, r10
mov qword [rsp + 0x20], rax
mov r9, r14
lea rcx, str.___s:_d:_using__s_for_creating___TEMP___s_n
mov r8d, 0xad
call fcn.14007fe80
xor edx, edx
mov r8d, 0x8000000
mov rcx, r15
call fcn.140083f9c
mov r12, rax
test rax, rax
je 0x1400b505d
xor r8d, r8d
lea rcx, str.SUMATRAPDF_NO_GHOSTSCRIPT_TIMEOUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, r12
mov dword [rbp + 0x48], 1
neg eax
sbb edx, edx
and edx, 0xffff63bf
add edx, 0x9c40
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x48], ebx
jne 0x1400b505d
xor r8d, r8d
lea rcx, [rbp - 0x18]
mov rdx, rdi
call fcn.140081538
mov r12, qword [rbp - 0x18]
test r12, r12
je 0x1400b505d
lea r8, [rbp + 0x58]
mov qword [rbp + 0x58], rbx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1400b503e
mov rax, qword [rcx]
lea r9, [rbp + 0x50]
mov r8d, dword [rbp - 0x10]
mov rdx, r12
call qword [rax + 0x20]
test eax, eax
js 0x1400b503a
mov eax, dword [rbp + 0x50]
cmp rax, qword [rbp - 0x10]
jne 0x1400b503a
mov rcx, qword [rbp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13, qword [rbp + 0x58]
test r13, r13
je 0x1400b504c
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
jmp 0x1400b504c
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400b5049
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r13, rbx
mov rcx, r12
call fcn.1400feb88
test r13, r13
jne 0x1400b506e
or r13, 0xffffffffffffffff
mov r12, rbx
mov rcx, r15
call fcn.1400feb88
mov r15, qword [rbp + 0x60]
jmp 0x1400b50c1
mov ecx, 0x200
call fcn.1400ebc6c
mov rcx, rax
call fcn.1400a41f0
xor r9d, r9d
mov r8, rdi
mov rdx, r13
mov rcx, rax
mov r12, rax
call fcn.1400a50c0
test al, al
jne 0x1400b50ae
test r12, r12
je 0x1400b50ab
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
mov r12, rbx
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
or r13, 0xffffffffffffffff
jmp 0x1400b5060
mov r12, rbx
mov rcx, r14
call fcn.1400feb88
test rsi, rsi
je 0x1400b50fd
mov rdx, r13
mov rcx, rsi
call fcn.140080930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete bl
or ebx, r14d
jne 0x1400b50fd
xor ecx, ecx
call fcn.140082f5c
mov rcx, rsi
call fcn.1400feb88
mov rcx, rdi
call fcn.1400feb88
mov rcx, r15
call fcn.1400feb88
mov rax, r12
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret