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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x51580a
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
mov ecx, 0x8d68e0
call fcn.004013f0
mov esi, eax
test esi, esi
je 0x51580a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp word [edi + 0x30], bx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ebx
jle 0x51580a
mov edi, edi
mov esi, dword [edi + 0x38]
mov edi, dword [ebp + 0x14]
lea ebx, [ebx + ebx*2]
shl ebx, 4
mov cl, byte [ebx + esi + 0x2a]
add ebx, esi
mov esi, dword [ebp + 0x18]
mov eax, 1
shl eax, cl
mov dword [esp + 0x1c], ebx
cdq
and eax, edi
and edx, esi
or eax, edx
je 0x5157f2
mov eax, dword [ebp + 0x10]
mov ecx, 8
mov esi, ebx
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 0x2c]
shl ecx, 6
add ecx, eax
lea edx, [esp + 0x50]
call fcn.004045c0
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + 0x21950]
comiss xmm0, dword [esp + 0x60]
ja 0x5157f2
movss xmm0, dword [esp + 0x50]
mov eax, edx
comiss xmm0, dword [eax + 0x21960]
ja 0x5157f2
mov ecx, edx
movss xmm0, dword [ecx + 0x21958]
comiss xmm0, dword [esp + 0x68]
ja 0x5157f2
movss xmm0, dword [esp + 0x58]
comiss xmm0, dword [edx + 0x21968]
ja 0x5157f2
movss xmm0, dword [eax + 0x21954]
comiss xmm0, dword [esp + 0x64]
ja 0x5157f2
movss xmm0, dword [esp + 0x54]
comiss xmm0, dword [ecx + 0x21964]
ja 0x5157f2
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x24]
push edx
push eax
mov edi, ecx
push edi
mov ecx, esi
call fcn.005149b0
mov edx, eax
test edx, edx
jne 0x5157d3
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
movsx eax, word [ebx + 0x28]
push esi
push ecx
movsx ecx, word [ebx + 0x24]
push edx
movsx edx, word [ebx + 0x22]
push eax
push ecx
push edx
push edi
call fcn.00514a10
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x28]
movss xmm7, dword [0x738ac8]
movss xmm0, dword [0x738a74]
mov dword [edx + 0x30], eax
mov dword [edx + 0x28], ecx
mov al, byte [ebx + 0x2c]
mov byte [edx + 0x38], al
movsx ecx, word [ebx + 0x2c]
shl esi, 0x10
or esi, ecx
mov dword [edx + 0x2c], esi
movsx eax, word [ebx + 0x2c]
movsx ecx, word [ebx + 0x20]
mov esi, dword [ebp + 0xc]
shl eax, 6
add eax, edi
mov edi, dword [esi + 0x3c]
mov esi, dword [edx + 0x44]
shl ecx, 4
add ecx, edi
movzx edi, byte [edx + 0x34]
test edi, edi
movaps xmm5, xmm7
movaps xmm4, xmm7
movaps xmm3, xmm7
movaps xmm2, xmm0
movaps xmm1, xmm0
je 0x5151b2
mov dword [esp + 0x20], edi
jmp 0x5150a0
movss xmm6, dword [eax]
mulss xmm6, dword [ecx]
movss xmm7, dword [ecx + 8]
mulss xmm7, dword [eax + 0x20]
addss xmm6, xmm7
movss xmm7, dword [ecx + 4]
mulss xmm7, dword [eax + 0x10]
addss xmm6, xmm7
addss xmm6, dword [eax + 0x30]
movss xmm7, dword [eax + 0x14]
mulss xmm7, dword [ecx + 4]
movss dword [esp + 0x30], xmm6
movss xmm6, dword [ecx + 8]
mulss xmm6, dword [eax + 0x24]
mov ebx, dword [esp + 0x30]
addss xmm6, xmm7
movss xmm7, dword [eax + 4]
mulss xmm7, dword [ecx]
addss xmm6, xmm7
addss xmm6, dword [eax + 0x34]
movss xmm7, dword [ecx + 8]
mulss xmm7, dword [eax + 0x28]
movss dword [esp + 0x34], xmm6
movss xmm6, dword [eax + 8]
mulss xmm6, dword [ecx]
addss xmm6, xmm7
movss xmm7, dword [ecx + 4]
mulss xmm7, dword [eax + 0x18]
addss xmm6, xmm7
addss xmm6, dword [eax + 0x38]
mov edi, esi
mov dword [edi], ebx
mov ebx, dword [esp + 0x34]
mov dword [edi + 4], ebx
movss dword [esp + 0x38], xmm6
mov ebx, dword [esp + 0x38]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0xc], ebx
movss xmm6, dword [esi]
comiss xmm6, xmm5
ja 0x515158
movaps xmm5, xmm6
movss xmm6, dword [esi + 4]
comiss xmm6, xmm4
ja 0x515165
movaps xmm4, xmm6
movss xmm6, dword [esi + 8]
comiss xmm6, xmm3
ja 0x515172
movaps xmm3, xmm6
comiss xmm2, dword [esi]
ja 0x51517b
movss xmm2, dword [esi]
comiss xmm0, dword [esi + 4]
ja 0x515186
movss xmm0, dword [esi + 4]
comiss xmm1, dword [esi + 8]
ja 0x515191
movss xmm1, dword [esi + 8]
mov edi, dword [esp + 0x20]
add esi, 0x10
add ecx, 0x10
dec edi
mov dword [esp + 0x20], edi
jne 0x5150a0
movss xmm7, dword [0x738ac8]
mov ebx, dword [esp + 0x1c]
movss xmm6, dword [0x7389bc]
subss xmm5, xmm6
subss xmm4, xmm6
subss xmm3, xmm6
addss xmm2, xmm6
addss xmm0, xmm6
addss xmm1, xmm6
mov ecx, 8
lea esi, [esp + 0x70]
mov edi, edx
movss dword [esp + 0x70], xmm5
movss dword [esp + 0x74], xmm4
movss dword [esp + 0x78], xmm3
movss dword [esp + 0x80], xmm2
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm1
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 0x20]
movsx eax, word [ebx + 0x22]
mov edi, dword [ebp + 0x10]
add eax, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x3c]
mov ecx, dword [edx + 0x48]
mov dword [esp + 0x18], ecx
movsx ecx, word [ebx + 0x2c]
shl eax, 4
add eax, esi
movzx esi, byte [edx + 0x35]
shl ecx, 6
add ecx, edi
test esi, esi
je 0x515308
mov dword [esp + 0x20], esi
jmp 0x515250
movss xmm0, dword [eax + 8]
mulss xmm0, dword [ecx + 0x20]
movss xmm1, dword [eax + 4]
mulss xmm1, dword [ecx + 0x10]
addss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx]
mov esi, dword [esp + 0x18]
addss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx + 4]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, dword [ecx + 0x14]
mov edi, dword [esp + 0x40]
addss xmm0, xmm1
movss xmm1, dword [eax + 8]
mulss xmm1, dword [ecx + 0x24]
addss xmm0, xmm1
movss xmm1, dword [eax + 4]
mulss xmm1, dword [ecx + 0x18]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 8]
mulss xmm0, dword [ecx + 0x28]
addss xmm0, xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx + 8]
mov dword [esi], edi
mov edi, dword [esp + 0x44]
mov dword [esi + 4], edi
addss xmm0, xmm1
movss dword [esp + 0x48], xmm0
mov edi, dword [esp + 0x48]
mov dword [esi + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [esi + 0xc], edi
add esi, 0x10
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
add eax, 0x10
dec esi
mov dword [esp + 0x20], esi
jne 0x515250
cmp word [ebx + 0x28], 0
mov dword [esp + 0x1c], 0
jle 0x5157dc
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jmp 0x515330
movsx eax, word [ebx + 0x26]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x40]
movss xmm0, dword [0x738a74]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*2]
mov al, byte [esi]
mov ecx, dword [edx + 0x4c]
mov byte [ecx + edi], al
mov al, byte [esi + 1]
mov byte [ecx + edi + 1], al
mov al, byte [esi + 2]
add ecx, edi
mov byte [ecx + 2], al
mov al, byte [esi + 3]
mov byte [ecx + 3], al
mov al, byte [esi + 4]
mov esi, dword [esp + 0x18]
mov byte [ecx + 4], al
mov eax, dword [edx + 0x50]
add eax, esi
movss dword [eax], xmm7
movss dword [eax + 4], xmm7
movss dword [eax + 8], xmm7
movss dword [eax + 0x10], xmm0
movss dword [eax + 0x14], xmm0
movss dword [eax + 0x18], xmm0
movzx esi, byte [ecx]
mov edi, dword [edx + 0x44]
shl esi, 4
movss xmm0, dword [esi + edi]
add esi, edi
comiss xmm0, dword [eax]
jbe 0x5153b6
movss xmm0, dword [eax]
jmp 0x5153ba
movss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, dword [eax + 4]
jbe 0x5153d0
movss xmm0, dword [eax + 4]
jmp 0x5153d5
movss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 8]
comiss xmm0, dword [eax + 8]
jbe 0x5153ec
movss xmm0, dword [eax + 8]
jmp 0x5153f1
movss xmm0, dword [esi + 8]
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [esi]
jbe 0x515402
jmp 0x515406
movss xmm0, dword [esi]
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
comiss xmm0, dword [esi + 4]
jbe 0x515418
jmp 0x51541d
movss xmm0, dword [esi + 4]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [eax + 0x18]
comiss xmm0, dword [esi + 8]
jbe 0x51542f
jmp 0x515434
movss xmm0, dword [esi + 8]
movss dword [eax + 0x18], xmm0
movzx esi, byte [ecx + 1]
mov edi, dword [edx + 0x44]
shl esi, 4
movss xmm0, dword [esi + edi]
add esi, edi
comiss xmm0, dword [eax]
jbe 0x515455
movss xmm0, dword [eax]
jmp 0x515459
movss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, dword [eax + 4]
jbe 0x51546f
movss xmm0, dword [eax + 4]
jmp 0x515474
movss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 8]
comiss xmm0, dword [eax + 8]
jbe 0x51548b
movss xmm0, dword [eax + 8]
jmp 0x515490
movss xmm0, dword [esi + 8]
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [esi]
jbe 0x5154a1
jmp 0x5154a5
movss xmm0, dword [esi]
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
comiss xmm0, dword [esi + 4]
jbe 0x5154b7
jmp 0x5154bc
movss xmm0, dword [esi + 4]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [eax + 0x18]
comiss xmm0, dword [esi + 8]
jbe 0x5154ce
jmp 0x5154d3
movss xmm0, dword [esi + 8]
movss dword [eax + 0x18], xmm0
movzx esi, byte [ecx + 2]
mov edi, dword [edx + 0x44]
shl esi, 4
movss xmm0, dword [esi + edi]
add esi, edi
comiss xmm0, dword [eax]
jbe 0x5154f4
movss xmm0, dword [eax]
jmp 0x5154f8
movss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, dword [eax + 4]
jbe 0x51550e
movss xmm0, dword [eax + 4]
jmp 0x515513
movss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 8]
comiss xmm0, dword [eax + 8]
jbe 0x51552a
movss xmm0, dword [eax + 8]
jmp 0x51552f
movss xmm0, dword [esi + 8]
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [esi]
jbe 0x515540
jmp 0x515544
movss xmm0, dword [esi]
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
comiss xmm0, dword [esi + 4]
jbe 0x515556
jmp 0x51555b
movss xmm0, dword [esi + 4]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [eax + 0x18]
comiss xmm0, dword [esi + 8]
jbe 0x51556d
jmp 0x515572
movss xmm0, dword [esi + 8]
movss dword [eax + 0x18], xmm0
movzx esi, byte [ecx + 3]
mov edi, dword [edx + 0x44]
shl esi, 4
movss xmm0, dword [esi + edi]
add esi, edi
comiss xmm0, dword [eax]
jbe 0x515593
movss xmm0, dword [eax]
jmp 0x515597
movss xmm0, dword [esi]
movss dword [eax], xmm0
movss xmm0, dword [esi + 4]
comiss xmm0, dword [eax + 4]
jbe 0x5155ad
movss xmm0, dword [eax + 4]
jmp 0x5155b2
movss xmm0, dword [esi + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [esi + 8]
comiss xmm0, dword [eax + 8]
jbe 0x5155c9
movss xmm0, dword [eax + 8]
jmp 0x5155ce
movss xmm0, dword [esi + 8]
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [esi]
jbe 0x5155df
jmp 0x5155e3
movss xmm0, dword [esi]
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
comiss xmm0, dword [esi + 4]
jbe 0x5155f5
jmp 0x5155fa
movss xmm0, dword [esi + 4]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [eax + 0x18]
comiss xmm0, dword [esi + 8]
jbe 0x51560c
jmp 0x515611
movss xmm0, dword [esi + 8]
movss dword [eax + 0x18], xmm0
movss xmm0, dword [eax]
mov esi, dword [esp + 0x18]
subss xmm0, xmm6
movss dword [eax], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm6
movss dword [eax + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm6
movss dword [eax + 8], xmm0
movss xmm0, dword [eax + 0x10]
addss xmm0, xmm6
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
addss xmm0, xmm6
movss dword [eax + 0x14], xmm0
movss xmm0, dword [eax + 0x18]
addss xmm0, xmm6
movss dword [eax + 0x18], xmm0
mov eax, dword [edx + 0x50]
mov dword [esi + eax + 0x20], 0
movzx edi, byte [ecx]
movzx esi, byte [ecx + 3]
mov eax, dword [edx + 0x44]
shl edi, 4
movss xmm0, dword [edi + eax]
shl esi, 4
add edi, eax
add esi, eax
ucomiss xmm0, dword [esi]
lahf
test ah, 0x44
jp 0x5156b7
movss xmm0, dword [edi + 4]
ucomiss xmm0, dword [esi + 4]
lahf
test ah, 0x44
jp 0x5156b7
movss xmm0, dword [edi + 8]
ucomiss xmm0, dword [esi + 8]
lahf
test ah, 0x44
jnp 0x5156cd
mov eax, dword [edx + 0x50]
mov esi, dword [esp + 0x18]
mov edi, dword [esi + eax + 0x20]
lea eax, [esi + eax + 0x20]
or edi, 0x40
mov dword [eax], edi
jmp 0x5156d1
mov esi, dword [esp + 0x18]
movzx eax, byte [ecx + 4]
mov edi, dword [edx + 0x48]
shl eax, 4
movss xmm3, dword [eax + edi]
movss xmm4, dword [eax + edi + 4]
movss xmm5, dword [eax + edi + 8]
add eax, edi
movzx eax, byte [ecx]
mov ecx, dword [edx + 0x44]
shl eax, 4
movss xmm2, dword [eax + ecx + 4]
movss xmm0, dword [eax + ecx + 8]
movss xmm1, dword [eax + ecx]
add eax, ecx
mov ecx, dword [edx + 0x50]
mulss xmm0, xmm5
mulss xmm1, xmm3
mulss xmm2, xmm4
addss xmm0, xmm2
addss xmm0, xmm1
xorps xmm1, xmm1
subss xmm1, xmm0
movss xmm0, dword [0x738db8]
comiss xmm3, xmm0
movss dword [esi + ecx + 0x24], xmm1
jbe 0x51574b
mov eax, dword [edx + 0x50]
mov ecx, dword [esi + eax + 0x20]
lea eax, [esi + eax + 0x20]
or ecx, 1
mov dword [eax], ecx
movss xmm1, dword [0x738eb8]
comiss xmm1, xmm3
jbe 0x515762
mov ecx, dword [edx + 0x50]
lea eax, [esi + ecx + 0x20]
or dword [eax], 2
comiss xmm4, xmm0
jbe 0x515777
mov eax, dword [edx + 0x50]
mov ecx, dword [esi + eax + 0x20]
lea eax, [esi + eax + 0x20]
or ecx, 4
mov dword [eax], ecx
comiss xmm1, xmm4
jbe 0x515786
mov ecx, dword [edx + 0x50]
lea eax, [esi + ecx + 0x20]
or dword [eax], 8
comiss xmm5, xmm0
jbe 0x51579b
mov eax, dword [edx + 0x50]
mov ecx, dword [esi + eax + 0x20]
lea eax, [esi + eax + 0x20]
or ecx, 0x10
mov dword [eax], ecx
comiss xmm1, xmm5
jbe 0x5157aa
mov ecx, dword [edx + 0x50]
lea eax, [esi + ecx + 0x20]
or dword [eax], 0x20
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 5
mov dword [esp + 0x20], ecx
movsx ecx, word [ebx + 0x28]
inc eax
add esi, 0x30
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x515330
jmp 0x5157dc
inc dword [edi + 0x21b7c]
inc byte [edx + 0x39]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x21b78]
mov dword [eax + ecx*4 + 0x21978], edx
inc dword [eax + 0x21b78]
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x24]
movsx edx, word [edi + 0x30]
inc ebx
cmp ebx, edx
mov dword [esp + 0x24], ebx
jl 0x514f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c