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

Disassembly:
fld dword [esp + 4]
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, ecx
fadd dword [esi + 0xe4]
push edi
fst dword [esi + 0xe4]
fcomp dword [esi + 0xe0]
fnstsw ax
test ah, 0x41
je 0x1009e5f2
fld dword [0x100ecb9c]
fld dword [esi + 0xdc]
fucompp
fnstsw ax
test ah, 0x44
jp 0x1009e89a
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::UNIT_Y]
fld dword [ecx]
fld dword [esi + 0x94]
fucompp
fnstsw ax
test ah, 0x44
jp 0x1009e631
fld dword [ecx + 4]
fld dword [esi + 0x98]
fucompp
fnstsw ax
test ah, 0x44
jp 0x1009e631
fld dword [ecx + 8]
fld dword [esi + 0x9c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1009e89a
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0xf8]
fld dword [eax + 4]
mov ecx, dword [eax]
fst dword [esp + 0x1c]
fcomp dword [0x100f7e74]
mov edx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
fnstsw ax
test ah, 5
jnp 0x1009e89a
mov eax, dword [esi + 0x90]
test eax, eax
je 0x1009e890
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x2c], 0x3f800000
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
call fcn.1009dd50
mov eax, dword [esi + 0x8c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x1009e878
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
jmp 0x1009e6c1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1009e70e
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x88]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
push 0
mov dword [ecx + 0xc], ebp
mov ecx, dword [sym.imp.OgreMain.dll_class_Ogre::Vector3_const_Ogre::Vector3::ZERO]
mov edx, dword [ecx]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x78]
call fcn.100b39b0
push eax
push 0
jmp 0x1009e856
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x10], eax
dec eax
cmp ecx, eax
jne 0x1009e77f
fld dword [esi + 0x9c]
mov ecx, dword [esi + 0x88]
fsub dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fld dword [esi + 0x98]
sub esp, 0x10
fsub dword [esp + 0x2c]
mov edx, esp
fld dword [esi + 0x94]
push 0x3f800000
fsub dword [esp + 0x2c]
push ecx
mov dword [edx], eax
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [edx + 4], ebx
mov dword [edx + 8], edi
fstp dword [eax + 4]
lea ecx, [esp + 0x9c]
mov dword [edx + 0xc], ebp
fstp dword [eax + 8]
call fcn.100b39b0
mov edx, dword [esp + 0x14]
push eax
push edx
jmp 0x1009e856
fild dword [esp + 0x14]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
fidiv dword [esp + 0x14]
push ecx
fstp dword [esp + 0x18]
fld dword [esi + 0x9c]
fsub dword [esp + 0x28]
fld dword [esi + 0x98]
fsub dword [esp + 0x24]
fld dword [esi + 0x94]
fsub dword [esp + 0x20]
fstp dword [esp + 0x50]
fxch st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x4c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x50]
fmul dword [esp + 0x18]
fstp dword [esp + 0x3c]
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::RangeRandom_float__float_]
mov edx, dword [esi + 0x7c]
fadd dword [esp + 0x3c]
mov eax, dword [esi + 0x78]
push edx
push eax
fstp dword [esp + 0x44]
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::RangeRandom_float__float_]
fadd dword [esp + 0x50]
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
push ecx
fstp dword [esp + 0x4c]
push edx
call dword [sym.imp.OgreMain.dll_public:_static_float___cdecl_Ogre::Math::RangeRandom_float__float_]
fadd dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
add esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
mov eax, dword [esi + 0x88]
push edx
mov edx, dword [esp + 0x4c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
fstp dword [eax + 8]
lea ecx, [esp + 0xc0]
mov dword [eax + 4], edx
call fcn.100b39b0
push eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [esi + 0x90]
call fcn.100b3ee0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x8c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1009e6bd
mov ecx, dword [esi + 0x90]
call fcn.100b3f30
mov ecx, dword [esi + 0x90]
mov byte [ecx + 0x184], 1
mov dword [esi + 0xe4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 4