Function at 0x457ef0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0497
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov esi, edx
mov dword [ebp - 0x598], ebx
mov dword [ebp - 0x594], esi
cmp dword [ebx + 0x2aa5a8], edi
jne 0x45807b
mov ecx, dword [esi + 0x844]
push 0x60ed48
call fcn.004fc850
cmp eax, edi
jge 0x45807b
lea eax, [ebp - 0x59c]
push eax
mov ecx, esi
mov dword [ebp - 0x59c], edi
call fcn.004527e0
mov dword [ebp - 0x590], eax
cmp eax, edi
jne 0x4583b8
mov dword [ebp - 0x584], edi
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
mov dword [ebp - 0x580], 0xffffffff
mov dword [ebp - 0x57c], edi
mov byte [ebp - 0x574], 0
mov byte [ebp - 0x174], 0
mov dword [ebp - 4], edi
mov ecx, dword [ebx + 0x311e3c]
add ecx, 0x15c0
push ecx
push 0x5c7d4c
push str.cotw
lea edi, [ebp - 0x588]
call fcn.00508fc0
add esp, 0xc
cmp dword [ebp - 0x578], 0
je 0x45805b
push str.unable_create_temporary_postscript_header
mov eax, 0x12b06
lea ecx, [ebp - 0x150]
call fcn.005064b0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x311e3c]
add eax, 0x15c0
mov edi, dword [ebp - 0x578]
je 0x45801a
cmp byte [eax], 0
je 0x45801a
push eax
push str.filename___s_
call fcn.00506600
add esp, 8
mov ecx, esi
call fcn.005067d0
mov ecx, eax
mov eax, dword [ebp - 0x594]
call fcn.0044ae40
lea esi, [ebp - 0x150]
mov edi, eax
mov byte [ebp - 4], 0
call fcn.00506520
lea ecx, [ebp - 0x588]
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, edi
jmp 0x4583b8
mov edi, dword [ebp - 0x59c]
cmp edi, 1
jge 0x458082
lea ecx, [ebp - 0x588]
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
xor eax, eax
jmp 0x4583b8
push 0x400000
add esi, 0xf884
push esi
mov ecx, str.HeaderChunk
call fcn.004fd0e0
mov esi, eax
mov dword [ebp - 0x5a8], esi
cmp esi, 1
jl 0x4580a9
cmp esi, edi
jle 0x4580b1
mov dword [ebp - 0x5a8], edi
mov esi, edi
push esi
call fcn.00596073
mov ecx, dword [ebp - 0x594]
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x5a0], edi
mov dword [ebp - 0x5a4], ebx
mov dword [ebp - 0x58c], ebx
call fcn.00456d20
mov dword [ebp - 0x5ac], eax
cmp dword [ebp - 0x59c], ebx
jle 0x458364
jmp 0x4580f6
mov esi, dword [ebp - 0x5a8]
mov eax, dword [ebp - 0x59c]
mov ecx, dword [ebp - 0x5a4]
sub esi, ebx
sub eax, ecx
cmp eax, esi
jge 0x45810c
mov esi, eax
lea edx, [ebx + edi]
push edx
push esi
push ecx
mov ecx, dword [ebp - 0x594]
call fcn.00452aa0
mov dword [ebp - 0x590], eax
test eax, eax
jne 0x4582d3
add dword [ebp - 0x5a4], esi
cmp dword [ebp - 0x5ac], eax
jne 0x45818e
mov eax, dword [ebp - 0x598]
cmp dword [eax + 0x2aa594], 2
je 0x45818e
push esi
push edi
lea ecx, [ebp - 0x588]
call fcn.00509a60
cmp dword [ebp - 0x578], 0
je 0x458253
push str.unable_write_to_temporary_postscript_header
mov eax, 0x12b08
lea ecx, [ebp - 0x150]
call fcn.005064b0
mov ecx, eax
mov edx, dword [ebp - 0x598]
mov byte [ebp - 4], 3
mov eax, dword [edx + 0x311e3c]
jmp 0x45828e
mov ecx, dword [ebp - 0x598]
cmp dword [ecx + 0x2aa594], 2
jne 0x4581d7
add ebx, esi
add ebx, edi
mov eax, edi
cmp edi, ebx
jae 0x4581d1
mov edx, ebx
sub edx, eax
push 0x18
push edx
mov edi, str.currentdict_readonly_pop
mov ecx, eax
call fcn.004ff1f0
add esp, 8
test eax, eax
je 0x4581cb
mov byte [eax], 0x25
add eax, 0x18
cmp eax, ebx
jb 0x4581a7
mov edi, dword [ebp - 0x5a0]
mov ebx, dword [ebp - 0x58c]
cmp dword [ebp - 0x5ac], 0
je 0x458203
mov eax, dword [ebp - 0x598]
mov edx, dword [ebp - 0x594]
push 1
add eax, 0x286f7c
push eax
lea ecx, [esi + ebx]
push ecx
push edx
mov ecx, edi
call fcn.00456da0
add esp, 0x10
lea eax, [esi + ebx]
cmp eax, 0x100
jle 0x458247
lea esi, [esi + ebx - 0x100]
push esi
push edi
lea ecx, [ebp - 0x588]
call fcn.00509a60
cmp dword [ebp - 0x578], 0
jne 0x458267
push 0x100
add esi, edi
push esi
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x58c], 0x100
jmp 0x45824d
mov dword [ebp - 0x58c], eax
mov ebx, dword [ebp - 0x58c]
mov eax, dword [ebp - 0x5a4]
cmp eax, dword [ebp - 0x59c]
jl 0x4580f0
jmp 0x4582d3
push str.unable_write_to_temporary_postscript_header
mov eax, 0x12b07
lea ecx, [ebp - 0x150]
call fcn.005064b0
mov ecx, eax
mov eax, dword [ebp - 0x598]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x311e3c]
add eax, 0x15c0
call fcn.005067b0
mov edi, dword [ebp - 0x578]
mov ecx, eax
call fcn.005067d0
mov ecx, eax
mov eax, dword [ebp - 0x594]
call fcn.0044ae40
lea esi, [ebp - 0x150]
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 0
call fcn.00506520
mov ebx, dword [ebp - 0x58c]
mov edi, dword [ebp - 0x5a0]
test ebx, ebx
jle 0x458364
cmp dword [ebp - 0x590], 0
jne 0x458364
push ebx
push edi
lea ecx, [ebp - 0x588]
call fcn.00509a60
cmp dword [ebp - 0x578], 0
je 0x458364
push str.unable_write_to_temporary_postscript_header
mov eax, 0x12b09
lea ecx, [ebp - 0x150]
call fcn.005064b0
mov ecx, eax
mov edx, dword [ebp - 0x598]
mov byte [ebp - 4], 4
mov eax, dword [edx + 0x311e3c]
add eax, 0x15c0
call fcn.005067b0
mov edi, dword [ebp - 0x578]
mov ecx, eax
call fcn.005067d0
mov ecx, eax
mov eax, dword [ebp - 0x594]
call fcn.0044ae40
lea esi, [ebp - 0x150]
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 0
call fcn.00506520
mov edi, dword [ebp - 0x5a0]
lea ecx, [ebp - 0x588]
call fcn.005096c0
mov eax, dword [ebp - 0x5a4]
cmp dword [ebp - 0x59c], eax
jne 0x458386
cmp dword [ebp - 0x590], 0
je 0x458393
lea ecx, [ebp - 0x574]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [ebp - 0x588]
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, dword [ebp - 0x590]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret