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

Disassembly:
sub esp, 0x124
push ebx
mov ebx, dword [esp + 0x130]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x138]
fld dword [edi]
mov dword [esp + 0x40], eax
fsub dword [esi]
mov ebp, ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
fstp dword [esp + 0x10]
push eax
fld dword [edi + 4]
mov dword [esp + 0x28], 0x19
fsub dword [esi + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x18]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x1c]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
cmp dword [esp + 0x24], 0x64
fld qword [0x1014e750]
jge 0x1003c05c
fld dword [edi]
lea ecx, [esp + 0x80]
fadd dword [esp + 0x40]
push ecx
fstp dword [esp + 0x90]
fld dword [esp + 0x48]
fadd dword [edi + 4]
fstp dword [esp + 0x94]
fld dword [edi + 8]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x98]
fld dword [esp + 0x90]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x94]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x98]
fstp dword [esp + 0x5c]
fld dword [esp + 0x54]
fsub dword [esi]
fstp dword [esp + 0x84]
fld dword [esp + 0x58]
fsub dword [esi + 4]
fstp dword [esp + 0x88]
fld dword [esp + 0x5c]
fsub dword [esi + 8]
fstp dword [esp + 0x8c]
fstp qword [esp + 0x20]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
fsubr qword [esp + 0x1c]
lea edx, [esp + 0x68]
push edx
fstp dword [esp + 0x20]
fld dword [esp + 0x54]
fsub dword [esi]
fstp dword [esp + 0x6c]
fld dword [esp + 0x58]
fsub dword [esi + 4]
fstp dword [esp + 0x70]
fld dword [esp + 0x5c]
fsub dword [esi + 8]
fstp dword [esp + 0x74]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x68]
add dword [esp + 0x24], 1
fld dword [esp + 0x4c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x6c]
fmul st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esi]
fadd dword [esp + 0x34]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x38]
mov dword [esp + 0x40], eax
fadd dword [esi + 4]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
fld dword [esi + 8]
mov dword [esp + 0x44], ecx
fadd dword [esp + 0x3c]
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fld1
mov dword [esp + 0x48], edx
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jnp 0x1003bf1b
jmp 0x1003c05e
fstp st(1)
fstp st(0)
lea eax, [esp + 0x5c]
fld dword [ebx]
push eax
fsub dword [esi]
fstp dword [esp + 0x14]
fld dword [ebx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x18]
fld dword [ebx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x1c]
fld dword [edi]
fsub dword [esi]
fstp dword [esp + 0x38]
fld dword [edi + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x3c]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fld st(0)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x40]
fld st(0)
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fld st(0)
fmulp st(2)
fld dword [esp + 0x38]
fld st(0)
fmulp st(4)
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x64]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x68]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x144]
mov ecx, dword [esi]
fidiv dword [esp + 0x24]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x64]
push ecx
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xb4], eax
fmul qword [0x10155238]
fstp dword [esp + 0xb8]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::SetRotate_struct_ANGLEAXISex_const__
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0xbc]
push edx
call sym.rt3d.dll_public:_struct_POINT3D___stdcall_MATRIX3D::PointTransform_struct_POINT3D_const__
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push eax
call edx
mov ebx, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push 2
push ebx
call ecx
cmp byte [ebp + 0x525], 0
jne 0x1003c1aa
mov eax, dword [ebp + 0x7c]
jmp 0x1003c1b8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.10003f20
mov eax, dword [eax + 0x18]
movzx ecx, al
mov dword [esp + 0x1c], ecx
movzx edx, ah
fild dword [esp + 0x1c]
fld qword [0x101502e0]
mov dword [esp + 0x1c], edx
shr eax, 0x10
fdiv st(1), st(0)
movzx eax, al
mov dword [ebx + 0x24], 8
xor esi, esi
fxch st(1)
fstp dword [esp + 0x10]
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x14], ecx
fdiv st(1)
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x18], edx
fidivr dword [esp + 0x1c]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xec]
push eax
call edx
test esi, esi
mov dword [eax + 0x18], 4
mov dword [eax + 0x24], 0
mov dword [eax + 0x34], 0xffffffff
lea ecx, [esp + 0x74]
jne 0x1003c244
lea ecx, [esp + 0x28]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x28], edx
mov dword [eax], edx
mov dword [eax + 0x2c], edi
mov dword [eax + 4], edi
mov dword [eax + 0x30], ecx
mov dword [eax + 8], ecx
lea ecx, [esi + esi*2]
mov dword [eax + 0x20], 0
mov edx, dword [ebx + 0xc]
add esi, 1
cmp esi, 2
mov dword [edx + ecx*4], eax
jl 0x1003c212
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push eax
call edx
mov edi, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push edi
push ebx
call ecx
cmp byte [ebp + 0x525], 0
jne 0x1003c2a2
mov eax, dword [ebp + 0x7c]
jmp 0x1003c2b0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.10003f20
mov eax, dword [eax + 0x18]
movzx ecx, al
mov dword [esp + 0x1c], ecx
movzx edx, ah
fild dword [esp + 0x1c]
fld qword [0x101502e0]
mov dword [esp + 0x1c], edx
shr eax, 0x10
fdiv st(1), st(0)
movzx eax, al
xor esi, esi
test edi, edi
fxch st(1)
fstp dword [esp + 0x10]
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x14], ecx
fdiv st(1)
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x18], edx
fidivr dword [esp + 0x1c]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
jle 0x1003c3ac
xor edi, edi
lea ecx, [ecx]
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xec]
push eax
call edx
mov dword [eax + 0x18], 4
mov dword [eax + 0x34], 0xffffffff
xor ecx, ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [eax + 0x28]
mov dword [eax], edx
mov edx, dword [eax + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [eax + 0x30]
mov dword [eax + 8], edx
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edi + ecx], eax
mov eax, dword [esp + 0x24]
add eax, 0xffffffff
cmp esi, eax
je 0x1003c39c
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xbc]
push ecx
call sym.rt3d.dll_public:_struct_POINT3D___stdcall_MATRIX3D::PointTransform_struct_POINT3D_const__
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
add esi, 1
add edi, 0xc
cmp esi, dword [esp + 0x24]
jl 0x1003c310
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push eax
call edx
mov ebx, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push 2
push ebx
call ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov dword [ebx + 0x28], 8
call sym.rt3d.dll_public:_struct_POINT3D___stdcall_MATRIX3D::PointTransform_struct_POINT3D_const__
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x7c], edx
xor esi, esi
nop
mov eax, dword [ebp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xec]
push eax
call edx
test esi, esi
mov dword [eax + 0x18], 4
mov dword [eax + 0x24], 0
mov dword [eax + 0x34], 0xffffffff
lea ecx, [esp + 0x74]
jne 0x1003c432
lea ecx, [esp + 0x28]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x28], edx
mov dword [eax], edx
mov dword [eax + 0x2c], edi
mov dword [eax + 4], edi
mov dword [eax + 0x30], ecx
mov dword [eax + 8], ecx
lea ecx, [esi + esi*2]
mov dword [eax + 0x20], 0
mov edx, dword [ebx + 0xc]
add esi, 1
cmp esi, 2
mov dword [edx + ecx*4], eax
jl 0x1003c400
cmp byte [ebp + 0x525], 0
jne 0x1003c471
mov eax, dword [ebp + 0x7c]
jmp 0x1003c47f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
call fcn.10003f20
mov eax, dword [eax + 0x18]
movzx ecx, al
mov dword [esp + 0x1c], ecx
movzx edx, ah
fild dword [esp + 0x1c]
fld qword [0x101502e0]
mov dword [esp + 0x1c], edx
shr eax, 0x10
fdiv st(1), st(0)
movzx eax, al
pop edi
pop esi
pop ebp
fxch st(1)
fstp dword [esp + 4]
fild dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], eax
mov dword [ebx + 0x14], ecx
fdiv st(1)
fstp dword [esp + 8]
mov edx, dword [esp + 8]
mov dword [ebx + 0x18], edx
fidivr dword [esp + 0x10]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x1c], eax
pop ebx
add esp, 0x124
ret 0x10