Function at 0x42ebb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4c86e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x4cd500
mov dword [ebp - 0x60], vtable.ATL::CImage.0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], al
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
add dword [0x4cd518], esi
push 0x4cd500
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x10]
push esi
push eax
push eax
lea ecx, [esi + 0x1f]
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00402c70
mov edx, dword [ebp - 0x3c]
add dword [ebp - 0x38], esi
test edx, edx
jne 0x42ec68
call fcn.00402c10
mov ecx, dword [ebp - 0x5c]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2bd8]
mov eax, dword [esi + 0x2bdc]
add esi, 0x2bcc
push ecx
push 0
push eax
push ecx
push edx
xor ebx, ebx
mov dword [ebp - 0x14], edx
call fcn.0040c330
call dword [0x4c99c8]
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 0x18], eax
je 0x42ecdd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
add ebx, 1
cmp ebx, 0x3fffffff
jg 0x42ecdd
lea eax, [ebx + ebx]
call fcn.00484690
mov esi, esp
test esi, esi
je 0x42ecdd
mov edx, dword [ebp - 0x18]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push edx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42ecdf
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x78], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x1c], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x20], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], esi
push 4
push esi
call sub.gdiplus.dll_GdipSetSmoothingMode
xor ebx, ebx
cmp eax, ebx
je 0x42ed28
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [ebp - 0x24], eax
push 0xff000000
push 0xffffffffffffffff
push 1
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x28]
push ebx
push edx
call sub.gdiplus.dll_GdipSetImageAttributesColorKeys
cmp eax, ebx
je 0x42ed55
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42ed69
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x14], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x42ed84
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push 0
push 0
push edx
push 2
push ebx
push ecx
push 0
push 0
add eax, 0xfffffffa
push eax
push eax
push 3
push 3
push edi
push esi
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x42edb1
mov dword [ebp - 0x64], eax
sub dword [ebp - 0x38], 1
jne 0x42edd4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x3c]
call fcn.00402c40
mov dword [ebp - 0x3c], 0
push str..png
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00406100
mov ecx, dword [eax]
add esp, 0xc
lea ebx, [ebp - 0x60]
call fcn.0042a0a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ee12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str..png
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00406100
mov edi, dword [eax]
add esp, 0xc
test edi, edi
je 0x42ee71
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
add ebx, 1
cmp ebx, 0x3fffffff
jg 0x42ee6d
lea eax, [ebx + ebx]
call fcn.00484690
mov esi, esp
test esi, esi
je 0x42ee6d
mov eax, dword [ebp - 0x18]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42ee6f
xor eax, eax
mov edi, eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42ee9e
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov edx, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x42eea0
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42eebf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov edx, dword [esi + 4]
push ecx
push edx
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
cmp eax, ebx
je 0x42eed6
mov dword [esi + 8], eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
mov eax, edi
call fcn.0040cc90
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push str..png
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00406100
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ef2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.gdiplus.dll_GdipDisposeImageAttributes
mov edx, dword [ebp - 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdiplus.dll_GdipDisposeImage
lea ecx, [ebp - 0x60]
call fcn.00428c90
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e440
mov esp, ebp
pop ebp
ret 0x10