Function at 0x414ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x44]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x414eef
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x414f08
mov dword [esi + 8], eax
mov al, byte [edi + 0x18]
cmp al, 0xff
je 0x415043
fld1
movzx ecx, al
fst dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
fldz
lea edx, [esp + 0x20]
fst dword [esp + 0x2c]
push edx
fst dword [esp + 0x34]
mov dword [esp + 0x24], ebx
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x84]
fstp dword [esp + 0x88]
fst dword [esp + 0x44]
fst dword [esp + 0x5c]
fstp dword [esp + 0x8c]
fild dword [esp + 0x20]
fdiv qword [0x45e208]
fstp dword [esp + 0x74]
call sub.gdiplus.dll_GdipCreateImageAttributes
mov ecx, dword [esp + 0x20]
push ebx
push ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
push 1
push 1
push ecx
call sub.gdiplus.dll_GdipSetImageAttributesColorMatrix
cmp eax, ebx
je 0x414fc7
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x414fe0
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x414ffd
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x20]
push 2
push edi
push ecx
mov ecx, dword [esi + 4]
mov esi, dword [ebp + 8]
push ebx
push ebx
push edx
mov edx, dword [esi]
push eax
push ebx
push ebx
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x415030
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDisposeImageAttributes
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x41505c
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x415079
mov dword [esi + 8], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push 2
push edi
push edx
mov edx, dword [esi + 4]
mov esi, dword [ebp + 8]
push ebx
push ebx
push eax
mov eax, dword [esi]
push ecx
push ebx
push ebx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x4150a8
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4