Function at 0x10006300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
call fcn.100053e0
push 0
push 0
push str.iPDF_Viewer_Printer
push str.WINSPOOL
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [0x1007bc98], eax
test eax, eax
jne 0x10006350
push str.create_dc_error
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call esi
push 0x5a
push dword [0x1007bc98]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
call esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvttss2si eax, xmm0
movss dword [esp + 0x3c], xmm0
push eax
cvttss2si eax, dword [esp + 0x3c]
push eax
push str.printer_dpi__d_X__d
push dword [0x1007ba8c]
call fcn.1005eb10
movss xmm1, dword [esp + 0x4c]
divss xmm1, dword [0x10071b38]
movss xmm2, dword [esp + 0x48]
divss xmm2, dword [0x10071b38]
cvtps2pd xmm0, xmm1
movss dword [esp + 0x48], xmm2
movsd qword [esp + 8], xmm0
cvtps2pd xmm0, xmm2
movss dword [esp + 0x4c], xmm1
movsd qword [esp], xmm0
push str.scaleX__f__scaleY__f
push dword [0x1007ba8c]
call fcn.1005eb10
add esp, 0x18
push 8
push dword [0x1007bc98]
call esi
push 0xa
push dword [0x1007bc98]
mov dword [0x1007b080], eax
call esi
push eax
push dword [0x1007b080]
mov dword [0x1007beac], eax
push str.printer_page_width_____d_X__d___pixels
push dword [0x1007ba8c]
call fcn.1005eb10
movd xmm0, dword [0x1007b080]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [esp + 0x48]
cvttss2si ecx, xmm0
movd xmm0, dword [0x1007beac]
cvtdq2ps xmm0, xmm0
mov dword [0x1007b080], ecx
divss xmm0, dword [esp + 0x4c]
cvttss2si eax, xmm0
push eax
push ecx
push str.after_scale__printer_page_width_____d_X__d___pixels
push dword [0x1007ba8c]
mov dword [0x1007beac], eax
call fcn.1005eb10
mov edi, dword [sym.imp.gdiplus.dll_GdipAlloc]
add esp, 0x20
push 8
call edi
mov esi, eax
test esi, esi
je 0x1000649a
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push dword [0x1007bc98]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi], eax
jmp 0x1000649c
xor esi, esi
push 8
mov dword [0x1007bebc], esi
call edi
mov esi, eax
test esi, esi
je 0x100064c5
push esi
push 0
push 0x10063f4c
mov dword [esi], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFontFamilyFromName]
mov dword [esi + 4], eax
jmp 0x100064c7
xor esi, esi
push 8
mov dword [0x1007beb8], esi
call edi
mov esi, eax
test esi, esi
je 0x10006511
mov eax, dword [0x1007beb8]
mov dword [esp + 0x3c], 0
test eax, eax
je 0x100064ec
mov eax, dword [eax]
jmp 0x100064ee
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
push 3
push 0
push ecx
mov dword [esp], 0x41280000
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFont]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi], eax
jmp 0x10006513
xor esi, esi
push 8
mov dword [0x1007beb4], esi
call edi
mov esi, eax
test esi, esi
je 0x1000654b
push 0x1007bee8
call dword [sym.imp.gdiplus.dll_GdipStringFormatGetGenericTypographic]
mov dword [0x1007beec], eax
push esi
mov dword [esi], 0
push dword [0x1007bee8]
call dword [sym.imp.gdiplus.dll_GdipCloneStringFormat]
mov dword [esi + 4], eax
jmp 0x1000654d
xor esi, esi
lea eax, [esp + 0x3c]
mov dword [0x1007beb0], esi
push eax
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipGetStringFormatFlags]
test eax, eax
je 0x10006567
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [0x1007beb0]
or eax, 0x1800
push eax
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatFlags]
test eax, eax
je 0x10006586
mov dword [esi + 4], eax
push 0x18
mov dword [0x1007bea8], 0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x100065af
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
jmp 0x100065b1
xor esi, esi
push dword [0x1007b080]
mov ecx, esi
push 0
push 0x1007bec0
call fcn.10004230
push esi
mov dword [0x1007bea4], eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [0x1007bea4]
add esp, 4
mov edx, 1
call fcn.100061a0
mov ecx, dword [ebp + 0xc]
call fcn.10005ee0
mov esi, dword [0x1007bebc]
test esi, esi
je 0x10006605
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push esi
call dword [sym.imp.gdiplus.dll_GdipFree]
push dword [0x1007bc98]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret