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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x160]
test al, al
push edi
je 0x100a6252
mov eax, dword [esi + 0x158]
mov dword [esp + 0x8c], eax
jmp 0x100a6260
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], edx
je 0x100a630c
mov al, byte [esp + 0x84]
test al, al
je 0x100a630c
mov eax, dword [ecx]
call dword [eax + 0xf8]
fld dword [esp + 0x1c]
fsub dword [eax + 8]
mov ecx, dword [esi + 0x2c]
fld dword [esp + 0x18]
fsub dword [eax + 4]
fld dword [esp + 0x14]
fsub dword [eax]
fstp dword [esp + 0x2c]
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 0xfc]
mov ecx, dword [esi + 0x2c]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x4c]
push eax
call dword [edx + 0xf4]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Quaternion___thiscall_Ogre::Quaternion::UnitInverse_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3___thiscall_Ogre::Quaternion::operator_class_Ogre::Vector3_const__]
fld dword [eax + 8]
fdiv dword [edi + 8]
fld dword [eax + 4]
fdiv dword [edi + 4]
fld dword [eax]
fdiv dword [edi]
fstp dword [esp + 0x14]
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
mov ebx, dword [esp + 0x7c]
mov eax, dword [esi + 0x14c]
mov ecx, dword [sym.imp.OgreMain.dll_unsigned_int_const_Ogre::BillboardChain::SEGMENT_EMPTY]
mov edx, dword [ecx]
mov edi, ebx
shl edi, 4
add edi, eax
mov eax, dword [edi + 4]
cmp eax, edx
jne 0x100a639b
mov edx, dword [esp + 0x88]
mov ecx, dword [edx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x28]
push 0
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x78]
mov dword [eax + 4], edx
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::BillboardChain::Element::constructor_class_Ogre::Vector3__float__float__class_Ogre::ColourValue_]
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x114]
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x114]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ebx, dword [esi + 0x13c]
lea ecx, [edx + eax]
lea ecx, [ecx + ecx*8]
lea ebp, [ebx + ecx*4]
mov ecx, dword [esi + 0xcc]
inc eax
cmp eax, ecx
jne 0x100a63bc
xor eax, eax
fld dword [esp + 0x1c]
add eax, edx
lea edx, [eax + eax*8]
fsub dword [ebx + edx*4 + 8]
lea ebx, [ebx + edx*4]
fld dword [esp + 0x18]
fsub dword [ebx + 4]
fld dword [esp + 0x14]
fsub dword [ebx]
fstp dword [esp + 0x20]
fst dword [esp + 0x24]
fld st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fst dword [esp + 0x84]
fstp st(2)
fstp st(0)
fcomp dword [esi + 0x164]
fnstsw ax
test ah, 1
jne 0x100a6507
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::Sqrt_float_]
fdivr dword [esi + 0x15c]
mov ecx, dword [esp + 0x8c]
sub esp, 0xc
mov edx, esp
push 0
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x98]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x94]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x40]
fstp st(0)
fld dword [esp + 0x98]
fadd dword [ebx + 8]
fld dword [esp + 0x94]
fadd dword [ebx + 4]
fld dword [esp + 0x40]
fadd dword [ebx]
fstp dword [ebp]
fstp dword [ebp + 4]
fstp dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x78]
mov dword [eax + 4], edx
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::BillboardChain::Element::constructor_class_Ogre::Vector3__float__float__class_Ogre::ColourValue_]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x114]
fld dword [esp + 0x14]
fsub dword [esp + 0x54]
fld dword [esp + 0x18]
fsub dword [esp + 0x58]
fld dword [esp + 0x1c]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fxch st(1)
mov dword [esp + 0x28], edx
fstp dword [esp + 0x20]
fstp dword [esp + 0x24]
jmp 0x100a651c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov ecx, dword [edi + 8]
mov ebx, dword [esi + 0xcc]
xor edx, edx
lea eax, [ecx + 1]
div ebx
cmp edx, dword [edi + 4]
jne 0x100a6606
test ecx, ecx
mov edx, dword [edi]
mov ebx, dword [esi + 0x13c]
lea eax, [ecx + edx]
lea eax, [eax + eax*8]
lea ebp, [ebx + eax*4]
jne 0x100a6553
mov eax, dword [esi + 0xcc]
dec eax
jmp 0x100a6556
lea eax, [ecx - 1]
fld dword [ebp + 8]
add eax, edx
lea ecx, [eax + eax*8]
fsub dword [ebx + ecx*4 + 8]
lea ebx, [ebx + ecx*4]
fld dword [ebp + 4]
lea ecx, [esp + 0x14]
fsub dword [ebx + 4]
fld dword [ebp]
fsub dword [ebx]
fstp dword [esp + 0x14]
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
call dword [sym.imp.OgreMain.dll_public:_float___thiscall_Ogre::Vector3::length_void_const]
fst dword [esp + 0x80]
fcomp qword [0x100f8770]
fnstsw ax
test ah, 0x41
jne 0x100a6606
mov edx, dword [esi + 0x15c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], edx
call dword [sym.imp.OgreMain.dll_public:_float___thiscall_Ogre::Vector3::length_void_const]
fsubr dword [esp + 0x84]
fdiv dword [esp + 0x80]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x14]
fadd dword [ebx]
fld dword [esp + 0x18]
fadd dword [ebx + 4]
fld dword [esp + 0x1c]
fadd dword [ebx + 8]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fxch st(1)
mov dword [ebp + 8], eax
fstp dword [ebp]
fstp dword [ebp + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jbe 0x100a661c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd8]
jmp 0x100a6621
jae 0x100a6628
sub eax, ecx
inc eax
mov dword [esp + 0x80], eax
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x13c]
add eax, ecx
lea eax, [eax + eax*8]
lea ebx, [edx + eax*4]
add edi, ecx
lea ecx, [edi + edi*8]
fld dword [edx + ecx*4]
lea eax, [edx + ecx*4]
fsub dword [ebx]
push 0x34000000
fld dword [eax + 4]
fsub dword [ebx + 4]
fld dword [eax + 8]
fsub dword [ebx + 8]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp dword [esp + 0x88]
mov edx, dword [esp + 0x88]
fstp st(0)
push edx
fstp st(0)
push 0
fstp st(0)
call dword [sym.imp.OgreMain.dll_public:_static_bool___cdecl_Ogre::Math::RealEqual_float__float__float_]
add esp, 0xc
test al, al
jne 0x100a67c7
mov eax, dword [esp + 0x80]
xor edi, edi
test eax, eax
jbe 0x100a67c7
fld dword [0x100ec514]
fdiv dword [esp + 0x84]
fstp dword [esp + 0x10]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esi]
push edi
push ebp
mov ecx, esi
call dword [eax + 0x120]
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::BillboardChain::Element::constructor_class_Ogre::BillboardChain::Element_const__]
fld dword [esp + 0x54]
fsub dword [ebx]
push ecx
fld dword [esp + 0x5c]
fsub dword [ebx + 4]
fld dword [esp + 0x60]
fsub dword [ebx + 8]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fmul dword [esp + 0x14]
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::Sqrt_float_]
fsubr dword [0x100ec514]
mov al, byte [esi + 0x170]
add esp, 4
test al, al
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x64], ecx
je 0x100a6778
fld dword [esi + 0x16c]
push ecx
fsub dword [esi + 0x168]
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x48]
fmul dword [esp + 0x88]
fadd dword [esi + 0x168]
fstp dword [esp]
push edx
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::ColourValue___thiscall_Ogre::ColourValue::operator_float_]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], edx
mov al, byte [esi + 0x17c]
test al, al
je 0x100a67a6
fld dword [esi + 0x178]
fsub dword [esi + 0x174]
fmul dword [esp + 0x84]
fadd dword [esi + 0x174]
fmul dword [esp + 0x8c]
fstp dword [esp + 0x60]
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
push edi
push ebp
mov ecx, esi
call dword [eax + 0x11c]
mov eax, dword [esp + 0x80]
inc edi
cmp edi, eax
jb 0x100a66b6
mov byte [esi + 0xe2], 1
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x100a67e1
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x128]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x14