Function at 0x48b0aa
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x4aa792
call fcn.00445f14
mov dword [ebp - 0x24], edx
mov ebx, ecx
xor edi, edi
mov ecx, 0x4b8568
mov esi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], edi
call fcn.004644a0
push 0x10
mov dword [ebp - 4], edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x48b104
lea eax, [edi + 4]
mov dword [edi], 0x405bb0
and dword [eax], esi
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
jmp 0x48b106
xor edi, edi
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x48b3f8
mov eax, dword [edi + 8]
and dword [edi + 8], 0
test eax, eax
je 0x48b196
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ba1e0]
mov ecx, edi
call esi
and dword [ebp - 0x2c], 0
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.0048af38
test eax, eax
jns 0x48b150
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push 0x4b2498
jmp 0x48b407
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.00464983
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x48b177
mov dword [ebp - 0x54], 0x80070057
lea eax, [ebp - 0x54]
push 0x4b2498
jmp 0x48b407
mov eax, dword [edi + 8]
and dword [edi + 8], 0
test eax, eax
je 0x48b196
mov dword [ebp - 0x58], 0x80070057
lea eax, [ebp - 0x58]
push 0x4b2498
jmp 0x48b407
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x74], ebx
cmp dword [eax], 0
jne 0x48b1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48b1c3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x48b1d5
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push 0x4b2498
jmp 0x48b407
lea eax, [ebp - 0x20]
mov edx, ebx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004645b1
mov dword [ebp - 0x34], eax
test eax, eax
jns 0x48b1fd
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push 0x4b2498
jmp 0x48b407
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x48b225
mov dword [ebp - 0x64], 0x80004005
lea eax, [ebp - 0x64]
push 0x4b2498
jmp 0x48b407
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x48b311
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 0x48b267
mov dword [ebp - 0x68], 0x80004005
lea eax, [ebp - 0x68]
push 0x4b2498
jmp 0x48b407
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48b27b
mov eax, dword [ecx]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
jmp 0x48b305
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x48b294
push 0x58
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x18], 0x60
jmp 0x48b29a
push 0x60
pop eax
mov dword [ebp - 0x18], eax
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x48b2b5
mov dword [edi + 8], eax
push dword [ebp - 0x38]
push 0x9ec
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x48b2dc
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x18], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x48b2f4
mov dword [edi + 8], eax
push dword [ebp - 0x18]
push 0x9ec
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebx + 8], eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x14
call dword [sym.imp.MFC42u.dll_operatornew]
mov ebx, eax
mov dword [ebp - 0x44], ebx
pop ecx
test ebx, ebx
jne 0x48b337
mov dword [ebp - 0x6c], 0x8007000e
lea eax, [ebp - 0x6c]
push 0x4b2498
jmp 0x48b407
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 - 0x40], ecx
test ecx, ecx
jne 0x48b372
mov dword [ebp - 0x70], 0x8007000e
lea eax, [ebp - 0x70]
push 0x4b2498
jmp 0x48b407
mov eax, dword [ebp - 0x3c]
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 - 0x28]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x48b3d9
mov edi, dword [ebp - 0x34]
test esi, esi
je 0x48b3ee
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call sub.msvcrt.dll_free
pop ecx
mov eax, edi
call fcn.004a53e7
ret 0x18
mov dword [ebp - 0x4c], 0x80070057
lea eax, [ebp - 0x4c]
push 0x4b2498
push eax
call sub.msvcrt.dll__CxxThrowException
int3