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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x575e5a]
lea ecx, [esi + 0x575e9a]
cmp eax, ecx
je 0x5217ce
nop
cmp byte [eax], 0
jne 0x5218c8
inc eax
cmp eax, ecx
jne 0x5217c0
mov byte [esp + 0x12], 0
xorps xmm0, xmm0
mov byte [esp + 0x13], 0
movss dword [esp + 0x2c], xmm0
lea eax, [esi + 0x5275fc]
movss xmm0, dword [esp + 0x44]
lea edi, [esi + 0x581bdb]
xor edx, edx
mov dword [esp + 0x14], eax
mov ecx, 0xffa7e425
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x40]
lea eax, [esi + 0x581c30]
sub ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
lea ebx, [esi + 0x52ba94]
mov dword [esp + 0x28], ecx
movss dword [esp + 0x1c], xmm0
nop word [eax + eax]
cmp byte [edi], 0
je 0x521867
movss xmm1, dword [eax]
mov eax, dword [esi + 0x5267f8]
addss xmm1, dword [0x67ed4c]
movss xmm0, dword [eax + 0x50]
comiss xmm0, xmm1
jb 0x521867
cmp dword [ebx - 0x804], 0
jne 0x521867
mov eax, dword [esp + 0x18]
mov byte [edi], 0
mov dword [eax], 0
cmp byte [esp + 0x12], 0
je 0x52187b
cmp byte [edi - 0xbd81], 0
je 0x521b4e
cmp byte [edi], 0
jne 0x521b4e
lea eax, [edi + ecx]
push eax
lea ecx, [esi + 0x574a9c]
call fcn.00630620
cmp eax, dword [esi + 0x575e50]
mov eax, dword [esp + 0x14]
jne 0x521b54
cmp byte [eax - 0x68], 0
je 0x5218d2
movss xmm0, dword [ebx - 4]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ebx]
mov eax, dword [esp + 0x58]
movss dword [esp + 0x5c], xmm0
mov ecx, dword [esp + 0x5c]
jmp 0x5218eb
mov byte [esp + 0x12], 1
jmp 0x5217d3
cmp byte [ebx - 0x266], 0
je 0x521b54
mov eax, dword [ebx + 0x990]
mov ecx, dword [ebx + 0x994]
mov dword [esp + 0x50], eax
movss xmm0, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x581c1c]
mov dword [esp + 0x54], ecx
movss xmm2, dword [esp + 0x54]
mov dword [esp + 0x60], eax
movss xmm1, dword [esp + 0x60]
subss xmm1, xmm0
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x581c20]
movss dword [esp + 0x38], xmm0
mov dword [esp + 0x64], ecx
movss xmm0, dword [esp + 0x64]
subss xmm0, xmm2
movss dword [esp + 0x68], xmm1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mulss xmm1, dword [esp + 0x70]
movss dword [esp + 0x6c], xmm0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x74], ecx
mulss xmm0, dword [esp + 0x74]
movss dword [esp + 0x3c], xmm2
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x521979
sqrtsd xmm0, xmm0
jmp 0x52197e
call fcn.00649080
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x6b681c]
jbe 0x521a06
cmp dword [ebx - 0x804], 0
je 0x521a06
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x5267f8]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x67b308]
movss xmm1, dword [eax + 0x50]
lahf
test ah, 0x44
jp 0x5219ba
movss dword [ecx], xmm1
jmp 0x521a21
addss xmm0, dword [0x67f054]
comiss xmm1, xmm0
jb 0x521a21
mov eax, dword [esp + 0x28]
add eax, edi
mov byte [edi], 1
cmp eax, dword [esi + 0x527584]
jne 0x521a21
xor ecx, ecx
lea eax, [esi + 0x581bdb]
cmp byte [eax - 0xbd81], 0
je 0x5219ee
cmp byte [eax], 0
je 0x5219f8
inc ecx
inc eax
cmp ecx, 0x40
jl 0x5219e0
or ecx, 0xffffffff
push ecx
lea ecx, [esi + 0x511df0]
call fcn.00516460
jmp 0x521a21
mov ecx, dword [esp + 0x18]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x67b308]
lahf
test ah, 0x44
jnp 0x521a21
mov dword [ecx], 0
cmp byte [esp + 0x13], 0
jne 0x521a5f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
movss xmm0, dword [esp + 0x44]
mov dword [esp + 0x40], eax
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x13], 1
movss dword [esp + 0x1c], xmm0
jmp 0x521ab3
movss xmm1, dword [esp + 0x38]
movaps xmm0, xmm1
minss xmm0, dword [esp + 0x48]
maxss xmm1, dword [esp + 0x1c]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm1
movss xmm1, dword [esp + 0x3c]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm1
minss xmm0, dword [esp + 0x4c]
maxss xmm1, dword [esp + 0x20]
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x44], xmm0
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [eax + 4]
cvtsi2ss xmm1, dword [eax]
mulss xmm0, dword [0x67b0a8]
mulss xmm1, dword [0x67b0a8]
movss dword [esp + 0x7c], xmm0
mov ecx, dword [esp + 0x7c]
movss dword [esp + 0x78], xmm1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], eax
mulss xmm1, dword [esp + 0x80]
mov dword [esp + 0x84], ecx
mulss xmm0, dword [esp + 0x84]
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x521b20
sqrtsd xmm0, xmm0
jmp 0x521b25
call fcn.00649080
mov edx, dword [esp + 0x24]
cvtsd2ss xmm0, xmm0
inc edx
mov dword [esp + 0x24], edx
mulss xmm0, dword [0x680724]
mulss xmm0, dword [0x6b08d0]
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x14]
jmp 0x521b58
mov edx, dword [esp + 0x24]
add dword [esp + 0x18], 4
add eax, 0xec
mov ecx, dword [esp + 0x28]
inc edi
mov dword [esp + 0x14], eax
add ebx, 0x1208
mov eax, dword [esp + 0x28]
add eax, edi
cmp eax, 0x40
mov eax, dword [esp + 0x18]
jl 0x521830
movss xmm1, dword [esi + 0x581c28]
test edx, edx
jne 0x521c36
ucomiss xmm1, dword [0x67b308]
mov eax, dword [esi + 0x5267f8]
movss xmm0, dword [eax + 0x50]
lahf
test ah, 0x44
jp 0x521bc3
addss xmm0, dword [0x6806c8]
movss dword [esi + 0x581c28], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
comiss xmm0, xmm1
jbe 0x521f6c
mov eax, dword [0x7807b8]
push dword [0x7807bc]
movsd xmm0, qword [0x6af328]
add eax, 0xfffffff6
movd xmm1, eax
cvtdq2pd xmm1, xmm1
call fcn.00649b10
cvtsd2ss xmm0, xmm0
push ecx
lea ecx, [esi + 0x1a94]
movss dword [esp], xmm0
call fcn.00486960
mov dword [esi + 0x575e54], 0
mov byte [esi + 0x575e59], 0
mov word [esi + 0x581bd8], 0
mov byte [esi + 0x581bda], 0
mov dword [esi + 0x581c2c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
ucomiss xmm1, dword [0x67b308]
lahf
test ah, 0x44
jnp 0x521c4d
mov dword [esi + 0x581c28], 0
push 1
lea eax, [esi + 0x575e9a]
push eax
lea eax, [esi + 0x575e5a]
push eax
call fcn.00631640
movss xmm1, dword [esp + 0x1c]
cmp eax, 1
addss xmm1, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
sete al
cmp ecx, 1
mov byte [esi + 0x581bd8], al
mov dword [esp + 0x34], 0x447a0000
sete al
mov dword [esp + 0x3c], 0
mulss xmm1, dword [0x67b0b0]
mov byte [esi + 0x575e58], al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [esp + 0x20]
addss xmm1, dword [esp + 0x4c]
mulss xmm1, dword [0x67b0b0]
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x2c]
divss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x521ce2
xorps xmm1, xmm1
comiss xmm0, xmm1
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
movss dword [esp + 0x38], xmm1
cmovbe ecx, eax
lea eax, [esp + 0x34]
comiss xmm1, dword [0x67b0c8]
push ecx
cmovbe eax, ecx
mov ecx, esi
movss xmm0, dword [eax]
mov eax, dword [esi + 0x581c24]
movss dword [esp], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x58]
push dword [esp + 0x58]
cmp eax, dword [esi + 0x575e54]
jne 0x521d3b
mov edi, dword [0x780540]
call fcn.00520110
jmp 0x521d45
call fcn.00520110
mov edi, 0x32
push edi
push ecx
fstp dword [esp + 0x3c]
movss xmm0, dword [esp + 0x3c]
lea ecx, [esi + 0x1a94]
movss dword [esp], xmm0
call fcn.00486960
movss xmm1, dword [esi + 0x581c1c]
lea edi, [esi + 0x581c1c]
movss xmm0, dword [esp + 0x1c]
subss xmm0, xmm1
mov eax, dword [edi]
mov ecx, dword [edi + 4]
movss dword [esp + 0x2c], xmm1
mov dword [esp + 0x80], eax
movss xmm1, dword [esp + 0x80]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [edi + 4]
subss xmm1, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x38], 0x3be56042
movss dword [esp + 0x28], xmm0
movd xmm0, dword [0x78053c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x78], xmm1
divss xmm0, dword [0x6adde8]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], eax
mulss xmm1, dword [esp + 0x80]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x84]
subss xmm0, dword [esp + 0x20]
movss dword [esp + 0x7c], xmm0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x84], ecx
mulss xmm0, dword [esp + 0x84]
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x521e32
sqrtsd xmm0, xmm0
jmp 0x521e37
call fcn.00649080
mov al, byte [esi + 0x581bda]
lea ecx, [esi + 0x581bda]
movss xmm2, dword [0x67b0b4]
xorps xmm1, xmm1
movss xmm3, dword [0x67ed54]
mov dword [esp + 0x34], 0x3f800000
cvtsd2ss xmm1, xmm0
test al, al
je 0x521e7c
comiss xmm3, xmm1
jb 0x521e7c
mov byte [ecx], 0
lea ebx, [esi + 0x581c1c]
lea ecx, [esi + 0x581bda]
jmp 0x521e82
mov ebx, edi
test al, al
jne 0x521e9a
lea eax, [esi + 0x581c2c]
movaps xmm0, xmm1
subss xmm0, dword [eax]
mov edx, eax
comiss xmm0, xmm3
jbe 0x521ec6
mov edi, ebx
jmp 0x521ea0
lea eax, [esi + 0x581c2c]
movss xmm0, dword [eax]
mov edx, eax
ucomiss xmm0, dword [0x67b308]
lahf
test ah, 0x44
jnp 0x521ec6
movss xmm2, dword [0x67ed28]
mov dword [esp + 0x34], 0x3dcccccd
mov byte [ecx], 1
movss xmm3, dword [0x6b766c]
lea eax, [esp + 0x3c]
movss xmm0, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
subss xmm0, xmm3
movss dword [edx], xmm1
subss xmm1, dword [0x680704]
divss xmm0, dword [0x6aff20]
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x30]
addss xmm0, xmm3
comiss xmm3, xmm0
movss dword [esp + 0x3c], xmm0
cmovbe ecx, eax
lea eax, [esp + 0x34]
comiss xmm0, xmm2
cmovbe eax, ecx
mulss xmm1, dword [eax]
addss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x80], xmm1
movss xmm1, dword [esp + 0x28]
mulss xmm1, dword [eax]
mov ecx, dword [esp + 0x80]
addss xmm1, dword [esi + 0x581c20]
mov dword [esi + 0x52758c], ecx
mov dword [edi], ecx
mov byte [esi + 0x527588], 1
movss dword [esp + 0x84], xmm1
mov eax, dword [esp + 0x84]
mov dword [esi + 0x527590], eax
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret