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

Disassembly:
fld dword [esp + 0x14]
fcomp dword [0x10095530]
sub esp, 0x98
push esi
mov esi, ecx
fnstsw ax
test ah, 0x41
je 0x100218b7
fld dword [esp + 0xac]
fcomp dword [0x10095530]
fnstsw ax
test ah, 0x41
je 0x100218b7
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
push edx
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorInterpolated_float__float__enum_CxImage::InterpolationMethod__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
mov ecx, dword [eax]
mov eax, dword [esp + 0xa0]
pop esi
mov dword [eax], ecx
add esp, 0x98
ret 0x20
fld dword [esp + 0xb0]
fmul dword [0x10095508]
fld dword [esp + 0xac]
fmul dword [0x10095508]
push ebx
push ebp
push edi
push ecx
fstp dword [esp + 0x14]
fld st(0)
fadd dword [esp + 0xb8]
fstp dword [esp]
fld dword [esp + 0x14]
fadd dword [esp + 0xb4]
push ecx
fstp dword [esp]
fld dword [esp + 0xbc]
fsub st(1)
push ecx
fstp dword [esp]
push ecx
lea ecx, [esp + 0x78]
fstp st(0)
fld dword [esp + 0xc0]
fsub dword [esp + 0x20]
fstp dword [esp]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_float__float__float__float_
fld dword [esp + 0x68]
fadd dword [0x10095508]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x6c]
fadd dword [0x10095508]
mov ebp, eax
mov dword [esp + 0x40], ebp
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x70]
fadd dword [0x10095508]
mov edi, eax
mov dword [esp + 0x20], edi
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x74]
fadd dword [0x10095508]
mov ebx, eax
mov dword [esp + 0x28], ebx
call sub.MSVCRT.dll__ftol
fld dword [esp + 0xbc]
fcomp dword [0x10095530]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fnstsw ax
test ah, 0x41
jne 0x10021e0c
fld dword [esp + 0xb8]
fcomp dword [0x10095530]
fnstsw ax
test ah, 0x41
jne 0x10021e0c
lea ecx, [esp + 0x78]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_void_
lea ecx, [esp + 0x48]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_void_
fild dword [esp + 0x20]
fild dword [esp + 0x40]
push ecx
fstp dword [esp + 0x14]
fld st(0)
fadd dword [0x10095508]
fstp dword [esp]
fld dword [esp + 0x14]
fadd dword [0x10095508]
push ecx
fstp dword [esp]
push ecx
fsub dword [0x10095508]
fstp dword [esp]
fld dword [esp + 0x1c]
fsub dword [0x10095508]
push ecx
lea ecx, [esp + 0x68]
fstp dword [esp]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_float__float__float__float_
lea edx, [esp + 0x88]
push eax
push edx
lea ecx, [esp + 0x70]
call sym.YunImage.fne_public:_class_CxRect2___thiscall_CxRect2::CrossSection_class_CxRect2_const__
fild dword [esp + 0x30]
fild dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
fstp dword [esp + 0x10]
mov edx, dword [eax + 4]
fld st(0)
fadd dword [0x10095508]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 8]
push ecx
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 0xc]
fstp dword [esp]
fld dword [esp + 0x14]
fadd dword [0x10095508]
push ecx
mov dword [esp + 0x8c], edx
fstp dword [esp]
push ecx
fsub dword [0x10095508]
fstp dword [esp]
fld dword [esp + 0x1c]
fsub dword [0x10095508]
push ecx
lea ecx, [esp + 0x68]
fstp dword [esp]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_float__float__float__float_
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x70]
call sym.YunImage.fne_public:_class_CxRect2___thiscall_CxRect2::CrossSection_class_CxRect2_const__
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x78]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x54], edx
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Width_void_const
fstp dword [esp + 0x28]
lea ecx, [esp + 0x78]
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Height_void_const
fstp dword [esp + 0x88]
lea ecx, [esp + 0x48]
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Width_void_const
fstp dword [esp + 0x10]
lea ecx, [esp + 0x48]
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Height_void_const
fstp dword [esp + 0x58]
fld dword [esp + 0x88]
fmul dword [esp + 0x28]
lea eax, [esp + 0x24]
mov edi, dword [esp + 0xc8]
lea ecx, [esp + 0x14]
mov ebp, dword [esp + 0xc4]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x48]
fstp dword [esp]
push edi
push ebp
push ecx
push edx
push eax
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
fld dword [esp + 0x10]
fmul dword [esp + 0x88]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push ecx
lea eax, [esp + 0x48]
mov ecx, esi
fstp dword [esp]
push edi
push ebp
push edx
push ebx
push eax
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
fld dword [esp + 0x58]
fmul dword [esp + 0x28]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push ecx
lea ecx, [esp + 0x48]
fstp dword [esp]
push edi
push ebp
push edx
push eax
push ecx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
fld dword [esp + 0x60]
fmul dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push ecx
push edx
push ecx
lea ecx, [esp + 0x48]
fstp dword [esp]
push edi
push ebp
push eax
push ebx
push ecx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
mov edx, dword [esp + 0x40]
lea eax, [edx + 1]
cmp eax, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
jge 0x10021c9f
jmp 0x10021c1d
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edi
push ebp
push edx
push eax
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push edi
push ebp
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, ebx
mov dword [esp + 0x2c], eax
jl 0x10021c19
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x20], eax
jge 0x10021d3d
jmp 0x10021cbe
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x50]
push ecx
push edi
push ebp
push eax
lea eax, [esp + 0x64]
push edx
push eax
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push edi
push ebp
push eax
lea ecx, [esp + 0x58]
push ebx
push ecx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
push eax
mov ecx, esi
call sym.YunImage.fne_protected:_void___thiscall_CxImage::AddAveragingCont_struct_tagRGBQUAD_const___float__float___float___float___float__
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x10021cba
mov eax, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jge 0x10021f99
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jge 0x10021df6
jmp 0x10021d69
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
lea edx, [esp + 0x50]
push eax
push edx
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorWithOverflow_long_int__long_int__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3a]
and ecx, 0xff
mov edx, dword [esp + 0x39]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
and eax, 0xff
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3b]
and eax, 0xff
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
inc eax
fadd dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
jl 0x10021d61
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x10021d4f
jmp 0x10021f99
lea ecx, [esp + 0x48]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_void_
lea ecx, [esp + 0x58]
call sym.YunImage.fne_public:_void___thiscall_CxPoint2::constructor_void_
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
cmp edi, eax
jg 0x10021f99
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
jg 0x10021f84
fild dword [esp + 0x20]
fld st(0)
fadd dword [0x10095508]
fstp dword [esp + 0x34]
fsub dword [0x10095508]
fstp dword [esp + 0x10]
fild dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push ecx
fld st(0)
fadd dword [0x10095508]
fstp dword [esp]
push edx
push ecx
fsub dword [0x10095508]
lea ecx, [esp + 0x88]
fstp dword [esp]
call sym.YunImage.fne_public:_void___thiscall_CxRect2::constructor_float__float__float__float_
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x70]
call sym.YunImage.fne_public:_class_CxRect2___thiscall_CxRect2::CrossSection_class_CxRect2_const__
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x58], edx
call sym.YunImage.fne_public:_class_CxPoint2___thiscall_CxRect2::Center_void_
mov edx, dword [esp + 0xc8]
mov ecx, eax
push edx
mov edx, dword [esp + 0xc8]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x60], eax
mov ecx, dword [ecx + 4]
push edx
push ecx
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call sym.YunImage.fne_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColorInterpolated_float__float__enum_CxImage::InterpolationMethod__enum_CxImage::OverflowMethod__struct_tagRGBQUAD__const_
mov edi, dword [eax]
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], edi
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Surface_void_const
mov ecx, dword [esp + 0x3a]
mov edx, dword [esp + 0x39]
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x28], ecx
and edi, 0xff
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x3b]
and eax, 0xff
inc ebp
fmul st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fild dword [esp + 0x28]
mov dword [esp + 0x28], edi
fmul st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fild dword [esp + 0x28]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fstp st(0)
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
jle 0x10021e54
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x10021e2e
lea ecx, [esp + 0x68]
call sym.YunImage.fne_public:_float___thiscall_CxRect2::Surface_void_const
fld dword [esp + 0x1c]
fdiv st(1)
pop edi
pop ebp
pop ebx
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fdiv st(1)
fstp dword [esp + 0xc]
fld dword [esp + 8]
fdiv st(1)
fstp dword [esp + 8]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x10095580]
fnstsw ax
test ah, 0x41
jne 0x10021fea
mov dword [esp + 0x10], 0x437f0000
jmp 0x10022003
fld dword [esp + 0x10]
fcomp dword [0x10095560]
fnstsw ax
test ah, 1
je 0x10022003
mov dword [esp + 0x10], 0
fld dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0xc]
fcomp dword [0x10095580]
mov byte [esp + 0x2e], al
fnstsw ax
test ah, 0x41
jne 0x1002202b
mov dword [esp + 0xc], 0x437f0000
jmp 0x10022044
fld dword [esp + 0xc]
fcomp dword [0x10095560]
fnstsw ax
test ah, 1
je 0x10022044
mov dword [esp + 0xc], 0
fld dword [esp + 0xc]
call sub.MSVCRT.dll__ftol
fld dword [esp + 8]
fcomp dword [0x10095580]
mov byte [esp + 0x2d], al
fnstsw ax
test ah, 0x41
jne 0x1002206c
mov dword [esp + 8], 0x437f0000
jmp 0x10022085
fld dword [esp + 8]
fcomp dword [0x10095560]
fnstsw ax
test ah, 1
je 0x10022085
mov dword [esp + 8], 0
fld dword [esp + 8]
call sub.MSVCRT.dll__ftol
mov ecx, esi
mov byte [esp + 0x2c], al
call sym.YunImage.fne_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x100220d6
fld dword [esp + 0x18]
fcom dword [0x10095580]
fnstsw ax
test ah, 0x41
jne 0x100220b8
fstp st(0)
fld dword [0x10095580]
jmp 0x100220cd
fcom dword [0x10095560]
fnstsw ax
test ah, 1
je 0x100220cd
fstp st(0)
fld dword [0x10095560]
call sub.MSVCRT.dll__ftol
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x2c]
pop esi
mov dword [eax], ecx
add esp, 0x98
ret 0x20