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

Disassembly:
sub esp, 0xf8
push ebp
mov ebp, ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x24], ebp
je 0x10046443
mov eax, dword [esi]
sub eax, 0
mov ecx, dword [ebp + 0x14]
push ebx
push edi
mov dword [esp + 0x30], ecx
je 0x10046022
sub eax, 1
je 0x10045bce
sub eax, 1
jne 0x1004607e
add esi, 4
push 0
mov ecx, esi
call fcn.1002fb30
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov edi, 1
mov ebx, 0xc
lea esp, [esp]
mov eax, dword [esi + 4]
test eax, eax
je 0x10045b3c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x1004607e
mov eax, dword [esi + 4]
test eax, eax
je 0x10045b64
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10045b6a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx]
add eax, ebx
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push 0
push 2
push ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x28]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x128]
call fcn.1002eec0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edi, 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
add ebx, 0xc
jmp 0x10045b20
lea edi, [esi + 0x20]
push 0
mov ecx, edi
call fcn.1002fb30
mov edx, dword [eax]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xb0], edx
mov ebx, 1
mov ebp, 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x10045c1d
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 ebx, eax
jge 0x10045cbb
mov eax, dword [edi + 4]
test eax, eax
je 0x10045c45
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 ebx, eax
jb 0x10045c4b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebp]
add eax, ebp
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push 0
push 2
push ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x28]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0xb8]
push eax
push ecx
mov ecx, dword [esp + 0x128]
call fcn.1002eec0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add ebx, 1
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add ebp, 0xc
jmp 0x10045c01
mov edx, dword [esi + 0x10]
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x84], edx
mov eax, dword [esi + 0x14]
mov edx, dword [ebx + 0xe8]
mov dword [esp + 0x88], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x8c], ecx
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x84]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
fld dword [esp + 0x84]
fadd qword [0x1014f4f0]
mov ecx, dword [ebx + 0xe8]
fstp dword [esp + 0x84]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
lea ecx, [esp + 0x84]
push ecx
push eax
call edx
fld dword [esi + 0x14]
fsub dword [esp + 0x88]
lea eax, [esp + 0xf0]
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 0x18]
fsub dword [esp + 0x90]
fstp dword [esp + 0x38]
fld dword [esi + 0x10]
fsub dword [esp + 0x88]
fstp dword [esp + 0xf4]
fld dword [esp + 0x2c]
fstp dword [esp + 0xf8]
fld dword [esp + 0x38]
fstp dword [esp + 0xfc]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
mov eax, dword [edi + 4]
fstp dword [esp + 0x28]
test eax, eax
je 0x10045d98
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x10045d9e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 4]
fld dword [esi + 0x14]
fsub dword [edi + 4]
lea edx, [esp + 0x60]
push edx
fstp dword [esp + 0x38]
fld dword [esi + 0x18]
fsub dword [edi + 8]
fstp dword [esp + 0x54]
fld dword [esi + 0x10]
fsub dword [edi]
fstp dword [esp + 0x64]
fld dword [esp + 0x38]
fstp dword [esp + 0x68]
fld dword [esp + 0x54]
fstp dword [esp + 0x6c]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x60]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x64]
mov dword [esp + 0x60], eax
fmul st(1)
lea eax, [esp + 0x38]
push eax
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x68], ecx
fmul dword [esp + 0x6c]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x28]
mov dword [esp + 0x6c], edx
fld st(0)
fmul dword [esi + 4]
fld dword [esi + 0xc]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(2)
fsubrp st(1)
fstp dword [esp + 0x54]
fmul dword [esi + 8]
fld dword [esp + 0x24]
fld st(0)
fmul dword [esi + 4]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fmul dword [esi + 0xc]
fld dword [esi + 8]
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x54]
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fstp dword [esp + 0x44]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x38]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
fmul st(1)
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
fmul dword [esp + 0x40]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x60]
mov dword [esp + 0x40], eax
fld st(0)
fadd dword [esi + 0x10]
fstp dword [esp + 0x10]
fld dword [esi + 0x14]
fld dword [esp + 0x64]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esi + 0x18]
fld dword [esp + 0x68]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fld dword [esp + 0x1c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0xfc]
fld dword [esp + 0x14]
fld dword [esp + 0x20]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x100]
fld dword [esp + 0x18]
fld dword [esp + 0x24]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x104]
fld dword [esi + 0x10]
fadd st(6)
fstp dword [esp + 0x10]
fld dword [esi + 0x14]
fadd st(5)
fstp dword [esp + 0x14]
fld dword [esi + 0x18]
fadd st(4)
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fsub st(3)
fstp dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub st(2)
fstp dword [esp + 0x70]
fld dword [esp + 0x18]
fsub st(1)
fstp dword [esp + 0x74]
fld dword [esi + 0x10]
fsub st(6)
fstp dword [esp + 0x10]
fld dword [esi + 0x14]
fsub st(5)
fstp dword [esp + 0x14]
fld dword [esi + 0x18]
fsub st(4)
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fsub st(3)
fstp dword [esp + 0xe4]
fld dword [esp + 0x14]
fsub st(2)
fstp dword [esp + 0xe8]
fld dword [esp + 0x18]
fsub st(1)
fstp dword [esp + 0xec]
fld dword [esi + 0x10]
fsubrp st(6)
fxch st(5)
fstp dword [esp + 0x10]
fld dword [esi + 0x14]
fsubrp st(4)
fxch st(3)
fstp dword [esp + 0x14]
fld dword [esi + 0x18]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fadd dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x10c]
mov esi, dword [esp + 0x110]
fstp dword [esp + 0x9c]
push 0
push 2
fadd dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0xf0]
push ecx
fstp dword [esp + 0xb0]
lea edx, [esp + 0x10c]
push edx
fadd dword [esp + 0x2c]
push edi
mov ecx, esi
fstp dword [esp + 0xbc]
call fcn.1002eec0
push 0
push 2
push ebp
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edi
mov ecx, esi
call fcn.1002eec0
mov ebp, dword [esp + 0x2c]
jmp 0x10046093
mov edx, dword [esi + 4]
mov dword [esp + 0x9c], edx
mov eax, dword [esi + 8]
mov dword [esp + 0xa0], eax
mov edx, dword [esi + 0xc]
mov dword [esp + 0xa4], edx
mov eax, dword [esi + 0x10]
push 0xc
push 2
mov dword [esp + 0x74], eax
mov edx, dword [esi + 0x14]
push ecx
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0xac]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x11c]
push edx
push eax
call fcn.1002eec0
mov ebx, dword [esp + 0x114]
mov esi, dword [esp + 0x110]
mov edi, dword [esp + 0x10c]
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call edx
cmp byte [esp + 0x118], 0
je 0x10046441
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0xe8]
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], ecx
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x90]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
fld dword [esp + 0x90]
fadd qword [0x1014e790]
mov ecx, dword [ebx + 0xe8]
fstp dword [esp + 0x90]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
lea ecx, [esp + 0x90]
push ecx
push eax
call edx
fld dword [esp + 0x44]
fsub dword [esp + 0x90]
lea eax, [esp + 0x6c]
push eax
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fsub dword [esp + 0x98]
fstp dword [esp + 0x74]
fld dword [esp + 0x50]
fsub dword [esp + 0x9c]
fstp dword [esp + 0x78]
call sym.rt3d.dll_public:_float___stdcall_POINT3D::Length_void_const
mov eax, dword [ebp + 8]
fstp dword [esp + 0x28]
cmp dword [eax], 0
jne 0x1004616f
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
fld dword [esp + 0x44]
lea ecx, [esp + 0x54]
fsub dword [esp + 0x10]
push ecx
fstp dword [esp + 0x58]
fld dword [esp + 0x4c]
fsub dword [esp + 0x18]
fstp dword [esp + 0x5c]
fld dword [esp + 0x50]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x60]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x54]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x58]
mov dword [esp + 0x54], edx
fmul st(1)
lea edx, [esp + 0x78]
push edx
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
fmul dword [esp + 0x60]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fld dword [ebp + 0x20]
mov dword [esp + 0x60], ecx
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fld dword [esp + 0x28]
fld st(0)
fmul dword [ebp + 0x1c]
fsubp st(3)
fxch st(2)
fstp dword [esp + 0x7c]
fld dword [ebp + 0x18]
fmulp st(2)
fld dword [ebp + 0x20]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(3)
fsubrp st(1)
fstp dword [esp + 0x80]
fld dword [ebp + 0x1c]
fmulp st(2)
fmul dword [ebp + 0x18]
fsubp st(1)
fstp dword [esp + 0x84]
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x78]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x7c]
mov dword [esp + 0x78], eax
fmul st(1)
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
fmul dword [esp + 0x80]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x54]
mov dword [esp + 0x80], edx
fld st(0)
fld dword [esp + 0x44]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esp + 0x10]
fld dword [esp + 0x58]
fadd dword [esp + 0x48]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fld dword [esp + 0x1c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0xb4]
fld dword [esp + 0x14]
fld dword [esp + 0x20]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0xb8]
fld dword [esp + 0x18]
fld dword [esp + 0x24]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0xbc]
fxch st(3)
fstp dword [esp + 0x10]
fld dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fsub st(2)
fstp dword [esp + 0xc0]
fld dword [esp + 0x14]
fsub st(1)
fstp dword [esp + 0xc4]
fld dword [esp + 0x18]
fsub st(3)
fstp dword [esp + 0xc8]
fxch st(3)
fsubrp st(4)
fxch st(3)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esp + 0x10]
fld dword [esp + 0x48]
fsub dword [esp + 0x58]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esp + 0x14]
fld dword [esp + 0x4c]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esp + 0x18]
fld dword [esp + 0x10]
fsub st(6)
fstp dword [esp + 0xd8]
fld dword [esp + 0x14]
fsub st(5)
fstp dword [esp + 0xdc]
fld dword [esp + 0x18]
fsub st(4)
fstp dword [esp + 0xe0]
fxch st(2)
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
faddp st(3)
fxch st(2)
fstp dword [esp + 0xcc]
fadd dword [esp + 0x14]
fstp dword [esp + 0xd0]
fadd dword [esp + 0x18]
fstp dword [esp + 0xd4]
mov eax, dword [ebp + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0xc4]
push edx
push edi
mov ecx, esi
call fcn.1002eec0
mov eax, dword [ebp + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0xd0]
push edx
push edi
mov ecx, esi
call fcn.1002eec0
mov eax, dword [ebp + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0xe8]
push edx
push edi
mov ecx, esi
call fcn.1002eec0
mov eax, dword [ebp + 0x14]
push 0
push 2
push eax
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0xc4]
push edx
push edi
mov ecx, esi
call fcn.1002eec0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xf8
ret 0x10