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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf237
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov ecx, dword [0x9c25b4]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
push 0x2bf20
push 1
push dword [esi + 0xa0]
mov dword [ebp - 0x40], eax
call fcn.004abba0
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x5a54c1
cmp dword [edi + 0x318], 0
je 0x5a54c1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
test eax, eax
je 0x5a54c1
mov ecx, dword [edi + 0x318]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [edi + 0x318]
lea edx, [ebp - 0x30]
push 0
push edx
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x2c]
mov eax, 0xaaaaaaab
mul dword [ebp - 0x1c]
mov eax, dword [esi + 0x9c]
shr edx, 4
cmp eax, 1
jne 0x5a4fc3
mov edi, 0xffff0000
jmp 0x5a4fd3
cmp eax, 4
mov edi, 0xffaaaaaa
mov ecx, 0xffdd4400
cmove edi, ecx
test edx, edx
jle 0x5a4fef
xor ecx, ecx
nop dword [eax]
mov eax, dword [ebp - 0x30]
lea ecx, [ecx + 0x18]
mov dword [ecx + eax - 0xc], edi
sub edx, 1
jne 0x5a4fe0
mov edi, dword [ebp - 0x34]
mov eax, dword [edi + 0x318]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov dword [edi + 0x298], 0x5b
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov edi, dword [ebp - 0x40]
mov eax, edi
sub eax, dword [esi + 0x80]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
mov eax, dword [esi + 0xb0]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x605750]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x604d2c]
movss dword [ebp - 0x3c], xmm1
movss dword [esi + 0xac], xmm1
jbe 0x5a5077
cmp dword [esi + 0x1c], 0
je 0x5a5077
mov dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x5a50a5
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x90], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x98], eax
movss xmm0, dword [ecx + 0x30]
addss xmm0, dword [0x604dc4]
movss dword [esi + 0x94], xmm0
movss xmm1, dword [esi + 0x94]
subss xmm1, dword [esi + 0x88]
movss xmm0, dword [esi + 0x90]
subss xmm0, dword [esi + 0x84]
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [esi + 0x98]
subss xmm1, dword [esi + 0x8c]
movaps xmmword [ebp - 0x50], xmm0
movss dword [ebp - 0x34], xmm1
call fcn.0045e630
subss xmm0, dword [0x604e1c]
mov eax, dword [esi + 0x9c]
movss dword [esi + 0xa4], xmm0
cmp eax, 2
jne 0x5a51ad
mov eax, 0x10624dd3
mov ecx, edi
mul edi
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x605750]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x605088]
divss xmm0, dword [0x60529c]
movss dword [esi + 0xa8], xmm0
mov edx, dword [0x9c25b0]
mov ecx, dword [0x9c25ac]
movss xmm3, dword [esi + 0xac]
movss xmm2, dword [0x604dc4]
comiss xmm3, xmm2
jb 0x5a51fd
mov byte [esi + 0x14], 1
mov dword [ecx + 0x21a7c], 1
mov eax, dword [edx + 0x10]
test eax, eax
je 0x5a54ba
nop dword [eax]
cmp dword [eax + 0x1c], esi
jne 0x5a519c
mov dword [eax + 0x1c], 0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x5a5190
mov eax, 1
jmp 0x5a54c3
cmp eax, 4
jne 0x5a514b
movss xmm0, dword [ebp - 0x3c]
comiss xmm0, dword [0x604d2c]
mov ecx, dword [0x9c25ac]
mov edx, dword [0x9c25b0]
jbe 0x5a5157
mov byte [esi + 0x14], 1
mov dword [ecx + 0x21a7c], 1
mov eax, dword [edx + 0x10]
test eax, eax
je 0x5a5157
cmp dword [eax + 0x1c], esi
jne 0x5a51f1
mov dword [eax + 0x1c], 0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x5a51e5
jmp 0x5a5157
mov ecx, dword [esi + 0x9c]
subss xmm2, xmm3
movss xmm6, dword [esi + 0x84]
movss xmm7, dword [esi + 0x88]
movss xmm1, dword [esi + 0x8c]
movss xmm4, dword [esi + 0x94]
movss xmm5, dword [esi + 0x98]
movss dword [ebp - 0x3c], xmm1
mulss xmm6, xmm2
mulss xmm7, xmm2
cmp ecx, 4
jne 0x5a52aa
movss xmm1, dword [ebp - 0x38]
movaps xmm0, xmmword [ebp - 0x50]
addss xmm1, xmm1
addss xmm0, xmm0
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [ebp - 0x34]
addss xmm0, dword [esi + 0x90]
addss xmm4, dword [ebp - 0x38]
addss xmm1, xmm1
mulss xmm0, xmm3
addss xmm5, xmm1
mulss xmm4, xmm3
movss xmm1, dword [ebp - 0x3c]
addss xmm0, xmm6
mulss xmm1, xmm2
mulss xmm5, xmm3
addss xmm4, xmm7
addss xmm5, xmm1
unpcklps xmm0, xmm4
movq qword [esi + 0x74], xmm0
movss dword [ebp - 0x44], xmm5
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x7c], eax
jmp 0x5a5373
movss xmm0, dword [0x604f80]
movss xmm5, dword [ebp - 0x38]
movaps xmm1, xmmword [ebp - 0x50]
mulss xmm5, xmm0
mulss xmm1, xmm0
movss dword [ebp - 0x38], xmm5
movss xmm5, dword [ebp - 0x34]
mulss xmm5, xmm0
movss xmm0, dword [esi + 0x8c]
mulss xmm0, xmm2
movss dword [ebp - 0x34], xmm5
movss xmm5, dword [esi + 0x98]
addss xmm1, dword [esi + 0x90]
addss xmm4, dword [ebp - 0x38]
addss xmm5, dword [ebp - 0x34]
mulss xmm1, xmm3
mulss xmm4, xmm3
mulss xmm5, xmm3
addss xmm1, xmm6
addss xmm4, xmm7
addss xmm5, xmm0
unpcklps xmm1, xmm4
movq qword [esi + 0x74], xmm1
movss dword [ebp - 0x44], xmm5
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x7c], eax
cmp ecx, 2
je 0x5a5331
cmp ecx, 3
jne 0x5a5373
mov ecx, dword [esi + 0xbc]
movq xmm0, qword [esi + 0x74]
movq qword [ecx + 0x74], xmm0
mov eax, dword [esi + 0x7c]
mov dword [ecx + 0x7c], eax
mov ecx, dword [esi + 0xc0]
movq xmm0, qword [esi + 0x74]
movq qword [ecx + 0x74], xmm0
mov eax, dword [esi + 0x7c]
mov dword [ecx + 0x7c], eax
mov ecx, dword [esi + 0xc4]
movq xmm0, qword [esi + 0x74]
movq qword [ecx + 0x74], xmm0
mov eax, dword [esi + 0x7c]
mov dword [ecx + 0x7c], eax
mov ecx, dword [esi + 0xb8]
sub esp, 8
movss xmm1, dword [esi + 0x7c]
movss xmm0, dword [esi + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
mov eax, esp
movss dword [eax], xmm0
movss dword [eax + 4], xmm1
call edx
cmp dword [esi + 0x9c], 3
je 0x5a54ba
mov eax, edi
sub eax, dword [esi + 0xb4]
cmp eax, 0x64
jbe 0x5a54ba
call fcn.0046c00b
cdq
mov ecx, 5
idiv ecx
push 0x184
mov esi, edx
call fcn.0046677d
mov edi, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 0
push 0x184
push 0
push edi
call fcn.00468b40
add esp, 0x10
movd xmm3, esi
cvtdq2ps xmm3, xmm3
mov ecx, edi
push 0x50
push 1
sub esp, 0xc
mulss xmm3, dword [0x604ce8]
mov dword [esp + 8], 0x3a83126f
addss xmm3, dword [0x604d04]
movss dword [esp + 4], xmm3
movss dword [esp], xmm3
push 0x3e8
push 0
call fcn.004eb060
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x54]
movss xmm1, dword [esi + 0x78]
movss xmm2, dword [esi + 0x74]
subss xmm1, dword [0x604d2c]
movss xmm0, dword [esi + 0x7c]
movss dword [ebp - 0x44], xmm0
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x6c], 1
unpcklps xmm2, xmm1
movq qword [edi + 0x74], xmm2
mov dword [edi + 0x7c], eax
mov dword [edi + 0x100], 1
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x5a5482
push 0xffaaffee
jmp 0x5a548c
cmp eax, 1
jne 0x5a5493
push 0xffff9999
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
mov eax, dword [0x9c25b0]
mov ecx, dword [eax + 0x2c]
mov dword [edi + 4], ecx
mov eax, dword [ecx + 0x10]
mov dword [edi + 0xc], eax
mov dword [ecx + 0x10], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x5a54b1
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x40]
mov dword [esi + 0xb4], eax
mov eax, 1
jmp 0x5a54c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4