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

Disassembly:
push esi
push ebp
sub esp, 0x50
xor ebp, ebp
mov esi, dword [esp + 0x68]
movss xmm7, dword [edx]
mov edx, dword [esp + 0x6c]
movss xmm6, dword [esi]
movss xmm1, dword [ecx]
movss xmm0, dword [edx]
ucomiss xmm7, xmm6
jp 0x40b9e2
je 0x40b9fe
ucomiss xmm1, xmm0
jp 0x40b9e9
je 0x40b9fe
mov eax, dword [esp + 0x80]
mov dword [eax], 0
add esp, 0x50
pop ebp
pop esi
ret 0x30
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
movss xmm5, dword [edx]
mov edx, dword [esp + 0x74]
movss xmm2, dword [ecx]
movss dword [esp + 0x48], xmm5
subss xmm5, xmm2
movss xmm3, dword [esi]
movss xmm4, dword [edx]
movss dword [esp + 0x4c], xmm3
subss xmm3, xmm4
movss dword [esp + 0x40], xmm2
movaps xmm2, xmm5
movss dword [esp + 0x28], xmm3
mulss xmm2, xmm5
mulss xmm3, xmm3
movss dword [esp + 0x44], xmm4
addss xmm2, xmm3
sqrtss xmm2, xmm2
movss xmm3, dword [0x48283c]
movss xmm4, dword [eax]
movss dword [esp + 4], xmm2
movss dword [esp + 0x2c], xmm3
movss dword [esp + 8], xmm4
comiss xmm3, xmm2
movss xmm2, dword [esp + 0x28]
jbe 0x40baa5
movss xmm4, dword [0x476d68]
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x24], xmm4
movss dword [esp + 0x28], xmm4
jmp 0x40bbdb
movss xmm3, dword [esp + 8]
movaps xmm4, xmm3
mulss xmm4, xmm2
mulss xmm3, xmm5
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 4]
divss xmm4, xmm0
divss xmm3, xmm0
movss dword [esp + 0x14], xmm1
movss xmm1, dword [esp + 0x40]
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x28], xmm2
movaps xmm2, xmm1
movss dword [esp + 0x24], xmm4
addss xmm2, xmm4
movaps xmm4, xmm0
subss xmm1, xmm2
subss xmm4, xmm3
movss dword [esp], xmm3
subss xmm0, xmm4
movss xmm3, dword [esp + 0x4c]
movss dword [esp + 0x20], xmm2
subss xmm3, xmm4
mulss xmm1, xmm3
movss xmm3, dword [esp + 0x48]
movss dword [esp + 0x1c], xmm4
subss xmm3, xmm2
mulss xmm3, xmm0
pxor xmm2, xmm2
movss xmm0, dword [esp + 0x18]
subss xmm1, xmm3
comiss xmm1, xmm2
movss xmm2, dword [esp + 0x28]
movss xmm1, dword [esp + 0x14]
jbe 0x40bb7a
movss xmm4, dword [esp + 0x24]
addss xmm4, dword [esp + 0x48]
movss dword [esp + 0x24], xmm4
movss xmm4, dword [esp + 0x4c]
subss xmm4, dword [esp]
movss dword [esp + 0x28], xmm4
movss xmm4, dword [esp + 0x2c]
comiss xmm4, dword [esp + 4]
jmp 0x40bbdb
movss dword [esp + 0x18], xmm0
movss xmm4, dword [esp + 0x40]
movss xmm0, dword [esp + 0x24]
subss xmm4, xmm0
movss dword [esp + 0x20], xmm4
movss xmm4, dword [esp]
movaps xmm3, xmm4
addss xmm3, dword [esp + 0x44]
movss dword [esp + 0x1c], xmm3
movss xmm3, dword [esp + 0x48]
subss xmm3, xmm0
movss xmm0, dword [esp + 0x4c]
addss xmm0, xmm4
movss xmm4, dword [esp + 0x2c]
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x24], xmm3
comiss xmm4, dword [esp + 4]
movss xmm0, dword [esp + 0x18]
xorps xmm5, xmmword [0x476cb0]
xorps xmm2, xmmword [0x476cb0]
jbe 0x40bc07
movss xmm2, dword [0x476d68]
movss dword [esp + 0x30], xmm2
movaps xmm3, xmm2
movss dword [esp + 0x2c], xmm2
jmp 0x40bce5
movss dword [esp + 0x14], xmm1
movss xmm1, dword [esp + 8]
mulss xmm2, xmm1
mulss xmm5, xmm1
movss xmm3, dword [esp + 4]
divss xmm2, xmm3
divss xmm5, xmm3
movss xmm4, dword [esp + 0x48]
movss xmm3, dword [esp + 0x4c]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
movaps xmm1, xmm3
addss xmm0, xmm2
subss xmm1, xmm5
subss xmm4, xmm0
subss xmm3, xmm1
movss dword [esp], xmm5
movss xmm5, dword [esp + 0x44]
movss dword [esp + 0x30], xmm0
subss xmm5, xmm1
mulss xmm4, xmm5
movss xmm5, dword [esp + 0x40]
movss dword [esp + 0x2c], xmm1
subss xmm5, xmm0
mulss xmm5, xmm3
pxor xmm0, xmm0
movss xmm1, dword [esp + 0x14]
subss xmm4, xmm5
movss xmm5, dword [esp]
comiss xmm4, xmm0
movss xmm0, dword [esp + 0x18]
jbe 0x40bcae
movss xmm3, dword [esp + 0x44]
addss xmm2, dword [esp + 0x40]
subss xmm3, xmm5
jmp 0x40bce5
movss xmm4, dword [esp + 0x48]
movss xmm3, dword [esp + 0x44]
subss xmm4, xmm2
addss xmm3, xmm5
movss dword [esp + 0x30], xmm4
movss xmm4, dword [esp + 0x4c]
addss xmm4, xmm5
movss dword [esp + 0x2c], xmm4
movaps xmm4, xmm2
movss xmm2, dword [esp + 0x40]
subss xmm2, xmm4
movaps xmm5, xmm7
movss xmm4, dword [0x482834]
subss xmm5, xmm6
movss dword [esp + 0x34], xmm5
andps xmm5, xmmword [0x476cc0]
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0x38], xmm5
comiss xmm4, xmm5
jbe 0x40bdae
movss xmm4, dword [esp + 0x20]
maxss xmm4, dword [esp + 0x24]
comiss xmm7, xmm4
jbe 0x40bd2e
xor esi, esi
jmp 0x40be7e
movss xmm4, dword [esp + 0x20]
minss xmm4, dword [esp + 0x24]
comiss xmm4, xmm7
jbe 0x40bd46
xor esi, esi
jmp 0x40be7e
movss xmm4, dword [esp + 0x24]
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x20]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
jbe 0x40bd71
movss xmm4, dword [esp + 0x1c]
jmp 0x40bda3
movss dword [esp + 0x18], xmm0
movaps xmm4, xmm7
movss xmm0, dword [esp + 0x28]
movss xmm5, dword [esp + 0x1c]
subss xmm4, dword [esp + 0x20]
subss xmm0, xmm5
mulss xmm4, xmm0
divss xmm4, dword [esp]
movss xmm0, dword [esp + 0x18]
addss xmm4, xmm5
movss dword [esp + 4], xmm7
jmp 0x40be4a
movss xmm4, dword [esp + 0x1c]
maxss xmm4, dword [esp + 0x28]
comiss xmm1, xmm4
jbe 0x40bdc6
xor esi, esi
jmp 0x40bf0e
movss xmm4, dword [esp + 0x1c]
minss xmm4, dword [esp + 0x28]
comiss xmm4, xmm1
jbe 0x40bdde
xor esi, esi
jmp 0x40bf0e
movss xmm4, dword [esp + 0x28]
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x1c]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
jbe 0x40be0f
movss xmm4, dword [esp + 0x20]
movss dword [esp + 4], xmm4
jmp 0x40be47
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
movss xmm4, dword [esp + 0x24]
movss xmm5, dword [esp + 0x20]
subss xmm0, dword [esp + 0x1c]
subss xmm4, xmm5
mulss xmm0, xmm4
divss xmm0, dword [esp]
addss xmm0, xmm5
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x18]
movaps xmm4, xmm1
mov edx, dword [esp + 0x88]
mov ebp, 1
mov eax, dword [esp + 0x84]
mov esi, ebp
movss xmm5, dword [esp + 4]
movss dword [edx], xmm4
movss xmm4, dword [esp + 0x3c]
movss dword [eax], xmm5
comiss xmm4, dword [esp + 0x38]
jbe 0x40bf0e
movss xmm4, dword [esp + 0x24]
maxss xmm4, dword [esp + 0x30]
comiss xmm7, xmm4
ja 0x40bfd3
movss xmm4, dword [esp + 0x24]
minss xmm4, dword [esp + 0x30]
comiss xmm4, xmm7
ja 0x40bfd3
movss xmm4, dword [esp + 0x30]
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x24]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40bf03
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm7
movss xmm4, dword [esp + 0x2c]
movss xmm5, dword [esp + 0x28]
subss xmm0, dword [esp + 0x24]
subss xmm4, xmm5
mulss xmm0, xmm4
divss xmm0, dword [esp]
addss xmm5, xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x28], xmm5
movss dword [esp + 0x24], xmm7
jmp 0x40bf99
movss xmm4, dword [esp + 0x28]
maxss xmm4, dword [esp + 0x2c]
comiss xmm1, xmm4
ja 0x40c059
movss xmm4, dword [esp + 0x28]
minss xmm4, dword [esp + 0x2c]
comiss xmm4, xmm1
ja 0x40c059
movss xmm4, dword [esp + 0x2c]
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x28]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40bf93
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
movss xmm4, dword [esp + 0x30]
movss xmm5, dword [esp + 0x24]
subss xmm0, dword [esp + 0x28]
subss xmm4, xmm5
mulss xmm0, xmm4
divss xmm0, dword [esp]
addss xmm5, xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x24], xmm5
movss dword [esp + 0x28], xmm1
inc esi
mov eax, dword [esp + 0x84]
mov ebp, esi
mov edx, dword [esp + 0x88]
movss xmm4, dword [esp + 0x24]
movss dword [eax + esi*4 - 4], xmm4
movss xmm4, dword [esp + 0x3c]
movss xmm5, dword [esp + 0x28]
movss dword [edx + esi*4 - 4], xmm5
comiss xmm4, dword [esp + 0x38]
jbe 0x40c059
movss xmm4, dword [esp + 0x30]
maxss xmm4, xmm2
comiss xmm7, xmm4
ja 0x40c110
movss xmm4, dword [esp + 0x30]
minss xmm4, xmm2
comiss xmm4, xmm7
ja 0x40c110
movaps xmm4, xmm2
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x30]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40c04e
movss dword [esp + 0x18], xmm0
movaps xmm4, xmm7
movss xmm5, dword [esp + 0x2c]
movaps xmm0, xmm3
subss xmm4, dword [esp + 0x30]
subss xmm0, xmm5
mulss xmm4, xmm0
divss xmm4, dword [esp]
movss xmm0, dword [esp + 0x18]
addss xmm5, xmm4
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x30], xmm7
jmp 0x40c0da
movss xmm4, dword [esp + 0x2c]
maxss xmm4, xmm3
comiss xmm1, xmm4
ja 0x40c17a
movss xmm4, dword [esp + 0x2c]
minss xmm4, xmm3
comiss xmm4, xmm1
ja 0x40c17a
movaps xmm4, xmm3
movss xmm5, dword [esp + 0x3c]
subss xmm4, dword [esp + 0x2c]
movss dword [esp], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40c0d4
movss dword [esp + 0x18], xmm0
movaps xmm4, xmm1
movss xmm5, dword [esp + 0x30]
movaps xmm0, xmm2
subss xmm4, dword [esp + 0x2c]
subss xmm0, xmm5
mulss xmm4, xmm0
divss xmm4, dword [esp]
movss xmm0, dword [esp + 0x18]
addss xmm5, xmm4
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x2c], xmm1
inc esi
mov eax, dword [esp + 0x84]
mov ebp, esi
mov edx, dword [esp + 0x88]
movss xmm4, dword [esp + 0x30]
movss dword [eax + esi*4 - 4], xmm4
movss xmm4, dword [esp + 0x3c]
movss xmm5, dword [esp + 0x2c]
movss dword [edx + esi*4 - 4], xmm5
comiss xmm4, dword [esp + 0x38]
jbe 0x40c17a
movaps xmm4, xmm2
maxss xmm4, dword [esp + 0x20]
comiss xmm7, xmm4
ja 0x40c1f7
movaps xmm4, xmm2
minss xmm4, dword [esp + 0x20]
comiss xmm4, xmm7
ja 0x40c1f7
movss xmm4, dword [esp + 0x20]
movss xmm5, dword [esp + 0x3c]
subss xmm4, xmm2
movss dword [esp + 0x20], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40c175
movss xmm4, dword [esp + 0x1c]
movaps xmm5, xmm7
subss xmm5, xmm2
subss xmm4, xmm3
mulss xmm5, xmm4
divss xmm5, dword [esp + 0x20]
addss xmm3, xmm5
movaps xmm2, xmm7
jmp 0x40c1da
movaps xmm4, xmm3
maxss xmm4, dword [esp + 0x1c]
comiss xmm1, xmm4
ja 0x40c1f7
movaps xmm4, xmm3
minss xmm4, dword [esp + 0x1c]
comiss xmm4, xmm1
ja 0x40c1f7
movss xmm4, dword [esp + 0x1c]
movss xmm5, dword [esp + 0x3c]
subss xmm4, xmm3
movss dword [esp + 0x1c], xmm4
andps xmm4, xmmword [0x476cc0]
comiss xmm5, xmm4
ja 0x40c1d7
movss xmm4, dword [esp + 0x20]
movaps xmm5, xmm1
subss xmm5, xmm3
subss xmm4, xmm2
mulss xmm5, xmm4
divss xmm5, dword [esp + 0x1c]
addss xmm2, xmm5
movaps xmm3, xmm1
inc esi
mov eax, dword [esp + 0x84]
mov ebp, esi
mov edx, dword [esp + 0x88]
movss dword [eax + esi*4 - 4], xmm2
movss dword [edx + esi*4 - 4], xmm3
movss xmm3, dword [esp + 0x34]
movaps xmm5, xmm7
ucomiss xmm7, xmm6
mulss xmm3, xmm3
subss xmm0, xmm1
cmpeqss xmm6, xmm7
movaps xmm2, xmm0
lea ecx, [esi*4]
mulss xmm2, xmm0
movd edx, xmm6
movss xmm6, dword [esp + 8]
addss xmm3, xmm2
movaps xmm2, xmm6
mulss xmm6, xmm6
subss xmm2, dword [0x476d6c]
sqrtss xmm3, xmm3
jp 0x40c243
je 0x40c246
movaps xmm5, xmm1
mov eax, 1
movss xmm4, dword [0x482838]
add edx, 2
movss dword [esp + 8], xmm6
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x14], xmm1
movss dword [esp], xmm7
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
cmp eax, 1
mov ebx, ecx
movss xmm1, dword [esp + 0x40]
mov edi, esi
movss xmm0, dword [esp + 0x48]
movss xmm6, dword [esp + 0x4c]
je 0x40c293
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x44]
je 0x40c29e
movaps xmm0, xmm6
comiss xmm3, xmm4
jbe 0x40c2d2
movaps xmm6, xmm1
movaps xmm7, xmm0
subss xmm6, dword [esp]
subss xmm7, dword [esp + 0x14]
mulss xmm6, dword [esp + 0x18]
mulss xmm7, dword [esp + 0x34]
addss xmm6, xmm7
mulss xmm6, xmm6
sqrtss xmm6, xmm6
divss xmm6, xmm3
jmp 0x40c2da
movss xmm6, dword [0x476d68]
comiss xmm2, xmm6
jbe 0x40c34b
cmp edx, 1
je 0x40c387
movss xmm6, dword [esp + 8]
subss xmm0, xmm5
mulss xmm0, xmm0
mov ebp, dword [esp + 0x84]
subss xmm6, xmm0
sqrtss xmm6, xmm6
movaps xmm0, xmm1
subss xmm1, xmm6
addss xmm0, xmm6
movss dword [ebp + esi*4], xmm0
mov ebp, dword [esp + 0x88]
movss dword [ebp + esi*4], xmm5
add ecx, 8
add esi, 2
cmp edx, 1
lea ebp, [edi + 2]
je 0x40c36b
mov edi, dword [esp + 0x84]
movss dword [ebx + edi + 4], xmm1
mov edi, dword [esp + 0x88]
movss dword [ebx + edi + 4], xmm5
inc eax
cmp eax, 2
jle 0x40c275
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov dword [eax], ebp
jmp 0x40b9f6
mov edi, dword [esp + 0x84]
movss dword [ebx + edi + 4], xmm5
mov edi, dword [esp + 0x88]
movss dword [ebx + edi + 4], xmm1
jmp 0x40c34b
movss xmm6, dword [esp + 8]
movaps xmm7, xmm0
mov ebp, dword [esp + 0x84]
subss xmm1, xmm5
mulss xmm1, xmm1
movss dword [ebp + esi*4], xmm5
subss xmm6, xmm1
sqrtss xmm6, xmm6
mov ebp, dword [esp + 0x88]
movaps xmm1, xmm0
addss xmm7, xmm6
subss xmm1, xmm6
movss dword [ebp + esi*4], xmm7
jmp 0x40c323