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

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x110]
mov eax, dword [edi + 0x18]
movzx edx, byte [eax + 0x8b]
movzx ecx, byte [eax + 0x8a]
mov eax, dword [0x705898]
mov eax, dword [eax + 0x3c4]
mov esi, dword [edi + 0x10]
xor eax, 1
movzx eax, byte [eax + edi + 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ecx + ecx*4]
shl eax, 5
add esi, eax
test edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], eax
jle 0x4ca482
mov ebp, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x1c], 0
je 0x4ca43d
mov ecx, dword [0x705898]
mov edx, dword [ecx + 0x3c4]
xor edx, 1
mov eax, dword [esi + edx*4 + 0x90]
mov ebx, dword [eax + 0x30]
mov ebp, dword [eax + 0x34]
add eax, 0x30
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
mov eax, esi
call fcn.004ca200
cmp dword [esp + 0x1c], 0
je 0x4ca46d
mov ecx, dword [0x705898]
mov edx, dword [ecx + 0x3c4]
mov eax, dword [esi + edx*4 + 0x90]
mov ecx, dword [esp + 0x6c]
add eax, 0x30
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
add esi, 0xa0
sub dword [esp + 0x20], 1
jne 0x4ca410
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
mov ebp, dword [edi + 0x18]
xor ebx, ebx
test edx, edx
lea ecx, [ebp + 0x84]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x5c], ebx
jle 0x4cab3e
lea edx, [esp + 0xcc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
jmp 0x4ca4c0
mov edi, dword [esp + 0x110]
jmp 0x4ca4c0
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ecx]
mov ecx, dword [esi + 0x98]
sub ecx, eax
movss xmm0, dword [0x64952c]
mov eax, 0x66666667
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x88], ecx
movss xmm1, dword [esp + 0x88]
mov dword [esp + 0x84], eax
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [0x705898]
mov dword [esp + 0x8c], eax
mulss xmm1, xmm0
movss dword [esp + 0x88], xmm1
movss xmm1, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mulss xmm1, xmm0
movss dword [esp + 0x8c], xmm1
mov eax, dword [edx + 0x3c4]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx + eax*4 + 0x90]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x9c]
push ecx
call fcn.005932e0
mov edx, dword [0x705898]
mov eax, dword [edx + 0x3c4]
mov eax, dword [esi + eax*4 + 0x90]
movss xmm0, dword [esp + 0x94]
subss xmm0, dword [eax + 0x30]
add eax, 0x30
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x98]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x9c]
subss xmm0, dword [eax + 8]
lea ecx, [esp + 0x74]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0xa0]
subss xmm0, dword [eax + 0xc]
push ecx
mov edx, ecx
push edx
movss dword [esp + 0x88], xmm0
call fcn.00591360
xorps xmm2, xmm2
mov eax, dword [0x705898]
movss xmm1, dword [esp + 0x74]
movss xmm3, dword [esp + 0x78]
movss xmm6, dword [esp + 0x7c]
movss dword [esp + 0x80], xmm2
mov ecx, dword [eax + 0x3c4]
movss xmm0, dword [ebp + 0x18]
mov eax, dword [esi + ecx*4 + 0x90]
movss xmm4, dword [eax + 0x30]
movss xmm5, dword [ebp + 0x1c]
add eax, 0x30
mulss xmm1, xmm0
addss xmm4, xmm1
movss xmm1, dword [eax + 4]
mulss xmm3, xmm0
addss xmm5, xmm3
addss xmm1, xmm5
movss xmm5, dword [eax + 8]
mulss xmm6, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x38], xmm4
movss dword [esp + 0x3c], xmm1
mov edx, dword [esp + 0xa8]
movsx edx, byte [edx + ebx]
cmp edx, 5
movss xmm1, dword [eax + 0xc]
addss xmm5, xmm6
addss xmm1, xmm0
movss dword [esp + 0x40], xmm5
movss dword [esp + 0x44], xmm1
mov dword [esp + 0xa4], edx
jge 0x4caa09
mov edx, dword [0x8c0870]
and edx, 8
mov dword [esp + 0x14], edx
je 0x4ca6a5
cmp edi, 0x22
jne 0x4caa09
mov edx, dword [esp + 0x110]
mov ebx, dword [edx + 0x28]
lea edx, [ebx*8]
sub edx, ebx
lea edx, [edx + edx*4]
shl edx, 4
add edx, dword [0x69647c]
cmp dword [esp + 0x14], 0
movss xmm0, dword [edx + 0x94]
je 0x4ca7d4
cmp byte [edx + 0x1bf], 0xff
je 0x4ca6fc
mov edx, dword [esp + 0x110]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x98]
movss xmm1, dword [edx + 0x14]
addss xmm1, xmm0
movaps xmm0, xmm1
cmp edi, 0x22
jne 0x4ca713
mov edx, dword [esp + 0x110]
mov edx, dword [edx + 0x10]
subss xmm0, dword [edx + 0x650]
movaps xmm1, xmm0
mulss xmm1, dword [0x64de4c]
cvttss2si edx, xmm1
cvtsi2ss xmm1, edx
mulss xmm1, dword [0x649918]
subss xmm0, xmm1
movaps xmm3, xmm0
movaps xmm6, xmm2
subss xmm6, xmm3
movss dword [esp + 0x58], xmm6
fld dword [esp + 0x58]
mov edx, dword [esp + 0x110]
fsin
mov edi, dword [edx + 0x10]
mov esi, dword [edi + ecx*4 + 0x90]
mov edx, dword [esp + 0xa4]
cmp edx, 4
movss dword [esp + 0x10], xmm3
movaps xmm1, xmm4
subss xmm1, dword [esi + 0x30]
movaps xmm0, xmm5
subss xmm0, dword [esi + 0x38]
movaps xmm3, xmm0
movaps xmm7, xmm1
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x50], xmm2
fstp dword [esp + 0x18]
fld dword [esp + 0x58]
mulss xmm3, dword [esp + 0x18]
fcos
mulss xmm1, dword [esp + 0x18]
fstp dword [esp + 0x14]
movss xmm6, dword [esp + 0x14]
mulss xmm7, xmm6
mulss xmm0, xmm6
addss xmm3, xmm7
subss xmm0, xmm1
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x30], xmm0
ja case.default.0x4ca7cd
jmp dword [edx*4 + 0x4cab4c]
cmp edi, 1
jne 0x4ca6fc
mov edx, dword [esi + 0x98]
movss xmm1, dword [edx + 0x10]
addss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x4ca713
movss xmm0, dword [ebp + 0x14]
comiss xmm0, xmm3
jbe case.default.0x4ca7cd
fld dword [ebp + 0x14]
fsub dword [esp + 0x28]
fld dword [esp + 0x10]
fcos
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fsin
fmul st(1)
fchs
jmp 0x4ca9d7
movss xmm1, dword [ebp + 0x14]
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm1, xmm0
jbe case.default.0x4ca7cd
fld dword [ebp + 0x14]
fchs
fsub dword [esp + 0x28]
fld dword [esp + 0x10]
fcos
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fsin
fmul st(1)
fchs
jmp 0x4ca9d7
mov edx, dword [edi + ecx*4 + 0x310]
mov ebx, dword [edx + 0x30]
add edx, 0x30
mov dword [esp + 0xac], ebx
fld dword [esp + 0xac]
fsub dword [esi + 0x30]
mov ebx, dword [edx + 4]
mov dword [esp + 0xb0], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0xb4], ebx
fld dword [esp + 0xb4]
fsub dword [esi + 0x38]
mov edx, dword [edx + 0xc]
mov ecx, dword [edi + ecx*4 + 0x3b0]
add ecx, 0x30
fld st(0)
mov dword [esp + 0xb8], edx
fmul st(1)
mov edx, dword [ecx]
fld st(2)
mov dword [esp + 0xbc], edx
fmul st(3)
mov edx, dword [ecx + 4]
mov dword [esp + 0xc0], edx
mov edx, dword [ecx + 8]
faddp st(1)
mov dword [esp + 0xc4], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0xc8], ecx
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x18]
fld dword [esp + 0xbc]
movss xmm1, dword [esp + 0x18]
fsub dword [esi + 0x30]
fld dword [esp + 0xc4]
fsub dword [esi + 0x38]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fst dword [esp + 0x14]
fld dword [esp + 0x18]
fcompi st(1)
fstp st(0)
ja 0x4ca926
movss xmm1, dword [esp + 0x14]
comiss xmm1, dword [ebp + 0x14]
movss dword [esp + 0x20], xmm1
ja 0x4ca93d
movss xmm1, dword [ebp + 0x14]
movss dword [esp + 0x20], xmm1
comiss xmm1, xmm0
jbe 0x4ca964
fld dword [esp + 0x20]
fsub dword [esp + 0x30]
fld dword [esp + 0x10]
fsin
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fcos
fmul st(1)
fstp dword [esp + 0x50]
fstp st(0)
movss xmm0, dword [esp + 0xc0]
movss xmm1, dword [esp + 0xb0]
comiss xmm0, xmm1
jbe 0x4ca97e
movaps xmm0, xmm1
subss xmm0, dword [0x64de54]
movss xmm1, dword [esp + 0x3c]
comiss xmm1, xmm0
jbe case.default.0x4ca7cd
subss xmm0, xmm1
movaps xmm2, xmm0
jmp case.default.0x4ca7cd
movaps xmm1, xmm2
subss xmm1, xmm0
movss xmm0, dword [ebp + 0x14]
comiss xmm0, xmm1
jbe case.default.0x4ca7cd
fld dword [ebp + 0x14]
fchs
jmp 0x4ca9bf
movss xmm1, dword [ebp + 0x14]
comiss xmm1, xmm0
jbe case.default.0x4ca7cd
fld dword [ebp + 0x14]
fsub dword [esp + 0x30]
fld dword [esp + 0x10]
fsin
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fcos
fmul st(1)
fstp dword [esp + 0x50]
fstp st(0)
movss xmm0, dword [esp + 0x3c]
addss xmm4, dword [esp + 0x48]
addss xmm5, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
addss xmm0, xmm2
movss dword [esp + 0x38], xmm4
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm5
movss xmm3, dword [esp + 0x9c]
movss xmm2, dword [esp + 0x94]
subss xmm5, xmm3
movss dword [esp + 0x6c], xmm5
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
subss xmm4, xmm2
movss dword [esp + 0x64], xmm4
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x28], xmm4
faddp st(1)
fsqrt
fmul dword [0x649534]
fsubr dword [ebp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x3c]
fsub dword [esp + 0x98]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fsqrt
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fld dword [esp + 0x14]
fcompi st(1)
fstp st(0)
jbe 0x4caaf2
movss xmm0, dword [esp + 0x18]
movss xmm1, dword [0x649444]
divss xmm1, dword [esp + 0x14]
movaps xmm6, xmm0
mulss xmm6, xmm1
mulss xmm6, xmm4
addss xmm6, xmm2
movaps xmm2, xmm0
mulss xmm2, xmm1
mulss xmm2, dword [esp + 0x2c]
addss xmm2, dword [esp + 0x98]
mulss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm3
movss dword [esp + 0x38], xmm6
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x40], xmm0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
add dword [esp + 0x1c], 0xa0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov eax, dword [esp + 0x24]
mov edi, eax
mov dword [edi], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x44]
add ebx, 1
add eax, 0x10
mov dword [edi + 8], esi
add ebp, 0x20
cmp ebx, dword [esp + 0x60]
mov dword [edi + 0xc], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], eax
jl 0x4ca4b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret