Function at 0x41d190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4fa0a8]
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 - 0x28], ebx
cmp dword [edi + 0x90], 0
je 0x41d469
cmp dword [edi + 0x8c], 0
je 0x41d400
cmp byte [edi + 0xb4], 0
movups xmm0, xmmword [ebp + 0xc]
movups xmmword [ebp - 0x18], xmm0
je 0x41d388
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x41d231
lea ecx, [ebp - 0x64]
xorps xmm0, xmm0
push ecx
push 0x18
push eax
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x60]
je 0x41d312
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x5c]
je 0x41d312
push dword [edi + 0xbc]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0xbc], 0
push dword [edi + 0xb8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41d388
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [edi + 0xb8]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x2c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push edx
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x4c], vtable.Gdiplus::Bitmap.0
push 0
push eax
push ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x48], 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 - 0x3c], eax
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push 0
push esi
mov esi, dword [ebp - 0x3c]
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
push ecx
mov edx, 1
lea ecx, [ebp - 0x4c]
call fcn.0041b9a0
add esp, 4
mov dword [edi + 0xbc], eax
push esi
test eax, eax
je 0x41d372
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x48]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
push dword [ebp - 0x24]
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0xbc]
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 - 0x28]
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 0x41d486
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x48]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
push dword [ebp - 0x24]
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x90]
mov dword [ebp - 0x24], 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 - 0x24]
mov ecx, dword [ebp + 0x10]
sub eax, ecx
push eax
push esi
push ecx
push edi
push dword [ebp - 0x28]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x41d486
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 - 0x28]
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 - 0x28]
call dword [sym.imp.GDI32.dll_StretchBlt]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x41d486
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x41d486
movups xmm0, xmmword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
push ecx
push ebx
movups xmmword [eax], xmm0
call fcn.0041ff50
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a9dd
mov esp, ebp
pop ebp
ret 0x24