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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x766480]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1df4c]
mov ecx, dword [edi + 0x1df48]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x5f8196
xor esi, esi
test eax, eax
jle 0x5f8196
mov ecx, dword [ecx + esi*4]
lea ebx, [esi*4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x5f817c
mov eax, dword [eax + 4]
test eax, eax
je 0x5f817c
cmp byte [eax + 0x108], 0
je 0x5f817c
movups xmm1, xmmword [ecx + 0x1c]
lea eax, [esp + 0x28]
movups xmm2, xmmword [ecx + 0x2c]
push eax
movups xmm3, xmmword [ecx + 0x3c]
push 0
movups xmm4, xmmword [ecx + 0x4c]
lea eax, [esp + 0x88]
movaps xmm0, xmm1
movss dword [esp + 0x30], xmm1
shufps xmm0, xmm1, 0x55
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
movss dword [esp + 0x54], xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xaa
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xaa
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x60], xmm4
shufps xmm1, xmm1, 0xff
shufps xmm2, xmm2, 0xff
shufps xmm3, xmm3, 0xff
shufps xmm4, xmm4, 0xff
push eax
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x60], xmm3
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x70], xmm4
call fcn.00403838
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
movss xmm0, dword [eax]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 0
push eax
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
movss dword [esp + 0x6c], xmm0
call fcn.0040332c
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
movss xmm0, dword [eax]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
movss dword [esp + 0x6c], xmm0
call fcn.0040332c
movss xmm0, dword [esp + 0x18]
movss xmm3, dword [esp + 0x1c]
movss xmm1, dword [esp + 0x5c]
movss xmm2, dword [esp + 0x58]
subss xmm1, xmm3
movss xmm4, dword [esp + 0x20]
subss xmm2, xmm0
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, xmm4
movss dword [esp + 0x78], xmm3
movss dword [esp + 0x6c], xmm1
mulss xmm1, xmm1
movss dword [esp + 0x68], xmm2
mulss xmm2, xmm2
movss dword [esp + 0x70], xmm0
mulss xmm0, xmm0
addss xmm1, xmm2
movss dword [esp + 0x7c], xmm4
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f8138
sqrtsd xmm0, xmm0
jmp 0x5f813d
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
lea eax, [esp + 0x68]
push eax
push eax
movss dword [esp + 0x2c], xmm0
call fcn.00402aa2
mov eax, dword [edi + 0x1df48]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov eax, dword [eax + ebx]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [eax + 0xb4]
mov ecx, dword [ecx + 4]
call fcn.005ec950
test al, al
jne 0x5f81af
mov eax, dword [edi + 0x1df4c]
inc esi
mov ecx, dword [edi + 0x1df48]
sub eax, ecx
sar eax, 2
cmp esi, eax
jl 0x5f7e60
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0xc4]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 8