Function at 0x4220e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], ebx
cmp dword [edi + 0x90], 0
je 0x4223b8
cmp dword [edi + 0x8c], 0
je 0x42234f
cmp byte [edi + 0xb8], 0
movups xmm0, xmmword [ebp + 0xc]
movups xmmword [ebp - 0x18], xmm0
je 0x4222d7
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x422181
lea ecx, [ebp - 0x58]
xorps xmm0, xmm0
push ecx
push 0x18
push eax
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x54]
je 0x422260
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x50]
je 0x422260
push dword [edi + 0xc0]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0xc0], 0
push dword [edi + 0xbc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4222d7
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [edi + 0xbc]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push edx
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x40], vtable.Gdiplus::Bitmap.0
push 0
push eax
push ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov eax, dword [ebp - 0x20]
push 7
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0
push 0
push esi
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
push ecx
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.00420890
add esp, 4
mov dword [edi + 0xc0], eax
push esi
test eax, eax
je 0x4222c0
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0xc0]
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp + 0x18]
mov ebx, eax
mov edi, dword [ebp + 0x10]
sub esi, edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
sub ecx, edx
mov dword [ebp - 0x1c], 0x1ff0000
push dword [ebp - 0x1c]
push esi
push ecx
push 0
push 0
push dword [ebp - 0x20]
push esi
push ecx
push edi
push edx
push dword [ebp - 0x24]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4223d5
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x90]
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp + 0x14]
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov eax, 0x7fff
mov edx, dword [ebp + 0x20]
sub esi, edi
mov ecx, dword [ebp + 0x1c]
cmp esi, eax
mov dword [ebp - 0x1c], 0x1ff0000
push dword [ebp - 0x1c]
cmovg esi, eax
mov eax, dword [ebp + 0x28]
sub eax, edx
push eax
mov eax, dword [ebp + 0x24]
sub eax, ecx
push eax
mov eax, dword [ebp + 0x18]
push edx
push ecx
push dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
sub eax, ecx
push eax
push esi
push ecx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4223d5
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x90]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call edi
push 4
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
sub ecx, edx
push 0xcc0020
push ecx
mov ecx, dword [ebp + 0x24]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x18]
push ebx
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_StretchBlt]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4223d5
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x4223d5
movups xmm0, xmmword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
push ecx
push ebx
movups xmmword [eax], xmm0
call fcn.00424570
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69a0
mov esp, ebp
pop ebp
ret 0x24