Function at 0x10216990
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1035a8f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x1c], 0
je 0x102169d9
mov eax, dword [esi]
test eax, eax
je 0x102169df
mov eax, dword [eax + 0x64]
test eax, eax
je 0x102169d9
cmp dword [eax + 0x64], 0
jne 0x102169d9
mov byte [esi + 0x1c], 0
call fcn.10217e60
mov eax, dword [esi]
test eax, eax
jne 0x102169eb
push str.draw_stack_base_item_is_missing
push 0x171
jmp 0x102169fb
cmp dword [eax + 0x64], 0
je 0x10216a0b
push str.draw_stack_is_not_empty
push 0x173
push str...mupdf_source_fitzgdiplus_device.cpp
push dword [esi + 4]
call fcn.101df520
add esp, 0x10
cmp dword [esi], 0
mov ebp, dword [sym.imp.gdiplus.dll_GdipFree]
je 0x10216aa2
lea ebx, [ebx]
mov edi, dword [esi]
mov eax, dword [edi + 0x64]
test eax, eax
je 0x10216a86
mov dword [esi], eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x10216a81
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10216a48
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x10216a55
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10216a67
push dword [ebx]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push ebx
call ebp
mov dword [esp + 0x20], 0xffffffff
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeleteRegion]
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esi], 0
jne 0x10216a20
mov eax, dword [esi]
test eax, eax
je 0x10216aa2
mov edi, dword [esi + 8]
push 0
push dword [eax]
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipSetClipRegion]
test eax, eax
je 0x10216aa2
mov dword [edi + 4], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10216aae
push ecx
call fcn.102199e0
mov edi, dword [esi + 8]
test edi, edi
je 0x10216ac0
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push edi
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10216b4f
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x10216afd
xor ebp, ebp
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ebp + 0x30]
test edi, edi
je 0x10216af1
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov eax, dword [esi + 0xc]
inc ebx
add ebp, 0x34
cmp ebx, dword [eax + 4]
jl 0x10216ad4
mov ebp, dword [esi + 4]
mov ebx, dword [esi + 0xc]
push 0
mov eax, dword [ebp + 4]
mov edi, dword [ebx + 0x10]
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp]
push edi
push dword [eax]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp]
push ebx
push dword [eax]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
add esp, 0x30
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10216be6
xor ebx, ebx
cmp dword [eax + 4], ebx
jle 0x10216b94
xor edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x10]
mov edx, dword [edx + edi]
call fcn.1022ebf0
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + edi + 0x30]
test ecx, ecx
je 0x10216b88
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x10]
inc ebx
add edi, 0x34
cmp ebx, dword [eax + 4]
jl 0x10216b63
mov ebp, dword [esi + 4]
mov ebx, dword [esi + 0x10]
push 0
mov eax, dword [ebp + 4]
mov edi, dword [ebx + 0x10]
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp]
push edi
push dword [eax]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp]
push ebx
push dword [eax]
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [ebp + 4]
push 0
push dword [eax]
mov eax, dword [eax + 8]
call eax
add esp, 0x30
mov esi, dword [esi + 0x14]
test esi, esi
je 0x10216c14
cmp word [esi], 0
je 0x10216bfa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x208]
test ecx, ecx
je 0x10216c0a
push ecx
call fcn.102165d0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret