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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [0xa6f96c]
push edi
mov edi, edx
imul edi, edi, 0x88
mov eax, dword [edi + esi + 0x78]
movzx ecx, byte [eax + 0x13]
movzx ebp, word [eax]
lea ebx, [ecx + ecx*2 + 3]
lea ecx, [ecx + ebp + 1]
lea ebp, [ecx + ecx*2]
shl ebx, 4
add ebx, eax
shl ebp, 4
add ebp, eax
mov eax, dword [esp + 0x64]
imul eax, eax, 0x88
mov dword [esp + 0x2c], eax
mov eax, dword [eax + esi + 0x78]
movzx ecx, byte [eax + 0x13]
lea esi, [ecx + ecx*2 + 3]
shl esi, 4
add esi, eax
mov dword [esp + 0x48], esi
movzx esi, word [eax]
lea ecx, [esi + ecx + 1]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x64]
add edx, 1
xor esi, esi
sub eax, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x4df96c
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
test esi, esi
jne 0x4df978
mov eax, dword [esp + 0x48]
mov ecx, ebx
jmp 0x4df97a
mov eax, ebp
movss xmm0, dword [eax]
fld dword [ecx + 8]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x1c], xmm0
fsub dword [esp + 0x1c]
movss dword [esp + 0x54], xmm0
fstp dword [esp + 0x38]
fld dword [ecx]
fsub dword [eax]
lea eax, [esp + 0x38]
push eax
mov ecx, eax
fchs
push ecx
fstp dword [esp + 0x44]
call sub.d3dx9_35.dll_D3DXVec2Normalize
cmp dword [esp + 0x24], 4
fld dword [esp + 0x3c]
xorps xmm0, xmm0
fld st(0)
fmul dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
fld dword [esp + 0x38]
mov ebp, dword [0xa6f96c]
fld st(0)
movss dword [esp + 0x14], xmm0
fmul dword [esp + 0x50]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
jl 0x4dfb65
mov edi, dword [esp + 0x64]
mov edx, ebx
imul edx, edx, 0x88
sub edi, ebx
sub edi, 4
shr edi, 2
add edi, 1
lea ecx, [edx + ebp + 0x100]
lea ebx, [ebx + edi*4]
mov edx, dword [ecx - 0x88]
movzx eax, byte [edx + 0x13]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
cmp esi, 1
jne 0x4dfa3b
movzx edx, word [edx]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
fld dword [eax + 8]
fmul st(3)
fld dword [eax]
fmul st(3)
faddp st(1)
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x4dfa66
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
mov edx, dword [ecx]
movzx eax, byte [edx + 0x13]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
cmp esi, 1
jne 0x4dfa87
movzx edx, word [edx]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
fld dword [eax + 8]
fmul st(3)
fld dword [eax]
fmul st(3)
faddp st(1)
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x4dfab2
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
mov edx, dword [ecx + 0x88]
movzx eax, byte [edx + 0x13]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
cmp esi, 1
jne 0x4dfad7
movzx edx, word [edx]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
fld dword [eax + 8]
fmul st(3)
fld dword [eax]
fmul st(3)
faddp st(1)
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x4dfb02
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
mov edx, dword [ecx + 0x110]
movzx eax, byte [edx + 0x13]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
cmp esi, 1
jne 0x4dfb27
movzx edx, word [edx]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
fld dword [eax + 8]
fmul st(3)
fld dword [eax]
fmul st(3)
faddp st(1)
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x4dfb52
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
add ecx, 0x220
sub edi, 1
jne 0x4dfa16
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
cmp ebx, eax
jge 0x4dfbd8
mov ecx, ebx
imul ecx, ecx, 0x88
mov edi, eax
lea edx, [ecx + ebp + 0x78]
sub edi, ebx
mov ecx, dword [edx]
movzx eax, byte [ecx + 0x13]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
cmp esi, 1
jne 0x4dfb9e
movzx ecx, word [ecx]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add eax, ecx
fld dword [eax + 8]
fmul st(3)
fld dword [eax]
fmul st(3)
faddp st(1)
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fcompi st(1)
fstp st(0)
jbe 0x4dfbc9
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
add edx, 0x88
sub edi, 1
jne 0x4dfb7d
mov edi, dword [esp + 0x18]
fstp st(0)
mov eax, dword [esp + esi*4 + 0x40]
fld dword [edi + ebp + 0x58]
mov ecx, dword [esp + 0x60]
fstp dword [esp + 0x10]
lea edx, [esi + esi*2 + 3]
fld dword [edi + ebp + 0x54]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fld st(0)
fmul st(3)
fld dword [esp + 0x28]
fld st(0)
fmul st(6)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fdivp st(3)
fxch st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fld dword [eax]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x30]
movss xmm0, dword [esp + 0x30]
fmulp st(1)
fsubr dword [eax + 8]
mov eax, dword [esp + 0x2c]
fstp dword [esp + 0x34]
fld dword [eax + ebp + 0x58]
movss xmm1, dword [esp + 0x34]
fstp dword [esp + 0x28]
fld dword [eax + ebp + 0x54]
mov eax, dword [esp + esi*4 + 0x48]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x28]
fld st(0)
fmulp st(3)
fld dword [esp + 0x10]
fld st(0)
fmulp st(5)
fxch st(3)
fsubrp st(4)
fxch st(3)
fstp dword [esp + 0x28]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fmulp st(3)
fld dword [eax]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x28]
fld dword [eax + 8]
movss dword [ecx + edx*4], xmm0
movss xmm0, dword [esp + 0x68]
fxch st(2)
fmulp st(1)
lea eax, [ecx + edx*4]
movss dword [eax + 4], xmm0
movss dword [eax + 8], xmm1
fsubp st(1)
lea eax, [esi + esi*2]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
fstp dword [esp + 0x10]
add esi, 1
cmp esi, 2
fld dword [esp + 0x28]
fstp dword [eax]
movss dword [eax + 4], xmm0
fld dword [esp + 0x10]
fstp dword [eax + 8]
jl 0x4df960
mov eax, ecx
fld dword [eax]
movss xmm0, dword [esp + 0x6c]
fstp dword [eax + 0x30]
pop edi
fld dword [eax + 8]
pop esi
fstp dword [eax + 0x38]
pop ebp
fld dword [eax + 0xc]
movss dword [eax + 0x34], xmm0
fstp dword [eax + 0x3c]
movss dword [eax + 0x40], xmm0
fld dword [eax + 0x14]
movss dword [eax + 0x4c], xmm0
fstp dword [eax + 0x44]
movss dword [eax + 0x58], xmm0
fld dword [eax + 0x18]
pop ebx
fstp dword [eax + 0x48]
fld dword [eax + 0x20]
fstp dword [eax + 0x50]
fld dword [eax + 0x24]
fstp dword [eax + 0x54]
fld dword [eax + 0x2c]
fstp dword [eax + 0x5c]
add esp, 0x4c
ret