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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
movss xmm0, dword [0x738ac8]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, 0xffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x58]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x20], xmm0
mov dword [esp + 0x24], eax
lea esp, [esp]
movzx eax, word [eax]
cmp ax, 0xffff
je 0x50c840
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x30]
mov esi, eax
mov al, byte [ebp + 0xc]
cmp al, 0xff
je 0x50c73a
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x4d], al
jne 0x50c840
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x44]
shr eax, 0xa
not eax
test al, 1
je 0x50c840
push 0
mov eax, edi
mov ecx, esi
call fcn.0059ca60
test eax, eax
je 0x50c840
mov eax, dword [ebx + 0x7c]
movss xmm3, dword [0x738a1c]
inc eax
mov dword [ebx + 0x7c], eax
mov esi, dword [esi + 4]
lea ecx, [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 8]
movss xmm0, dword [esp + 0x40]
add esi, 0x20
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi]
movss xmm1, dword [esp + 0x44]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 4]
movss xmm2, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x50], ecx
addss xmm0, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
mulss xmm0, xmm3
mov dword [esp + 0x54], edx
addss xmm1, dword [esp + 0x54]
mulss xmm1, xmm3
mov dword [esp + 0x58], eax
addss xmm2, dword [esp + 0x58]
mulss xmm2, xmm3
movss xmm3, dword [edi + 4]
subss xmm3, xmm1
movss xmm1, dword [edi + 8]
movaps xmm4, xmm0
movss xmm0, dword [edi]
subss xmm1, xmm2
subss xmm0, xmm4
mulss xmm0, xmm0
movaps xmm2, xmm3
mulss xmm2, xmm3
addss xmm0, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
movss xmm1, dword [esp + 0x1c]
addss xmm0, xmm2
comiss xmm1, xmm0
mov dword [esp + 0x5c], ecx
jbe 0x50c840
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov cx, word [eax]
mov dword [esp + 0x2c], edx
movss dword [esp + 0x1c], xmm0
mov word [esp + 0x14], cx
movss dword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 2
cmp ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jl 0x50c710
mov esi, dword [esp + 0x14]
cmp si, 0xffff
je 0x50c896
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
movzx edx, word [ebx + ecx*2 + 0x58]
lea eax, [ebx + ecx*2 + 0x58]
jl 0x50c88d
lea ebx, [ebx]
mov di, word [eax - 2]
mov word [eax], di
add eax, 0xfffffffe
dec ecx
jne 0x50c880
mov word [ebx + 0x58], dx
jmp 0x50cbdd
mov eax, dword [ebx + 0x20]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x18], edx
jle 0x50cbfb
mov dword [esp + 0x2c], edx
jmp 0x50c8b0
xor edx, edx
nop
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov cl, byte [ebp + 0xc]
cmp cl, 0xff
mov dword [esp + 0x3c], eax
je 0x50c8d1
movzx ecx, cl
cmp dword [eax + 0x20], ecx
jne 0x50cbba
movss xmm1, dword [eax + 0x10]
comiss xmm1, dword [edi]
xorps xmm0, xmm0
jb 0x50c920
movss xmm1, dword [eax + 0x14]
comiss xmm1, dword [edi + 4]
jb 0x50c920
movss xmm1, dword [eax + 0x18]
comiss xmm1, dword [edi + 8]
jb 0x50c920
movss xmm1, dword [edi]
comiss xmm1, dword [eax]
jb 0x50c920
movss xmm1, dword [edi + 4]
comiss xmm1, dword [eax + 4]
jb 0x50c920
movss xmm1, dword [edi + 8]
comiss xmm1, dword [eax + 8]
jb 0x50c920
mov dword [esp + 0x24], 1
jmp 0x50c9c8
movss xmm1, dword [eax]
mov dword [esp + 0x24], edx
mov edx, edi
mov ecx, dword [edx]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 4]
movss xmm0, dword [esp + 0x50]
comiss xmm0, xmm1
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
ja 0x50c953
movaps xmm0, xmm1
movss xmm1, dword [eax + 4]
movss xmm2, dword [esp + 0x54]
comiss xmm2, xmm1
ja 0x50c966
movaps xmm2, xmm1
movss xmm3, dword [eax + 8]
movss xmm1, dword [esp + 0x58]
comiss xmm1, xmm3
ja 0x50c979
movaps xmm1, xmm3
movss xmm3, dword [eax + 0x10]
comiss xmm3, xmm0
ja 0x50c986
movaps xmm0, xmm3
movss xmm3, dword [eax + 0x14]
comiss xmm3, xmm2
ja 0x50c993
movaps xmm2, xmm3
movss xmm3, dword [eax + 0x18]
comiss xmm3, xmm1
ja 0x50c9a0
movaps xmm1, xmm3
subss xmm2, dword [edi + 4]
subss xmm0, dword [edi]
subss xmm1, dword [edi + 8]
movaps xmm3, xmm2
mulss xmm3, xmm2
mulss xmm0, xmm0
movaps xmm2, xmm1
addss xmm0, xmm3
mulss xmm2, xmm1
addss xmm0, xmm2
movss xmm1, dword [esp + 0x20]
comiss xmm1, xmm0
jb 0x50cbba
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x50c9ea
cmp si, 0xffff
jne 0x50cbba
mov ecx, dword [eax + 0x24]
mov edx, dword [ebx + 0x24]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
mov dword [esp + 0x28], 0
jle 0x50cbba
lea ebx, [ebx]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebx, dword [edx + eax*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x30]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50cb1f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x44]
shr ecx, 0xa
not ecx
test cl, 1
je 0x50cb1f
push 0
mov eax, edi
mov ecx, esi
call fcn.0059ca60
test eax, eax
je 0x50cb1f
mov esi, dword [esi + 4]
movss xmm3, dword [0x738a1c]
lea edx, [esi + 0x30]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 8]
movss xmm0, dword [esp + 0x40]
add esi, 0x20
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [esi]
movss xmm1, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
movss xmm2, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], edx
addss xmm0, dword [esp + 0x60]
mov edx, dword [esi + 0xc]
mulss xmm0, xmm3
mov dword [esp + 0x64], eax
addss xmm1, dword [esp + 0x64]
mulss xmm1, xmm3
mov dword [esp + 0x68], ecx
addss xmm2, dword [esp + 0x68]
mulss xmm2, xmm3
movss xmm3, dword [edi]
subss xmm3, xmm0
movss xmm0, dword [edi + 4]
subss xmm0, xmm1
movss xmm1, dword [edi + 8]
subss xmm1, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
mulss xmm0, xmm0
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm2
addss xmm0, xmm1
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
mov dword [esp + 0x6c], edx
jbe 0x50cb9f
movss dword [esp + 0x1c], xmm0
mov dword [esp + 0x14], ebx
jmp 0x50cb99
cmp word [esp + 0x14], 0xffff
jne 0x50cb9f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x44]
shr ecx, 0xa
not ecx
test cl, 1
je 0x50cb9f
mov eax, dword [ebp + 8]
lea edx, [esp + 0x70]
push edx
push eax
mov ecx, edi
mov edx, ebx
call fcn.0050d300
movss xmm1, dword [edi + 4]
subss xmm1, dword [esp + 0x74]
movss xmm0, dword [edi]
subss xmm0, dword [esp + 0x70]
movss xmm2, dword [edi + 8]
subss xmm2, dword [esp + 0x78]
movaps xmm3, xmm1
mulss xmm3, xmm1
mulss xmm0, xmm0
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [esp + 0x30]
comiss xmm1, xmm0
jbe 0x50cb9f
movss dword [esp + 0x30], xmm0
mov dword [esp + 0x34], ebx
movss dword [esp + 0x20], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x28]
inc eax
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x50ca10
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0x14]
inc eax
add edx, 0x30
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
jl 0x50c8ad
cmp si, 0xffff
je 0x50cbfb
mov edx, esi
mov esi, ebx
call fcn.0050e670
mov ax, word [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ax, word [esp + 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8