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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov ecx, 0x725550
call fcn.006531b0
test eax, eax
jbe 0x5e8955
mov edi, dword [ebp + 8]
mov esi, 0x95470c
mov dword [esp + 0x10], esi
add edi, 0x14
mov dword [esp + 0x20], eax
lea eax, [esi - 4]
test eax, eax
je 0x5e893d
mov eax, dword [esi + 0x2f8]
lea ecx, [edi - 0x10]
push ecx
lea edx, [edi - 0x14]
push edx
call fcn.005d96e0
mov dword [edi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x5e8928
mov edx, dword [eax + 0x1b18]
mov ecx, dword [eax + 0x1b14]
mov eax, dword [eax + 0x1b1c]
mov dword [esp + 0x48], edx
fld dword [esp + 0x48]
mov dword [esp + 0x44], ecx
fld dword [esp + 0x44]
mov dword [esp + 0x4c], eax
fld dword [esp + 0x4c]
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 fcn.004ad260
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
fstp dword [edi - 4]
mov eax, dword [esi + 0x2f8]
lea edx, [esp + 0x10]
push edx
call fcn.005d96e0
mov edx, dword [esp + 0xc]
test edx, edx
jl 0x5e8928
mov ebx, dword [0xa6f96c]
mov esi, dword [esp + 0x18]
mov eax, edx
imul eax, eax, 0x88
mov ecx, dword [eax + ebx + 0x78]
movzx eax, byte [ecx + 0x13]
lea eax, [eax + esi + 1]
lea eax, [eax + eax*2]
shl eax, 4
movss xmm0, dword [eax + ecx]
add eax, ecx
mov ecx, dword [0xa6f970]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [0x9540bc]
cmp dword [eax + 0x30], 0
movss dword [esp + 0x40], xmm0
jle 0x5e87a8
lea eax, [edx + 1]
cdq
idiv ecx
jmp 0x5e87b3
sub edx, 1
mov dword [esp + 0xc], edx
jns 0x5e87b7
add edx, ecx
mov dword [esp + 0xc], edx
imul edx, edx, 0x88
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x78]
movzx eax, byte [edx + 0x13]
movzx ecx, byte [ecx + 0x6c]
add eax, 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
sub ecx, 1
test esi, esi
jge 0x5e87e1
xor ecx, ecx
jmp 0x5e87e7
cmp esi, ecx
jg 0x5e87e7
mov ecx, esi
mov dword [esp + 0x18], ecx
lea ecx, [ecx + ecx*2]
shl ecx, 4
fld dword [eax + ecx]
add eax, ecx
fstp dword [esp + 0x34]
lea edx, [esp + 0x24]
fld dword [eax + 8]
push edx
fstp dword [esp + 0x3c]
mov eax, edx
fld dword [esp + 0x38]
push eax
fsub dword [esp + 0x44]
fstp dword [esp + 0x2c]
fld dword [esp + 0x40]
fsub dword [esp + 0x48]
fstp dword [esp + 0x30]
call sub.d3dx9_35.dll_D3DXVec2Normalize
movss xmm0, dword [esp + 0x44]
movss xmm1, dword [0x6fa918]
comiss xmm0, xmm1
jbe 0x5e885f
movss xmm2, dword [0x6bb308]
comiss xmm2, xmm0
jbe 0x5e885f
movss xmm0, dword [esp + 0x4c]
comiss xmm0, xmm1
jbe 0x5e885f
comiss xmm2, xmm0
jbe 0x5e885f
xorps xmm0, xmm0
movss dword [edi], xmm0
jmp 0x5e8873
fld dword [esp + 0x28]
fmul dword [esp + 0x4c]
fld dword [esp + 0x24]
fmul dword [esp + 0x44]
faddp st(1)
fstp dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x848]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x60]
push edx
push 8
call eax
fld dword [esp + 0x74]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x7c]
push ecx
mov edx, ecx
fstp dword [esp + 0x34]
push edx
call sub.d3dx9_35.dll_D3DXVec2Normalize
fld dword [esp + 0x28]
fmul dword [esp + 0x30]
fld dword [esp + 0x24]
fmul dword [esp + 0x2c]
faddp st(1)
fstp dword [esp + 0x1c]
fld1
fld dword [esp + 0x1c]
fcomi st(1)
fstp st(1)
jae 0x5e88f3
movss xmm0, dword [0x6f99f4]
comiss xmm0, dword [esp + 0x1c]
jae 0x5e88f3
call fcn.004add50
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x14]
jmp 0x5e88fe
xorps xmm0, xmm0
fstp st(0)
movss dword [esp + 0x14], xmm0
fld qword [0x6fa910]
fld dword [esp + 0x14]
fcompi st(1)
fstp st(0)
jb 0x5e8924
movss xmm0, dword [0x6fa908]
comiss xmm0, dword [esp + 0x14]
jb 0x5e8924
mov dword [edi + 4], 1
mov esi, dword [esp + 0x10]
lea ebx, [esi + 0xb2c]
mov ecx, ebx
call fcn.005a72e0
mov dword [edi - 0xc], eax
mov eax, dword [ebx]
mov dword [edi - 8], eax
add esi, 0xec8
add edi, 0x1c
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], esi
jne 0x5e86b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4