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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x1400]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
lea eax, [ebx + 0x1410]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
fstp dword [esp + 0x20]
mov dword [esp + 0x54], edx
movss xmm0, dword [esp + 0x54]
subss xmm0, dword [esp + 0x34]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
mov dword [esp + 0x58], ecx
movss xmm1, dword [esp + 0x58]
subss xmm1, dword [esp + 0x38]
movss dword [esp + 0x1c], xmm1
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
faddp st(1)
mov dword [esp + 0x5c], edx
fld dword [esp + 0x20]
movss dword [esp + 0x24], xmm0
fmul dword [esp + 0x20]
movss dword [esp + 0x28], xmm1
faddp st(1)
fsqrt
fst dword [esp + 0x14]
fld dword [0x738b10]
fcompi st(1)
fstp st(0)
ja 0x50a783
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
movss xmm0, dword [0x7389bc]
divss xmm0, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
movss xmm2, dword [esp + 0x44]
mov dword [esp + 0x48], edx
movss xmm3, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
movaps xmm1, xmm0
mulss xmm1, dword [esp + 0x40]
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [0x738ac0]
comiss xmm1, xmm0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], 0
jbe 0x50a3f0
mov dword [esp + 0x10], 1
movss xmm4, dword [0x738c30]
comiss xmm4, xmm1
jbe 0x50a402
or dword [esp + 0x10], 2
comiss xmm2, xmm0
jbe 0x50a40c
or dword [esp + 0x10], 4
comiss xmm4, xmm2
jbe 0x50a416
or dword [esp + 0x10], 8
comiss xmm3, xmm0
jbe 0x50a420
or dword [esp + 0x10], 0x10
comiss xmm4, xmm3
jbe 0x50a42a
or dword [esp + 0x10], 0x20
mov ecx, dword [ebx + 0x15d8]
mov eax, dword [ebx + 0x178c]
push ecx
mov ecx, dword [ebx + 0x1788]
lea edx, [ebx + 0x14d8]
push edx
mov edx, dword [ebx + 0x1784]
push eax
push ecx
push edx
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x68]
mov esi, 0x91afe0
call fcn.00515aa0
jmp 0x50a470
mov ebx, dword [ebp + 8]
jmp 0x50a470
mov eax, dword [0x91c0b0]
mov ecx, dword [0x91bfe0]
cmp eax, ecx
jge 0x50a492
mov esi, dword [eax*4 + 0x91afe0]
inc eax
mov dword [0x91c0b0], eax
mov dword [esp + 0x18], esi
jmp 0x50a4ca
jne 0x50a4b4
mov esi, 0x91afe0
call fcn.00515b80
test eax, eax
je 0x50a783
mov ecx, dword [0x91c0b0]
cmp ecx, dword [0x91bfe0]
je 0x50a494
mov edx, dword [0x91afe0]
mov dword [0x91c0b0], 1
mov dword [esp + 0x18], edx
mov esi, edx
test esi, esi
je 0x50a783
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x5c]
lea eax, [esp + 0x3c]
call fcn.0050a150
add esp, 0xc
test eax, eax
je 0x50a470
movss xmm4, dword [esp + 0x1c]
movss xmm1, dword [esp + 0x6c]
xorps xmm0, xmm0
subss xmm4, xmm1
comiss xmm0, xmm4
movss dword [esp + 0x1c], xmm4
jbe 0x50a51c
movaps xmm4, xmm0
movss dword [esp + 0x1c], xmm4
movss xmm3, dword [esp + 0x14]
movss xmm0, dword [0x7389bc]
addss xmm3, xmm1
comiss xmm3, xmm0
movss dword [esp + 0x14], xmm3
jbe 0x50a542
movaps xmm3, xmm0
movss dword [esp + 0x14], xmm3
movss xmm5, dword [esp + 0x20]
movss xmm7, dword [esp + 0x24]
movss xmm2, dword [esp + 0x28]
movss xmm6, dword [esp + 0x34]
mulss xmm2, xmm4
addss xmm2, dword [esp + 0x38]
movaps xmm0, xmm5
mulss xmm0, xmm4
movaps xmm1, xmm7
mulss xmm1, xmm4
movss xmm4, dword [esp + 0x30]
addss xmm0, xmm4
addss xmm1, xmm6
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm2
movss xmm2, dword [esp + 0x28]
lea edx, [esp + 0x40]
movaps xmm0, xmm5
movaps xmm1, xmm7
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
addss xmm2, dword [esp + 0x38]
push edx
addss xmm0, xmm4
addss xmm1, xmm6
lea edx, [esp + 0x74]
lea eax, [esp + 0x84]
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm1
movss dword [esp + 0x7c], xmm2
call fcn.00458640
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov eax, ebx
call fcn.0043f950
or ebx, 0xffffffff
jmp 0x50a5f7
mov esi, dword [esp + 0x18]
movzx ecx, byte [esi + 0x36]
inc ebx
cmp ebx, ecx
jge 0x50a67c
mov edx, dword [esi + 0x50]
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, edx
jmp 0x50a610
mov edx, dword [esp + 0x10]
test dword [eax + 0x20], edx
jne 0x50a672
movss xmm0, dword [eax]
comiss xmm0, dword [esp + 0x90]
ja 0x50a672
movss xmm0, dword [esp + 0x80]
comiss xmm0, dword [eax + 0x10]
ja 0x50a672
movss xmm0, dword [eax + 8]
comiss xmm0, dword [esp + 0x98]
ja 0x50a672
movss xmm0, dword [esp + 0x88]
comiss xmm0, dword [eax + 0x18]
ja 0x50a672
movss xmm0, dword [eax + 4]
comiss xmm0, dword [esp + 0x94]
ja 0x50a672
movss xmm0, dword [esp + 0x84]
comiss xmm0, dword [eax + 0x14]
jbe 0x50a67a
inc ebx
add eax, 0x30
cmp ebx, ecx
jl 0x50a610
cmp ebx, ecx
je 0x50a74a
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
lea eax, [ebx + ebx*4]
add eax, ecx
movzx ecx, byte [eax + 4]
shl ecx, 4
movss xmm0, dword [ecx + edx + 8]
mulss xmm0, dword [esp + 0x28]
movss xmm1, dword [ecx + edx + 4]
mulss xmm1, dword [esp + 0x24]
add ecx, edx
addss xmm0, xmm1
movss xmm1, dword [esp + 0x20]
mulss xmm1, dword [ecx]
addss xmm0, xmm1
comiss xmm0, dword [0x738da0]
ja 0x50a5f7
mov ecx, dword [esi + 0x44]
movzx esi, byte [eax]
movzx edx, byte [eax + 1]
movzx edi, byte [eax + 2]
movzx eax, byte [eax + 3]
shl eax, 4
add eax, ecx
shl edx, 4
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x18]
add edx, ecx
shl esi, 4
add esi, ecx
shl edi, 4
add edi, ecx
mov ecx, dword [eax + 0x2c]
push ecx
push 0
push edx
mov edx, dword [ebp + 8]
push esi
push edx
mov eax, edi
call fcn.00508e00
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x50]
lea eax, [ebx + ebx*2]
shl eax, 4
test byte [eax + edx + 0x20], 0x40
je 0x50a5f3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0xac]
push ecx
push 0
push edi
push esi
push edx
call fcn.00508e00
jmp 0x50a5f3
mov eax, dword [ebp + 8]
xor edx, edx
xor ecx, ecx
mov dword [eax + 0x144c], edx
cmp dword [eax + 0x1000], ecx
mov dword [eax + 0x1058], ecx
mov dword [eax + 0x1440], ecx
mov dword [eax + 0x1448], ecx
jle 0x50a462
mov ecx, dword [eax + 0x1770]
test ecx, ecx
je 0x50a462
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4