Function at 0x45d280
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x24]
push ebx
sub esp, 0x34
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.gdiplus.dll_GdipSaveImageToFile
sub esp, 0x10
mov ebx, eax
call fcn.0049bde0
mov dword [eax], 0x4a76df
mov dword [eax + 4], 0x21c
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], str.Expected__d__got__d_n
mov dword [esp], eax
call fcn.004508d0
mov dword [ebp - 0x24], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x21808
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14
mov dword [esp], 0xa
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
sub esp, 0x18
mov ebx, eax
call fcn.0049bde0
mov dword [eax], 0x4a76df
mov dword [eax + 4], 0x220
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Expected__d__got__d_n
call fcn.004508d0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45d631
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.gdiplus.dll_GdipSaveImageToFile
sub esp, 0x10
mov ebx, eax
call fcn.0049bde0
mov dword [eax], 0x4a76df
mov dword [eax + 4], 0x226
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str.Expected__d__got__d_n
call fcn.004508d0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.a.bmp
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.gdiplus.dll_GdipSaveImageToFile
sub esp, 0x10
mov ebx, eax
call fcn.0049bde0
mov dword [eax], 0x4a76df
mov dword [eax + 4], 0x229
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str.Expected__d__got__d_n
call fcn.004508d0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sub.gdiplus.dll_GdipGetImageEncodersSize
sub esp, 8
test eax, eax
jne 0x45d5e0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45d5e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.gdiplus.dll_GdipAlloc
sub esp, 4
mov ebx, eax
test eax, eax
je 0x45d5e0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.gdiplus.dll_GdipGetImageEncoders
sub esp, 0xc
test eax, eax
jne 0x45d5e2
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.a.bmp
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.gdiplus.dll_GdipSaveImageToFile
sub esp, 0x10
mov edi, eax
mov eax, 0x236
call fcn.004500d0
xor eax, eax
test edi, edi
mov dword [esp + 0xc], edi
sete al
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], str.Expected__d__got__d_n
call fcn.004508d0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.gdiplus.dll_GdipDisposeImage
mov dword [ebp - 0x24], 0
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], str.a.bmp
call sub.gdiplus.dll_GdipLoadImageFromFile
sub esp, 8
mov esi, eax
mov eax, 0x23d
call fcn.004500d0
xor eax, eax
test esi, esi
mov dword [esp + 0xc], esi
sete al
mov dword [esp + 8], 0
mov dword [esp + 4], str.Expected__d__got__d_n
mov dword [esp], eax
call fcn.004508d0
test esi, esi
jne 0x45d5e2
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.gdiplus.dll_GdipGetImageDimension
sub esp, 0xc
test eax, eax
jne 0x45d5e2
mov eax, 0x243
call fcn.004500d0
fld dword [ebp - 0x18]
xor eax, eax
mov dword [esp + 4], 0x4a79a0
fst qword [esp + 0x10]
fld dword [0x4ac704]
fst qword [esp + 8]
fsubrp st(1)
fabs
fld qword [0x4ac708]
fcompi st(1)
fstp st(0)
seta al
mov dword [esp], eax
call fcn.004508d0
mov eax, 0x244
call fcn.004500d0
fld dword [ebp - 0x14]
xor eax, eax
mov dword [esp + 4], 0x4a79a0
fst qword [esp + 0x10]
fld dword [0x4ac710]
fst qword [esp + 8]
fsubrp st(1)
fabs
fld qword [0x4ac708]
fcompi st(1)
fstp st(0)
seta al
mov dword [esp], eax
call fcn.004508d0
jmp 0x45d5e2
xor ebx, ebx
mov dword [esp], ebx
call sub.gdiplus.dll_GdipFree
mov eax, dword [ebp - 0x24]
sub esp, 4
test eax, eax
je 0x45d5ff
mov dword [esp], eax
call sub.gdiplus.dll_GdipDisposeImage
sub esp, 4
call fcn.0049bde0
mov dword [eax], 0x4a76df
mov dword [eax + 4], 0x24a
mov dword [esp], 0x4a9030
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp + 4], str.Delete_failed._n
mov dword [esp], eax
call fcn.004508d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret