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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x40]
push esi
mov esi, eax
imul eax, eax, 0x1b0
imul esi, esi, 0xe0
add esi, dword [ebx + 0x6c]
test dword [eax + ecx + 0x1b8], 0x1000000
push edi
lea edi, [eax + ecx + 0x14]
mov dword [esp + 0x20], edi
je 0x50f701
lea eax, [esi + 0x10]
mov dword [esp + 0x18], eax
jmp 0x50f707
mov dword [esp + 0x18], ebx
mov eax, ebx
fld dword [eax + 0x30]
fstp dword [esi + 0x68]
fld dword [eax + 0x34]
fstp dword [esi + 0x6c]
fld dword [eax + 0x38]
fstp dword [esi + 0x70]
fld dword [ebp + 0x10]
fld st(0)
fadd dword [esi + 0x80]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esi + 0x80]
cmp dword [ebx + 0x50], 0
je 0x50f758
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
movss xmm0, dword [esp + 0x1c]
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
movss dword [esi + 0x84], xmm0
movss xmm0, dword [0x6f9eac]
movss xmm1, dword [0x6f9ea8]
lea ecx, [esi + 0x8c]
movss dword [ecx], xmm0
movss dword [esi + 0x98], xmm1
movss dword [esi + 0x90], xmm0
movss dword [esi + 0x9c], xmm1
movss dword [esi + 0x94], xmm0
movss dword [esi + 0xa0], xmm1
movzx eax, word [esi + 6]
test eax, eax
je 0x50f7be
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push ecx
fstp dword [esp]
push edx
push edi
call fcn.0050f2b0
fld dword [ebp + 0x10]
add esp, 0x14
mov word [esi + 6], ax
cmp dword [ebx + 0x4c], 0
je 0x50fb04
fld dword [edi + 0x100]
fld1
fdivrp st(1)
fstp dword [esp + 0x1c]
fadd dword [esi + 0x88]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [esi + 0x88]
fld dword [esp + 0x1c]
fcompi st(1)
ja 0x50fb04
fmul dword [edi + 0x100]
fmul dword [esi + 0xb0]
fmul dword [0xa11084]
fstp dword [esp + 0x24]
cvttss2si eax, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esi + 0xa8]
test al, 0x10
je 0x50f832
test edi, edi
jbe 0x50f834
and eax, 0xffffffef
mov edi, 1
mov dword [esi + 0xa8], eax
jmp 0x50f836
test edi, edi
je 0x50f847
cmp dword [esi], 0
jne 0x50f847
mov edx, dword [ebp + 8]
push esi
push edx
mov eax, ebx
call fcn.0050f650
movzx edx, word [esi + 6]
movzx eax, word [esi + 4]
lea ecx, [edx + edi]
cmp ecx, eax
mov dword [esp + 0x24], edx
jbe 0x50f85e
sub eax, edx
mov edi, eax
fld dword [esi + 0x88]
mov ecx, dword [esp + 0x20]
fmul dword [ecx + 0x100]
fstp dword [esp + 0x28]
cvttss2si eax, dword [esp + 0x28]
test eax, eax
fld dword [esi + 0x88]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jge 0x50f894
fadd dword [0x6f9a18]
test edi, edi
fmul dword [esp + 0x1c]
xorps xmm6, xmm6
fsubp st(1)
fstp dword [esi + 0x88]
jbe 0x50fa01
test dword [ecx + 0x1a4], 0x40000000
fld dword [ebx + 0x48]
je 0x50f8e6
movzx eax, word [ecx + 0x1a8]
movzx edx, word [ebx + 0x70]
imul eax, eax, 0xe0
add eax, dword [ebx + 0x6c]
mov ebx, dword [esp + 0x18]
push edx
push ecx
fstp dword [esp]
push edi
push ecx
push eax
push esi
mov eax, ebx
call fcn.0050f4f0
mov edi, eax
jmp 0x50f908
movzx eax, word [ebx + 0x70]
push eax
push ecx
lea edx, [edx + edx*2]
shl edx, 4
add edx, dword [esi]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push esi
call fcn.0050ecb0
mov ebx, dword [esp + 0x30]
movss xmm0, dword [esi + 0x8c]
xorps xmm6, xmm6
mov ecx, dword [esi]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esi + 0x90]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esi + 0x94]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esi + 0x98]
movss dword [esp + 0x54], xmm6
movaps xmm3, xmmword [esp + 0x48]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esi + 0x9c]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esi + 0xa0]
add esp, 0x18
test edi, edi
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm6
movaps xmm2, xmmword [esp + 0x30]
jbe 0x50f9b1
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, edi
lea esp, [esp]
movaps xmm0, xmmword [eax]
movaps xmm1, xmm0
shufps xmm1, xmm0, 0xff
movaps xmm4, xmm1
addps xmm4, xmm0
add eax, 0x30
sub ecx, 1
subps xmm0, xmm1
maxps xmm2, xmm4
minps xmm3, xmm0
jne 0x50f990
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
movss dword [esi + 0x8c], xmm3
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
movss dword [esi + 0x90], xmm0
shufps xmm3, xmm3, 0xaa
movss dword [esi + 0x94], xmm3
movss dword [esi + 0x98], xmm2
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
movss dword [esi + 0x9c], xmm0
shufps xmm2, xmm2, 0xaa
movss dword [esi + 0xa0], xmm2
jmp 0x50fa05
mov ebx, dword [esp + 0x18]
test dword [ecx + 0x1a4], 0x8000000
je 0x50fad0
movss xmm0, dword [0x6cc5ec]
movss xmm5, dword [esi + 0x9c]
movss xmm1, dword [esi + 0x98]
movss xmm3, dword [esi + 0xa0]
movaps xmm4, xmm0
movss xmm0, dword [ebx + 0x30]
movaps xmm2, xmm0
movss xmm0, dword [ebx + 0x34]
movss xmm6, xmm6
unpcklps xmm2, xmm0
movss xmm0, dword [ebx + 0x38]
unpcklps xmm0, xmm6
movss xmm6, dword [esi + 0x90]
shufps xmm2, xmm0, 0x44
movss xmm0, dword [esi + 0x8c]
unpcklps xmm0, xmm6
movss xmm6, dword [esi + 0x94]
unpcklps xmm6, xmm4
shufps xmm0, xmm6, 0x44
addps xmm0, xmm2
movss dword [esi + 0x8c], xmm0
movaps xmm6, xmm0
shufps xmm6, xmm0, 0x55
movss dword [esi + 0x90], xmm6
unpcklps xmm1, xmm5
shufps xmm0, xmm0, 0xaa
movss dword [esi + 0x94], xmm0
unpcklps xmm3, xmm4
shufps xmm1, xmm3, 0x44
addps xmm1, xmm2
movaps xmm0, xmm1
movss dword [esi + 0x98], xmm0
shufps xmm1, xmm0, 0x55
movss dword [esi + 0x9c], xmm1
shufps xmm0, xmm0, 0xaa
movss dword [esi + 0xa0], xmm0
add edx, edi
cmp dword [esp + 0x28], 0
mov word [esi + 6], dx
jbe 0x50fb06
mov eax, dword [esi + 0x68]
fld dword [esi + 0x80]
mov ecx, dword [esi + 0x6c]
fstp dword [esi + 0x84]
mov edx, dword [esi + 0x70]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10