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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x34], edi
cmp dword [edi + 4], esi
je 0x4863de
cmp dword [edi + 8], esi
je 0x4863de
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push dword [ebp + 8]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ecx, dword [edi + 8]
mov ebx, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x4861e5
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4861db
call fcn.00463900
mov ebx, eax
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 8]
call fcn.00463927
mov esi, eax
movaps xmm0, xmmword [0x6a1ba0]
movzx eax, byte [ebp + 0x18]
movups xmmword [esp + 0x38], xmm0
and dword [esp + 0x78], 0
movaps xmm0, xmmword [0x6a1be0]
movups xmmword [esp + 0x48], xmm0
and dword [esp + 0x7c], 0
xorps xmm0, xmm0
and dword [esp + 0x94], 0
movups xmmword [esp + 0x58], xmm0
and dword [esp + 0x14], 0
movaps xmm0, xmmword [0x6a1ba0]
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x98], 0x3f800000
movd xmm0, eax
lea eax, [esp + 0x14]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x6a1b78]
movss dword [esp + 0x84], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x88], xmm0
call dword [sym.imp.gdiplus.dll_GdipCreateImageAttributes]
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x40]
push eax
push 1
push 1
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipSetImageAttributesColorMatrix]
mov ecx, dword [esp + 0x18]
test eax, eax
mov edx, dword [edi + 0x10]
cmovne ecx, eax
mov dword [esp + 0x18], ecx
test edx, edx
jne 0x486390
mov edx, dword [edi + 0x1c]
mov ebx, dword [ebp + 0xc]
test edx, edx
je 0x4862dd
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
sub ecx, eax
push ecx
push ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
push edx
push dword [edi + 0x18]
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push dword [edi + 0x14]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], edx
push eax
push dword [edi + 8]
call fcn.00463957
mov edx, dword [ebx]
mov edi, dword [edi + 0x1c]
mov esi, dword [ebx + 8]
mov ebx, esi
mov ecx, dword [ebp + 0xc]
sub ebx, edx
cmp dword [esp + 0x10], ebx
lea eax, [edx + edi]
cmovl ebx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push ecx
push ecx
mov dword [esp + 0x28], ecx
sub esi, dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
sub esi, edx
sub esi, edi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
sub eax, ecx
lea ecx, [esp + 0x1c]
push ecx
sub ebx, dword [esi + 0x20]
push ecx
push eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x40]
mov eax, dword [esi + 0x14]
sub ebx, edi
push ebx
push dword [esi + 0x18]
add eax, edi
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
call fcn.00463957
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4863ca
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 8]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, eax
mov dword [esp + 0x20], eax
push ecx
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], ecx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ecx
push edx
push dword [esi + 0x18]
sub eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
jmp 0x4863c1
mov ecx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
push ecx
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebx
push 0
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], ebx
push eax
push dword [edi + 8]
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x54]
call fcn.00463957
push dword [esp + 0x14]
call dword [sym.imp.gdiplus.dll_GdipDisposeImageAttributes]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14