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

Disassembly:
sub esp, 0x80
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x98]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xe8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
fld dword [esp + 0x2c]
fadd qword [0x1014e790]
mov ecx, dword [edi + 0xe8]
fstp dword [esp + 0x2c]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
fld dword [esp + 0x14]
fsub dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
fstp dword [esp + 0x54]
fld dword [esp + 0x1c]
fsub dword [esp + 0x34]
fstp dword [esp + 0x58]
fld dword [esp + 0x20]
fsub dword [esp + 0x38]
fstp dword [esp + 0x5c]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
fstp dword [esp + 0xc]
lea ecx, [esp + 0x20]
fld dword [esp + 0x14]
push ecx
fsub dword [esi + 0x31]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fsub dword [esi + 0x35]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fsub dword [esi + 0x39]
fstp dword [esp + 0x2c]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x20]
fld dword [esp + 0xc]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fld dword [esp + 0x24]
mov dword [esp + 0x20], edx
fmul st(1)
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
fmul dword [esp + 0x28]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0x48]
mov dword [esp + 0x28], ecx
fld st(0)
fmul dword [esi + 0x20]
fld dword [esp + 0x4c]
lea edx, [esp + 0x38]
fld st(0)
push edx
fmul dword [esi + 0x1c]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fmul dword [esi + 0x18]
fld dword [esp + 0x48]
fld st(0)
fmul dword [esi + 0x20]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fmul dword [esi + 0x1c]
fld dword [esi + 0x18]
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x44]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x38]
fld dword [esp + 0xc]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
fld dword [esp + 0x3c]
mov dword [esp + 0x38], eax
fmul st(1)
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
fmul dword [esp + 0x40]
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fld dword [esp + 0x20]
mov dword [esp + 0x40], edx
fld st(0)
fld dword [esp + 0x14]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esp + 0x50]
fld dword [esp + 0x24]
fadd dword [esp + 0x18]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fstp dword [esp + 0x54]
fld dword [esp + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fld dword [esp + 0x44]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x54]
fld dword [esp + 0x48]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0x58]
fld dword [esp + 0x4c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x88]
fxch st(3)
fstp dword [esp + 0x50]
fld dword [esp + 0xc]
fstp dword [esp + 0x54]
fld dword [esp + 0x10]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
mov eax, dword [esi + 0x14]
fsub st(2)
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
push 0
fstp dword [esp + 0x60]
push 2
fld dword [esp + 0x5c]
push eax
fsub st(1)
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x90]
fstp dword [esp + 0x70]
push edx
fld dword [esp + 0x6c]
push edi
fsub st(3)
mov ecx, ebx
fstp dword [esp + 0x7c]
fxch st(3)
fsubrp st(4)
fxch st(3)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esp + 0x68]
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esp + 0x6c]
fld dword [esp + 0x34]
fsub dword [esp + 0x40]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esp + 0x70]
fld dword [esp + 0x68]
fsub st(6)
fstp dword [esp + 0x80]
fld dword [esp + 0x6c]
fsub st(5)
fstp dword [esp + 0x84]
fld dword [esp + 0x70]
fsub st(4)
fstp dword [esp + 0x88]
fxch st(2)
fstp dword [esp + 0x68]
fstp dword [esp + 0x6c]
fstp dword [esp + 0x70]
fld dword [esp + 0x68]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x8c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x90]
fadd dword [esp + 0x70]
fstp dword [esp + 0x94]
call fcn.1002eec0
mov eax, dword [esi + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x6c]
push edx
push edi
mov ecx, ebx
call fcn.1002eec0
mov eax, dword [esi + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x78]
push edx
push edi
mov ecx, ebx
call fcn.1002eec0
mov eax, dword [esi + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x90]
push edx
push edi
mov ecx, ebx
call fcn.1002eec0
mov eax, dword [esi + 8]
test eax, eax
je 0x10046ee3
cmp dword [eax], 2
jne 0x10046ee3
mov edx, dword [eax + 8]
test edx, edx
jne 0x10046e19
xor eax, eax
jmp 0x10046e2e
mov ecx, dword [eax + 0xc]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x10046ee3
push ebp
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x14], eax
mov edi, dword [esi + 8]
mov eax, dword [edi + 8]
add edi, 4
test eax, eax
je 0x10046e6d
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebp + 1]
cmp ecx, eax
jb 0x10046e73
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 4]
mov edi, dword [esi + 8]
lea eax, [ebx + edx + 0xc]
add edi, 4
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x10046ea4
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x10046eaa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 4]
push 0
push 2
push ecx
mov ecx, dword [esp + 0xa0]
push edx
add eax, ebx
push eax
push ecx
mov ecx, dword [esp + 0xb0]
call fcn.1002eec0
add ebp, 2
add ebx, 0x18
sub dword [esp + 0x14], 1
jne 0x10046e44
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x10