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

Disassembly:
push 0xffffffffffffffff
push 0x101439ea
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1019c828]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1e4]
mov eax, dword [esp + 0x1e0]
mov ebx, dword [ecx + 4]
mov ebp, dword [eax + 0x64]
push 0
push ebx
push ebp
call fcn.10043fc0
push 1
push ebx
push ebp
mov edi, eax
call fcn.10043fc0
push 2
push ebx
push ebp
mov esi, eax
call fcn.10043fc0
mov ebx, eax
mov eax, dword [ebp + 0x58]
lea edx, [edi + edi*2]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 0x58]
lea ecx, [esi + esi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
mov edx, dword [ebp + 0x58]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + 4]
push 0
lea ecx, [esp + 0x44]
push ecx
push esi
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x204]
mov eax, dword [eax + 8]
push edi
push ebp
push edx
mov dword [esp + 0xcc], eax
mov byte [esp + 0x56], 0
mov byte [esp + 0x57], 0
mov byte [esp + 0x55], 0
call fcn.100449b0
add esp, 0x3c
test al, al
je 0x100472e7
fld qword [esp + 0x1d8]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x100472e7
mov byte [esp + 0x1a], 1
mov ecx, dword [esp + 0x1d4]
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push ebp
push ecx
call fcn.100449b0
add esp, 0x18
test al, al
je 0x1004731c
fld qword [esp + 0x1d8]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x1004731c
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x1d4]
push 0
lea edx, [esp + 0x20]
push edx
push edi
push ebx
push ebp
push eax
call fcn.100449b0
add esp, 0x18
test al, al
je 0x10047351
fld qword [esp + 0x1d8]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x10047351
mov byte [esp + 0x19], 1
or eax, 0xffffffff
cmp byte [esp + 0x1a], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
je 0x1004737b
mov dword [esp + 0x14], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x1e4]
push 1
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x44]
add eax, 0x12
push edx
push eax
call fcn.10030170
push 1
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x210]
add eax, 0x12
push eax
call fcn.10030170
add esp, 0x30
cmp byte [esp + 0x1b], 0
je 0x10047404
fld dword [esp + 0x80]
fld dword [esp + 0x7c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x10047404
mov dword [esp + 0x14], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
push 1
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x98]
push ecx
add eax, 0x12
push eax
call fcn.10030170
add esp, 0x18
cmp byte [esp + 0x19], 0
je 0x10047461
fld dword [esp + 0x84]
fld dword [esp + 0x7c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x10047461
mov dword [esp + 0x14], 3
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
test edi, edi
jl 0x10047929
mov esi, dword [esp + 0x1e0]
mov edx, dword [esi + 0x20]
mov ebx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x34], edi
call fcn.10031970
mov ecx, dword [esp + 0x1ec]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.100443e0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1f8]
mov eax, dword [edx + 4]
push 0
push ecx
push eax
push ebp
call fcn.10044090
add esp, 0x24
test eax, eax
jl 0x100476b4
push eax
lea ecx, [esp + 0x74]
push ebp
push ecx
call fcn.100443e0
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
add esp, 0xc
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
push 0
lea eax, [esp + 0xc8]
mov dword [esp + 0x68], edx
mov edx, dword [esi]
push eax
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + 0x9c]
push esi
call ecx
lea edx, [esp + 0x144]
mov ecx, 0x20
lea esi, [esp + 0xc4]
lea edi, [esp + 0x144]
push edx
rep movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_void_
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xcc]
push edx
call sym.rt3d.dll_public:_struct_POINT3D___stdcall_MATRIX3D::VectorTransform_struct_POINT3D_const__
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x64], eax
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xcc]
push ecx
call sym.rt3d.dll_public:_struct_POINT3D___stdcall_MATRIX3D::VectorTransform_struct_POINT3D_const__
mov edx, dword [eax]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 8]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x70], edx
call sym.rt3d.dll_public:_void___stdcall_POINT3D::Normalize_void_
fld dword [esp + 0x74]
fmul dword [esp + 0x50]
fld dword [esp + 0x70]
fmul dword [esp + 0x4c]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x54]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsub qword [0x1014e7b0]
fabs
fcomp qword [0x10154d70]
fnstsw ax
test ah, 5
jnp 0x10047929
fld dword [esp + 0x98]
fld st(0)
fmul dword [esp + 0x68]
fld dword [esp + 0x64]
fld dword [esp + 0x94]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [esp + 0x9c]
fld st(0)
fmul dword [esp + 0x6c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100476a8
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fmulp st(3)
fld dword [esp + 0x58]
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [esp + 0x60]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fld dword [esp + 0x1c]
fabs
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x100476b0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x100476b0
fstp st(0)
fstp st(2)
fstp st(0)
fstp st(0)
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
mov esi, 0x32
lea esp, [esp]
mov edx, dword [esp + 0x28]
push edx
push edi
push ecx
push ebp
sub esi, 1
call fcn.10044510
add esp, 0x10
test eax, eax
jl 0x100476e6
test esi, esi
mov ecx, edi
mov dword [esp + 0x2c], eax
mov edi, eax
jg 0x100476c0
sub esi, 1
or ecx, 0xffffffff
test esi, esi
jle 0x1004770c
mov eax, dword [esp + 0x30]
push eax
push ebx
push ecx
push ebp
sub esi, 1
call fcn.10044510
add esp, 0x10
test eax, eax
jl 0x1004770c
test esi, esi
mov ecx, ebx
mov ebx, eax
jg 0x100476ed
mov edx, dword [ebp + 0x58]
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 0x58]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 8]
push 0x1c
mov dword [esp + 0x4c], eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x1004778a
mov dword [eax], 0
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x10047792
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x1e4]
fld dword [esi + 0x16]
fsub dword [esp + 0x38]
fld dword [esi + 0x12]
fsub dword [esp + 0x34]
fld dword [esi + 0x1a]
fsub dword [esp + 0x3c]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1e8]
fld dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x1004782f
fcomp qword [esp + 0x1d8]
fnstsw ax
test ah, 5
jp 0x10047831
push 0x28
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x1cc], 0
je 0x10047929
mov edx, dword [esp + 0x1e0]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push ecx
mov ecx, eax
call fcn.10046560
jmp 0x1004792b
fstp st(0)
fld dword [esi + 0x16]
fsub dword [esp + 0x44]
fld dword [esi + 0x12]
fsub dword [esp + 0x40]
fld dword [esi + 0x1a]
fsub dword [esp + 0x48]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x1e8]
fld dword [esp + 0x1c]
cmp byte [esi + 0x1d], 0
je 0x100478c4
fcomp qword [esp + 0x1d8]
fnstsw ax
test ah, 5
jp 0x100478c6
push 0x28
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x1cc], 1
je 0x10047929
mov ecx, dword [esp + 0x1e0]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 0
push edx
mov ecx, eax
call fcn.10046560
jmp 0x1004792b
fstp st(0)
mov ecx, dword [esp + 0x1d4]
lea eax, [esp + 0xac]
push eax
push 0
push ebx
push edi
push ebp
push ecx
call fcn.100449b0
add esp, 0x18
cmp byte [esi + 0x1e], 0
je 0x10047929
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x1cc], 2
je 0x10047929
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x1e4]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.10046450
jmp 0x1004792b
xor eax, eax
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret