Function at 0x4898c0
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x4acd94
call fcn.004a7fc9
mov dword [ebp - 0x34], edx
mov ebx, ecx
xor edi, edi
mov ecx, 0x4ba6d0
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], edi
call fcn.0046512e
push 0x10
mov dword [ebp - 4], edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x48991a
lea eax, [edi + 4]
mov dword [edi], 0x405bbc
and dword [eax], esi
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
jmp 0x48991c
xor edi, edi
mov dword [ebp - 0x20], edi
test edi, edi
je 0x489c0e
mov eax, dword [edi + 8]
and dword [edi + 8], 0
test eax, eax
je 0x4899ac
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4bc1e4]
mov ecx, edi
call esi
and dword [ebp - 0x20], 0
lea edx, [ebp - 0x24]
mov ecx, ebx
call fcn.0048974e
test eax, eax
jns 0x489966
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 0x4b4b98
jmp 0x489c1d
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.0046560d
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x48998d
mov dword [ebp - 0x4c], 0x80070057
lea eax, [ebp - 0x4c]
push 0x4b4b98
jmp 0x489c1d
mov eax, dword [edi + 8]
and dword [edi + 8], 0
test eax, eax
je 0x4899ac
mov dword [ebp - 0x50], 0x80070057
lea eax, [ebp - 0x50]
push 0x4b4b98
jmp 0x489c1d
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x70], ebx
cmp dword [eax], 0
jne 0x4899eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4899d9
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x4899eb
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push 0x4b4b98
jmp 0x489c1d
lea eax, [ebp - 0x14]
mov edx, ebx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0046523b
mov dword [ebp - 0x6c], eax
test eax, eax
jns 0x489a13
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push 0x4b4b98
jmp 0x489c1d
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x489a3b
mov dword [ebp - 0x5c], 0x80004005
lea eax, [ebp - 0x5c]
push 0x4b4b98
jmp 0x489c1d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x489b27
push eax
push dword [ebp - 0x18]
mov dword [ebx], 8
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x489a7d
mov dword [ebp - 0x60], 0x80004005
lea eax, [ebp - 0x60]
push 0x4b4b98
jmp 0x489c1d
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x489a91
mov eax, dword [ecx]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
jmp 0x489b1b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489aaa
push 0x58
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x18], 0x60
jmp 0x489ab0
push 0x60
pop eax
mov dword [ebp - 0x18], eax
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x489acb
mov dword [edi + 8], eax
push dword [ebp - 0x28]
push 0x9ec
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489af2
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x18], eax
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x489b0a
mov dword [edi + 8], eax
push dword [ebp - 0x18]
push 0x9ec
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebx + 8], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x14
call dword [sym.imp.MFC42u.dll_operatornew]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
pop ecx
test ebx, ebx
jne 0x489b4d
mov dword [ebp - 0x64], 0x8007000e
lea eax, [ebp - 0x64]
push 0x4b4b98
jmp 0x489c1d
push 3
pop eax
mov word [ebx], ax
and dword [ebx + 4], 0
or dword [ebx + 0xc], 0xffffffff
push 0xc
mov dword [ebx + 0x10], 0x20
call dword [sym.imp.MFC42u.dll_operatornew]
pop ecx
mov ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x489b88
mov dword [ebp - 0x68], 0x8007000e
lea eax, [ebp - 0x68]
push 0x4b4b98
jmp 0x489c1d
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
mov dword [ecx], 0x20
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
and dword [ecx + 8], 0
mov dword [eax], edi
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x489bef
mov edi, dword [ebp - 0x6c]
test esi, esi
je 0x489c04
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call sub.msvcrt.dll_free
pop ecx
mov eax, edi
call fcn.004a7f2e
ret 0x18
mov dword [ebp - 0x44], 0x80070057
lea eax, [ebp - 0x44]
push 0x4b4b98
push eax
call sub.msvcrt.dll__CxxThrowException
int3