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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
cmp word [edi + 0xcae], 0xffff
push ebx
push esi
jne 0x56d203
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x1014]
mov ecx, dword [edi + 0x1010]
push eax
push ecx
mov ecx, 0x8d68e0
call fcn.004013f0
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [edi + 0x44]
movss xmm2, dword [edi + 0x48]
mov esi, eax
test esi, esi
mov eax, dword [ebp + 8]
movss xmm3, dword [eax]
subss xmm3, xmm0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm1
movss dword [esp + 0x48], xmm0
fld dword [esp + 0x48]
movss dword [esp + 0x64], xmm1
fmul dword [esp + 0x48]
movss xmm1, dword [eax + 8]
subss xmm1, xmm2
movss dword [esp + 0x2c], xmm1
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
movss dword [esp + 0x10], xmm3
mov edx, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
faddp st(1)
mov eax, dword [esp + 0x14]
fld dword [esp + 0x10]
xorps xmm0, xmm0
fmul dword [esp + 0x10]
movss dword [esp + 0x18], xmm1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
faddp st(1)
mov edx, dword [esp + 0x1c]
movss dword [esp + 0x68], xmm2
mov dword [esp + 0x54], eax
fsqrt
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
movss dword [esp + 0x48], xmm0
fstp dword [esp + 0x2c]
je 0x56d328
call fcn.0042ec20
push eax
mov ecx, esi
call fcn.00401340
test eax, eax
je 0x56d328
movss xmm0, dword [0x738a90]
movss xmm1, dword [esp + 0x2c]
comiss xmm0, xmm1
jb 0x56d32e
mov esi, dword [esi + 0x46c]
add esi, 0x10
call fcn.00533f20
push ecx
movss dword [esp], xmm0
push 0
lea ecx, [esp + 0x38]
call fcn.00403ff0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
jmp 0x56d34d
movss xmm1, dword [esp + 0x2c]
movss xmm0, dword [0x738d00]
comiss xmm0, xmm1
jbe 0x56d34d
subss xmm0, xmm1
mulss xmm0, dword [0x738e04]
movss dword [esp + 0x48], xmm0
movss xmm1, dword [esp + 0x58]
movss xmm0, dword [esp + 0x50]
movaps xmm2, xmm1
mulss xmm2, xmm1
movss xmm1, dword [esp + 0x54]
mulss xmm0, xmm0
addss xmm0, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
addss xmm0, xmm2
comiss xmm0, dword [0x738d48]
movss dword [esp + 0x2c], xmm0
jbe 0x56d3b4
fld dword [esp + 0x2c]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul st(1)
fstp dword [esp + 0x58]
fstp st(0)
mov ax, word [edi + 0xcae]
mov ebx, dword [0x91a330]
movzx edx, ax
lea ecx, [ebx - 1]
cmp edx, ecx
mov esi, edx
cmovge esi, ecx
test esi, esi
jge 0x56d3d6
xor eax, eax
jmp 0x56d3dd
cmp edx, ecx
jl 0x56d3dd
lea eax, [ebx - 1]
mov ecx, dword [0x91a36c]
movzx eax, ax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov eax, dword [esi + 4]
lea edx, [eax + 0x20]
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
fld dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea ecx, [eax + 0x30]
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 4]
fsub dword [esp + 0x70]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 8]
fld dword [esp + 0x18]
mov dword [esp + 0x78], edx
movss xmm0, dword [eax + 0x40]
fsub dword [esp + 0x78]
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x4c]
fpatan
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x88], ecx
movss dword [esp + 0x44], xmm0
fadd dword [0x738a80]
fstp dword [esp]
call fcn.00403f60
movss xmm1, dword [esp + 0x44]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x38]
xorps xmm4, xmm4
movaps xmm5, xmm3
movaps xmm0, xmm1
mulss xmm0, xmm2
mulss xmm1, xmm3
mulss xmm2, xmm4
subss xmm1, xmm2
movss xmm2, dword [esp + 0x1c]
mulss xmm5, xmm4
addss xmm0, xmm5
movss xmm5, dword [esp + 0x20]
movaps xmm3, xmm0
addss xmm3, xmm2
movss dword [esp + 0x3c], xmm3
movss xmm3, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
movaps xmm6, xmm1
addss xmm6, xmm3
movss dword [esp + 0x40], xmm5
mov edx, dword [esp + 0x40]
movss dword [esp + 0x44], xmm6
mov eax, dword [esp + 0x44]
subss xmm2, xmm0
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
movss dword [esp + 0x3c], xmm2
mov edx, dword [esp + 0x3c]
movss dword [esp + 0x40], xmm5
mov eax, dword [esp + 0x40]
subss xmm3, xmm1
add esp, 0xc
mov dword [esp + 0x8c], ecx
movss dword [esp + 0x38], xmm3
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
movss xmm2, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
movss xmm5, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
movaps xmm3, xmm2
subss xmm3, xmm0
movss dword [esp + 0x30], xmm3
movss xmm3, dword [esp + 0x74]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x98], ecx
movss dword [esp + 0x34], xmm3
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
movaps xmm6, xmm5
subss xmm6, xmm1
movss dword [esp + 0x38], xmm6
mov edx, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa4], ecx
addss xmm0, xmm2
movss dword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
movss dword [esp + 0x34], xmm3
mov edx, dword [esp + 0x34]
addss xmm1, xmm5
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x3c]
movss dword [esp + 0x38], xmm1
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
or edx, 0xffffffff
xor eax, eax
lea ecx, [esp + 0x88]
mov edi, edi
mov ebx, dword [ebp + 8]
movss xmm0, dword [ecx - 8]
subss xmm0, dword [ebx]
movss xmm1, dword [ecx]
subss xmm1, dword [ebx + 8]
movss xmm2, dword [ecx - 4]
subss xmm2, dword [ebx + 4]
movaps xmm3, xmm0
mulss xmm3, xmm0
movaps xmm5, xmm1
mulss xmm5, xmm1
addss xmm3, xmm5
movaps xmm5, xmm2
mulss xmm5, xmm2
addss xmm3, xmm5
movss xmm5, dword [0x738d48]
comiss xmm3, xmm5
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x4c], xmm3
jbe 0x56d68f
fld dword [esp + 0x4c]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
movss xmm2, dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
fstp st(0)
movaps xmm3, xmm0
mulss xmm3, dword [esp + 0x50]
movaps xmm6, xmm1
mulss xmm6, dword [esp + 0x58]
addss xmm3, xmm6
movaps xmm6, xmm2
mulss xmm6, dword [esp + 0x54]
addss xmm3, xmm6
movss xmm6, dword [esp + 0x48]
comiss xmm6, xmm3
jbe 0x56d6e1
movaps xmm3, xmm2
mulss xmm3, xmm2
mulss xmm0, xmm0
movaps xmm2, xmm1
addss xmm0, xmm3
mulss xmm2, xmm1
addss xmm0, xmm2
comiss xmm0, xmm4
jbe 0x56d6e1
movaps xmm4, xmm0
mov edx, eax
inc eax
add ecx, 0x10
cmp eax, 4
jl 0x56d5f0
test edx, edx
jge 0x56d720
mov edx, dword [0x77eab0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x77eab0], edx
shr edx, 0x10
and edx, 0x7fff
and edx, reloc.WSOCK32.dll_closesocket
jns 0x56d720
dec edx
or edx, 0xfffffffc
inc edx
mov eax, dword [esi + 4]
movss xmm0, dword [eax + 0x40]
comiss xmm0, dword [esi + 0xc]
jbe 0x56d735
movss xmm0, dword [esi + 0xc]
jmp 0x56d73a
movss xmm0, dword [eax + 0x40]
movss xmm1, dword [0x759c1c]
comiss xmm1, xmm0
movss xmm4, dword [0x759c14]
jbe 0x56d75a
mulss xmm0, dword [0x759c18]
movaps xmm4, xmm0
movss xmm2, dword [esp + 0x64]
movss xmm1, dword [esp + 0x68]
movss xmm3, dword [esp + 0x60]
shl edx, 4
subss xmm2, dword [esp + edx + 0x84]
subss xmm1, dword [esp + edx + 0x88]
subss xmm3, dword [esp + edx + 0x80]
lea esi, [esp + edx + 0x80]
movaps xmm0, xmm1
mulss xmm0, xmm1
movaps xmm6, xmm2
mulss xmm6, xmm2
addss xmm0, xmm6
movaps xmm6, xmm3
mulss xmm6, xmm3
addss xmm0, xmm6
comiss xmm0, xmm5
movss dword [esp + 0x10], xmm3
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x4c], xmm0
jbe 0x56d809
fld dword [esp + 0x4c]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
movss xmm3, dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
movss xmm2, dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
fstp st(0)
movss xmm0, dword [esi]
mulss xmm3, xmm4
addss xmm0, xmm3
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
mulss xmm2, xmm4
addss xmm0, xmm2
movss dword [esi + 4], xmm0
movss xmm0, dword [esi + 8]
mulss xmm1, xmm4
addss xmm0, xmm1
lea eax, [edi + 0x9e0]
movss dword [esi + 8], xmm0
call fcn.0050bda0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
or byte [edi + 0xb0e], 3
lea eax, [edi + 0xb20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esi]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 4]
lea eax, [edi + 0xb30]
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
pop esi
mov dword [eax + 0xc], edx
mov word [edi + 0xb0c], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4