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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100e4399
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x178]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x100b4494
mov ecx, dword [ebx + 0x17c]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x100b4494
mov eax, dword [ebx + 0xcc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push esi
push ebp
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::HardwareVertexBufferSharedPtr::constructor_class_Ogre::HardwareVertexBufferSharedPtr_const__]
mov ecx, dword [esp + 0x3c]
push 1
mov dword [esp + 0x84], ebp
call dword [sym.imp.OgreMain.dll_public:_void____thiscall_Ogre::HardwareBuffer::lock_enum_Ogre::HardwareBuffer::LockOptions_]
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0xf8]
mov ecx, dword [ebx + 0x168]
mov esi, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3_const____thiscall_Ogre::Camera::getDerivedPosition_void_const]
fld dword [eax + 8]
fsub dword [esi + 8]
mov ecx, dword [ebx + 0x2c]
fld dword [eax + 4]
lea edx, [esp + 0x2c]
fsub dword [esi + 4]
push edx
fld dword [eax]
lea eax, [esp + 0x48]
fsub dword [esi]
push eax
lea edx, [esp + 0x70]
push edx
fstp dword [esp + 0x38]
fstp dword [esp + 0x3c]
fstp dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 0xf4]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Quaternion___thiscall_Ogre::Quaternion::Inverse_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3___thiscall_Ogre::Quaternion::operator_class_Ogre::Vector3_const__]
mov eax, dword [ebx + 0x178]
cmp eax, ebp
jne 0x100b4251
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x100b426e
mov ecx, dword [ebx + 0x17c]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
cmp eax, ebp
jbe 0x100b4475
push edi
jmp 0x100b4280
mov eax, dword [esp + 0x10]
lea ecx, [ecx]
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x28]
mov edx, dword [esp + 0x14]
imul ecx, ebp
test ebp, ebp
mov edi, dword [ebx + 0x178]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x18], ecx
jne 0x100b42b2
fld dword [edi + 0x2c]
fsub dword [edi + 8]
fld dword [edi + 0x28]
fsub dword [edi + 4]
fld dword [edi + 0x24]
fsub dword [edi]
jmp 0x100b42fa
lea edx, [eax - 1]
cmp ebp, edx
jne 0x100b42db
lea ecx, [eax + eax*8 - 0x12]
lea edx, [eax + eax*8]
fld dword [edi + edx*4 - 0x1c]
lea eax, [edi + edx*4 - 0x24]
fsub dword [edi + ecx*4 + 8]
lea ecx, [edi + ecx*4]
fld dword [eax + 4]
fsub dword [ecx + 4]
fld dword [eax]
fsub dword [ecx]
jmp 0x100b42fa
lea eax, [ebp + ebp*8]
shl eax, 2
fld dword [eax + edi + 0x2c]
fsub dword [eax + edi - 0x1c]
fld dword [eax + edi + 0x28]
fsub dword [eax + edi - 0x20]
fld dword [eax + edi + 0x24]
fsub dword [eax + edi - 0x24]
fstp dword [esp + 0x30]
lea esi, [ebp + ebp*8]
shl esi, 2
fstp dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
fstp dword [esp + 0x3c]
lea ecx, [esp + 0x28]
fld dword [esp + 0x54]
push ecx
fsub dword [esi + edi + 8]
lea ecx, [esp + 0x38]
fld dword [esp + 0x54]
fsub dword [esi + edi + 4]
fld dword [esp + 0x50]
fsub dword [esi + edi]
fstp dword [esp + 0x5c]
fstp dword [esp + 0x60]
fstp dword [esp + 0x64]
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::Vector3___thiscall_Ogre::Vector3::crossProduct_class_Ogre::Vector3_const__]
lea ecx, [esp + 0x24]
call dword [sym.imp.OgreMain.dll_public:_float___thiscall_Ogre::Vector3::normalise_void_]
fstp st(0)
mov eax, dword [ebx + 0x178]
fld dword [esi + eax + 0xc]
mov eax, dword [esp + 0x18]
fld dword [esp + 0x24]
add eax, 4
fmul st(1)
add eax, 4
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fstp st(0)
fld dword [esi + edi + 8]
fsub dword [esp + 0x2c]
fld dword [esi + edi + 4]
fsub dword [esp + 0x28]
fld dword [esi + edi]
fsub dword [esp + 0x24]
fld dword [esp + 0x2c]
fadd dword [esi + edi + 8]
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fadd dword [esi + edi + 4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fadd dword [esi + edi]
lea edi, [eax + 4]
push edi
fstp dword [esp + 0x64]
fstp dword [eax - 8]
fstp dword [eax - 4]
fstp dword [eax]
mov ecx, dword [ebx + 0x178]
lea edx, [esi + ecx + 0x14]
mov ecx, dword [edx]
mov dword [esp + 0x70], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x80], edx
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::Root____cdecl_Ogre::Root::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Root::convertColourValue_class_Ogre::ColourValue_const___unsigned_int__]
mov ecx, dword [ebx + 0x178]
mov ecx, dword [esi + ecx + 0x10]
mov edx, dword [esp + 0x60]
lea eax, [edi + 4]
mov dword [eax], ecx
add eax, 4
mov dword [eax], 0
add eax, 4
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
add eax, 4
mov dword [eax], ecx
add eax, 4
lea edi, [eax + 4]
mov dword [eax], edx
lea eax, [esp + 0x6c]
push edi
push eax
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::Root____cdecl_Ogre::Root::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Root::convertColourValue_class_Ogre::ColourValue_const___unsigned_int__]
mov ecx, dword [ebx + 0x178]
mov ecx, dword [esi + ecx + 0x10]
lea eax, [edi + 4]
mov dword [eax], ecx
add eax, 4
mov dword [eax], 0x3f800000
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x100b4279
pop edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x10]
lea ecx, [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::HardwareVertexBufferSharedPtr::destructor_void_]
pop esi
mov ecx, dword [esp + 0x74]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret