Function at 0x47f425
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call fcn.005b4b86
xor ebx, ebx
mov esi, eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, eax
test edi, edi
jne 0x47f44d
mov dword [ebp - 4], esi
mov esi, ebx
jmp 0x47f463
push 2
push edi
call fcn.00705f80
pop ecx
pop ecx
push edi
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push esi
call fcn.00702f96
pop ecx
mov ecx, 0xe84b00
call fcn.005b4feb
mov edi, eax
xor ecx, ecx
or eax, 0xffffffff
mov dword [ebp - 0x20], edi
push eax
mov edx, edi
call fcn.005b0c60
pop ecx
mov dword [ebp - 0x14], eax
call fcn.0047f0c1
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x47f608
test edi, edi
je 0x47f608
test eax, eax
je 0x47f608
push esi
push edi
push eax
push str.__s___q__dSAFER__dNOPAUSE__dBATCH__dEPSCrop__sOutputFile__s___sDEVICEpdfwrite__f___s_
call fcn.005b24d2
mov ecx, str.C:Userskjk_src_sumatrapdf_srcEnginePs.cpp
mov dword [ebp - 0xc], eax
call fcn.005b4856
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
mov esi, eax
call fcn.005b471e
add esp, 0x14
mov ecx, edi
push 0xffffffffffffffff
call fcn.005b4922
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.005b471e
pop ecx
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push 0xa5
push esi
push str.___s:_d:_using__s_for_creating___TEMP___s_n
call fcn.005b3949
mov ecx, dword [ebp - 0xc]
add esp, 0x14
xor edx, edx
push 0x8000000
call fcn.005b70b2
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x47f5f9
push ebx
push ebx
push str.SUMATRAPDF_NO_GHOSTSCRIPT_TIMEOUT
mov esi, 0x9c40
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0xffffffffffffffff
test eax, eax
mov dword [ebp - 8], 1
pop eax
cmovne esi, eax
push esi
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x47f5f9
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.005b5264
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x47f5f2
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x47f5f2
push ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.005b7d72
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47f5ef
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
push eax
mov edx, edi
call fcn.005b471e
mov dword [esp], 0x120
mov edi, dword [eax]
call fcn.006f40bd
pop ecx
mov ecx, eax
call fcn.00472fb2
push ebx
push edi
mov edi, eax
mov dword [ebp - 0x18], eax
push esi
mov ecx, edi
call fcn.00473a91
test al, al
jne 0x47f5e4
test edi, edi
je 0x47f5e6
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x47f5e6
mov ebx, edi
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00702f96
pop ecx
push dword [ebp - 0xc]
call fcn.00702f96
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ecx
push eax
call fcn.00702f96
mov eax, dword [ebp - 0x14]
pop ecx
test eax, eax
je 0x47f620
mov ecx, eax
call fcn.005b54a1
mov eax, dword [ebp - 0x14]
push eax
call fcn.00702f96
pop ecx
push edi
call fcn.00702f96
pop ecx
push esi
call fcn.00702f96
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret