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

Disassembly:
push 0xffffffffffffffff
push 0x100e3c4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
fld dword [esp + 0x6c]
push ebx
fcomp qword [0x100ee6f0]
mov ebx, ecx
push ebp
mov dword [esp + 8], ebx
fnstsw ax
test ah, 0x41
jne 0x100ace89
mov dword [esp + 0x74], 0x3f800000
fld dword [esp + 0x74]
fcomp qword [0x100f8c28]
fnstsw ax
test ah, 5
jp 0x100acea2
mov dword [esp + 0x74], 0
mov eax, dword [ebx + 0x78]
xor ebp, ebp
cmp eax, ebp
je 0x100ad070
mov ecx, dword [ebx + 0x7c]
sub ecx, eax
mov eax, 0x66666667
imul ecx
push esi
mov esi, dword [esp + 0x74]
sar edx, 4
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, edi
mov dword [esp + 0x14], edi
jae 0x100ad06e
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x7c]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*8]
mov dword [eax + 0x1c], edx
mov al, byte [esp + 0x80]
test al, al
je 0x100ad06e
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edx, dword [eax]
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x74], ebp
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x70], 2
mov dword [esp + 0x30], 0x100ec508
je 0x100acf45
dec dword [eax]
mov edx, dword [esp + 0x38]
cmp dword [edx], ebp
jne 0x100acf45
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x100ad054
mov al, byte [ebx + 0x59]
test al, al
je 0x100ad083
push ebp
push ebp
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Technique____thiscall_Ogre::Material::getTechnique_unsigned_short_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Pass____thiscall_Ogre::Technique::getPass_unsigned_short_int_]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::SharedPtr_class_Ogre::GpuProgramParameters____thiscall_Ogre::Pass::getFragmentProgramParameters_void_]
fld dword [0x100ecb9c]
mov eax, dword [sym.imp.OgreMain.dll_class_Ogre::Vector4_const_Ogre::Vector4::ZERO]
mov edx, dword [eax]
mov ebp, dword [ebx + 0x78]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0xc]
xor esi, esi
mov byte [esp + 0x70], 3
mov dword [esp + 0x48], eax
xor edi, edi
jmp 0x100acfb0
test ebp, ebp
je 0x100acfea
mov ecx, dword [ebx + 0x7c]
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x100acfea
cmp edi, 0x78
jae 0x100acfea
mov ecx, dword [ebx + 0x78]
mov edx, dword [edi + ecx + 0x1c]
lea eax, [edi + ecx + 0x1c]
mov dword [esp + esi*4 + 0x3c], edx
fadd dword [eax]
inc esi
add edi, 0x28
jmp 0x100acfb0
push str.blendFactor
fstp dword [esp + 0x4c]
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x78], 4
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::GpuProgramParameters::setNamedConstant_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_Ogre::Vector4_const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x70], 2
mov dword [esp + 0x18], 0x100eebb4
je 0x100ad050
dec dword [eax]
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
jne 0x100ad050
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
push 1
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Material::compile_bool_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
pop edi
pop esi
mov ecx, dword [esp + 0x60]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc
mov al, byte [ebx + 0x5a]
test al, al
je 0x100ad0be
push esi
push ebp
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Technique____thiscall_Ogre::Material::getTechnique_unsigned_short_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Pass____thiscall_Ogre::Technique::getPass_unsigned_short_int_]
push ebp
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TextureUnitState____thiscall_Ogre::Pass::getTextureUnitState_unsigned_short_int_]
mov ecx, dword [esp + 0x7c]
push 0x3f800000
push ecx
push ebp
push 4
push 1
push 2
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::TextureUnitState::setAlphaOperation_enum_Ogre::LayerBlendOperationEx__enum_Ogre::LayerBlendSource__enum_Ogre::LayerBlendSource__float__float__float_]
jmp 0x100ad050
push ebp
push ebp
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Technique____thiscall_Ogre::Material::getTechnique_unsigned_short_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Pass____thiscall_Ogre::Technique::getPass_unsigned_short_int_]
push ebp
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::TextureUnitState____thiscall_Ogre::Pass::getTextureUnitState_unsigned_short_int_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____thiscall_Ogre::TextureUnitState::getTextureName_void_const]
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
fld dword [0x100ecb9c]
xor esi, esi
cmp edi, 4
mov byte [esp + 0x70], 5
jl 0x100ad1a6
mov edi, 2
xor ecx, ecx
cmp ecx, 0x78
jae 0x100ad1d9
mov edx, dword [ebx + 0x78]
fcom dword [ecx + edx + 0x1c]
fnstsw ax
test ah, 5
jp 0x100ad126
fstp st(0)
mov ebp, esi
fld dword [ecx + edx + 0x1c]
lea eax, [edi - 1]
cmp eax, 3
jae 0x100ad1d9
fcom dword [ecx + edx + 0x44]
fnstsw ax
test ah, 5
jp 0x100ad146
fstp st(0)
lea ebp, [edi - 1]
fld dword [ecx + edx + 0x44]
cmp edi, 3
jae 0x100ad1d9
fcom dword [ecx + edx + 0x6c]
fnstsw ax
test ah, 5
jp 0x100ad162
fstp st(0)
mov ebp, edi
fld dword [ecx + edx + 0x6c]
lea ebx, [edi + 1]
cmp ebx, 3
jae 0x100ad1d5
fcom dword [ecx + edx + 0x94]
fnstsw ax
test ah, 5
jp 0x100ad183
fstp st(0)
mov ebp, ebx
fld dword [ecx + edx + 0x94]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add esi, 4
add edx, 0xfffffffd
add ecx, 0xa0
add edi, 4
cmp esi, edx
jb 0x100ad107
mov edi, dword [esp + 0x14]
cmp esi, edi
jae 0x100ad1d9
lea ecx, [esi + esi*4]
shl ecx, 3
cmp esi, 3
jae 0x100ad1d9
mov edx, dword [ebx + 0x78]
fcom dword [ecx + edx + 0x1c]
fnstsw ax
test ah, 5
jp 0x100ad1cb
fstp st(0)
mov ebp, esi
fld dword [ecx + edx + 0x1c]
inc esi
add ecx, 0x28
cmp esi, edi
jb 0x100ad1b0
jmp 0x100ad1d9
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x78]
fstp st(0)
lea ecx, [ebp + ebp*4]
lea edx, [esp + 0x4c]
lea eax, [eax + ecx*8]
push edx
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x100ad1ff
mov ecx, ebx
call fcn.100ac150
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x100ad05c