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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x184
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0xc]
test al, al
jne 0x51d442
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], ecx
mov esi, dword [edi + 0xcc]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x6c], esi
cmp edx, dword [ebx + 0x28]
je 0x51d371
mov ecx, ebx
call fcn.0051bed0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebx
call fcn.0051cea0
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x40]
mov eax, dword [esp + 0x30]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc8], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0xd8], ecx
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], eax
mov byte [esp + 0x50], 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], ecx
jle 0x51d4ae
mov edx, dword [ebx + 0x14]
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
je 0x51d4a0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x40]
push edx
call eax
xor eax, eax
cmp dword [esp + 0x44], eax
mov dword [esp + 0x10], eax
jle 0x51d471
jmp 0x51d410
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx + 0x2c8], 0
je 0x51d466
mov dword [esi + 4], ecx
cmp dword [ecx + 0x2c8], 0
je 0x51d45b
mov edx, dword [ecx + 0x2c0]
cmp edx, dword [esi + 0x90]
je 0x51d44e
lea eax, [esi + 0x10]
lea edx, [esi + 0x50]
jmp 0x51d454
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
jmp 0x51d349
lea eax, [esi + 0x50]
lea edx, [esi + 0x10]
push eax
push edx
call fcn.0050c010
mov eax, dword [esp + 0x10]
mov dword [esi + 4], 0
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jl 0x51d410
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x51d489
cmp byte [esp + 0x50], 0
je 0x51d489
push eax
call fcn.00547600
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
mov byte [esp + 0x50], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
inc ecx
cmp ecx, dword [ebx + 0xc]
mov dword [esp + 0x14], ecx
jl 0x51d3dc
xor esi, esi
cmp dword [esp + 0x20], esi
je 0x51d87d
lea eax, [esp + 0x150]
push eax
lea ecx, [edi + 0x10]
call fcn.004154c0
mov ecx, dword [esp + 0x30]
movss xmm0, dword [ecx + 0x40]
movss xmm2, dword [ecx + 0x44]
movss xmm5, dword [eax]
movss xmm1, dword [ecx + 0x48]
movss xmm4, dword [eax + 4]
movss xmm3, dword [eax + 8]
movss xmm7, dword [ecx + 0x24]
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x10], xmm5
movss dword [esp + 0x68], xmm4
movaps xmm6, xmm0
mulss xmm6, xmm5
movaps xmm5, xmm2
mulss xmm5, xmm4
addss xmm6, xmm5
movss xmm5, dword [eax + 0x24]
movaps xmm4, xmm1
mulss xmm4, xmm3
movss xmm3, dword [eax + 0x14]
mulss xmm3, xmm2
addss xmm6, xmm4
movss xmm4, dword [eax + 0x18]
addss xmm6, dword [eax + 0x30]
mulss xmm4, xmm1
addss xmm3, xmm4
movaps xmm4, xmm0
mulss xmm4, dword [eax + 0x10]
mulss xmm0, dword [eax + 0x20]
addss xmm3, xmm4
addss xmm3, dword [eax + 0x34]
movss xmm4, dword [ecx + 0x28]
movss dword [esp + 0xb4], xmm3
movss xmm3, dword [eax + 0x24]
mulss xmm3, xmm2
movss xmm2, dword [eax + 0x28]
mulss xmm2, xmm1
movss xmm1, dword [eax + 0x28]
addss xmm3, xmm2
movss xmm2, dword [eax + 0x24]
addss xmm3, xmm0
addss xmm3, dword [eax + 0x38]
xorps xmm0, xmm0
mulss xmm2, xmm7
movss dword [esp + 0x14], xmm7
movss xmm7, dword [eax + 0x28]
movss dword [esp + 0xb0], xmm6
movss xmm6, dword [ecx + 0x34]
mulss xmm7, xmm6
movss dword [esp + 0xb8], xmm3
movss xmm3, dword [ecx + 0x38]
mulss xmm1, xmm3
mulss xmm5, xmm4
addss xmm5, xmm1
movss xmm1, dword [eax + 0x20]
addss xmm2, xmm7
movss xmm7, dword [eax + 0x24]
movss dword [esp + 0xbc], xmm0
movss xmm0, dword [ecx + 0x18]
movss dword [esp + 0x18], xmm6
movss xmm6, dword [eax + 0x20]
mulss xmm1, xmm0
addss xmm5, xmm1
movss xmm1, dword [ecx + 0x14]
mulss xmm6, xmm1
addss xmm2, xmm6
movss xmm6, dword [ecx + 0x20]
mulss xmm7, xmm6
movss dword [esp + 0x2c], xmm2
movss xmm2, dword [ecx + 0x30]
movss dword [esp + 0x24], xmm7
movss xmm7, dword [eax + 0x28]
movss dword [esp + 0xc], xmm2
movss xmm2, dword [ecx + 0x10]
mulss xmm7, dword [esp + 0xc]
movss dword [esp + 0x1c], xmm6
movss xmm6, dword [esp + 0x24]
addss xmm6, xmm7
movss xmm7, dword [eax + 0x20]
mulss xmm7, xmm2
addss xmm6, xmm7
movss xmm7, dword [eax + 0x18]
mulss xmm7, xmm3
movss dword [esp + 0x3c], xmm6
movss xmm6, dword [eax + 0x14]
mulss xmm6, xmm4
addss xmm6, xmm7
movaps xmm7, xmm0
mulss xmm7, dword [eax + 0x10]
mulss xmm0, dword [esp + 0x10]
addss xmm6, xmm7
movss xmm7, dword [eax + 0x18]
mulss xmm7, dword [esp + 0x18]
movss dword [esp + 0x38], xmm6
movss xmm6, dword [eax + 0x14]
mulss xmm6, dword [esp + 0x14]
movss dword [esp + 0x24], xmm6
addss xmm6, xmm7
movaps xmm7, xmm1
mulss xmm7, dword [eax + 0x10]
addss xmm6, xmm7
movss xmm7, dword [eax + 0x18]
mulss xmm7, dword [esp + 0xc]
movss dword [esp + 0x34], xmm6
movss xmm6, dword [eax + 0x14]
mulss xmm6, dword [esp + 0x1c]
movss dword [esp + 0x24], xmm6
addss xmm6, xmm7
movaps xmm7, xmm2
mulss xmm7, dword [eax + 0x10]
addss xmm6, xmm7
movss xmm7, dword [esp + 0x68]
mulss xmm4, xmm7
addss xmm0, xmm4
movss xmm4, dword [esp + 0x28]
mulss xmm3, xmm4
addss xmm0, xmm3
movss xmm3, dword [esp + 0x14]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm1, xmm0
mulss xmm3, xmm7
addss xmm1, xmm3
movss xmm3, dword [esp + 0x18]
mulss xmm3, xmm4
addss xmm1, xmm3
movss xmm3, dword [esp + 0x1c]
mulss xmm2, xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0xe4], xmm1
movss xmm1, dword [esp + 0x34]
mulss xmm3, xmm7
addss xmm2, xmm3
movss xmm3, dword [esp + 0xc]
movss dword [esp + 0xe8], xmm0
xorps xmm0, xmm0
movss dword [esp + 0xf4], xmm1
movss xmm1, dword [esp + 0x38]
movss dword [esp + 0xec], xmm0
movss dword [esp + 0xfc], xmm0
movss dword [esp + 0x10c], xmm0
mulss xmm3, xmm4
movss dword [esp + 0xf8], xmm1
movss xmm1, dword [esp + 0x3c]
addss xmm2, xmm3
movss dword [esp + 0xe0], xmm2
movdqa xmm0, xmmword [esp + 0xe0]
movdqa xmmword [esp + 0x70], xmm0
movss dword [esp + 0x100], xmm1
movss xmm1, dword [esp + 0x2c]
movss dword [esp + 0xf0], xmm6
movdqa xmm0, xmmword [esp + 0xf0]
movdqa xmmword [esp + 0x80], xmm0
movss dword [esp + 0x104], xmm1
movss dword [esp + 0x108], xmm5
movdqa xmm0, xmmword [esp + 0x100]
movdqa xmmword [esp + 0x90], xmm0
movdqa xmm0, xmmword [esp + 0xb0]
mov ecx, dword [ecx + 0xcc]
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x44]
push eax
movdqa xmmword [esp + 0xa8], xmm0
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x78]
push eax
call edx
movdqa xmm0, xmmword [esp + 0x40]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movdqa xmmword [esp + 0xe8], xmm0
movdqa xmm0, xmmword [esp + 0x118]
push edx
movdqa xmmword [esp + 0xfc], xmm0
call fcn.0051d060
jmp 0x51d8b5
mov eax, dword [ebx + 0xc]
cmp eax, esi
mov dword [esp + 0x2c], eax
jle 0x51d8b5
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + edx + 0x40]
push esi
push eax
lea ecx, [esp + 0xc8]
call fcn.0051bf10
add dword [esp + 0xc], 0x50
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x51d88c
mov eax, dword [ebx + 0xc]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x68], eax
jle 0x51ddff
mov dword [esp + 0x10], esi
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + esi*4], 0
je 0x51ddef
movq xmm0, qword [edi + 0x10]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x18]
movss xmm2, dword [eax + ecx + 0x34]
movss xmm1, dword [eax + ecx + 0x38]
movq qword [esp + 0x70], xmm0
movq xmm0, qword [edi + 0x18]
movq qword [esp + 0x78], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esp + 0x80], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [esp + 0x88], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esp + 0x90], xmm0
movq xmm0, qword [edi + 0x38]
movss xmm7, dword [esp + 0x90]
movss xmm6, dword [esp + 0x94]
movq qword [esp + 0x98], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esp + 0xa0], xmm0
movq xmm0, qword [edi + 0x48]
add eax, ecx
movq qword [esp + 0xa8], xmm0
movss xmm0, dword [eax + 0x30]
movaps xmm3, xmm0
mulss xmm3, dword [esp + 0x70]
movaps xmm4, xmm2
mulss xmm4, dword [esp + 0x74]
addss xmm3, xmm4
movaps xmm4, xmm1
mulss xmm4, dword [esp + 0x78]
addss xmm3, xmm4
addss xmm3, dword [esp + 0xa0]
movss dword [esp + 0xb0], xmm3
movaps xmm3, xmm0
mulss xmm3, dword [esp + 0x80]
movaps xmm4, xmm2
mulss xmm4, dword [esp + 0x84]
mulss xmm2, xmm6
mulss xmm0, xmm7
addss xmm0, xmm2
movss xmm2, dword [esp + 0x98]
mov ecx, dword [eax + 0x40]
addss xmm3, xmm4
movaps xmm4, xmm1
mulss xmm4, dword [esp + 0x88]
mulss xmm1, xmm2
addss xmm0, xmm1
addss xmm0, dword [esp + 0xa8]
movss dword [esp + 0xb8], xmm0
xorps xmm0, xmm0
addss xmm3, xmm4
addss xmm3, dword [esp + 0xa4]
movss xmm4, dword [eax + 0x18]
movss dword [esp + 0xbc], xmm0
movss xmm0, dword [eax + 8]
movaps xmm5, xmm0
mulss xmm5, xmm7
movaps xmm1, xmm4
mulss xmm1, xmm6
addss xmm5, xmm1
movss dword [esp + 0xb4], xmm3
movss xmm3, dword [eax + 0x28]
movaps xmm1, xmm3
mulss xmm1, xmm2
addss xmm5, xmm1
movss xmm1, dword [eax + 0x24]
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [eax + 0x14]
movss dword [esp + 0x20], xmm1
movss xmm1, dword [eax + 4]
movaps xmm2, xmm1
mulss xmm2, xmm7
movss xmm7, dword [esp + 0x20]
mulss xmm7, xmm6
movss xmm6, dword [esp + 0x1c]
mulss xmm6, dword [esp + 0x98]
addss xmm2, xmm7
addss xmm2, xmm6
movss dword [esp + 0x28], xmm2
movss xmm2, dword [eax + 0x20]
movss dword [esp + 0x14], xmm2
movss xmm2, dword [eax + 0x10]
movss dword [esp + 0x18], xmm2
movss xmm2, dword [eax]
movaps xmm6, xmm2
mulss xmm6, dword [esp + 0x90]
movss dword [esp + 0xc], xmm6
movss xmm7, dword [esp + 0xc]
movss xmm6, dword [esp + 0x18]
mulss xmm6, dword [esp + 0x94]
addss xmm7, xmm6
movss xmm6, dword [esp + 0x14]
mulss xmm6, dword [esp + 0x98]
movss dword [esp + 0xc], xmm7
addss xmm7, xmm6
movss dword [esp + 0x34], xmm7
movaps xmm6, xmm0
mulss xmm6, dword [esp + 0x80]
movss dword [esp + 0xc], xmm6
movss xmm7, dword [esp + 0xc]
movaps xmm6, xmm4
mulss xmm6, dword [esp + 0x84]
addss xmm7, xmm6
movaps xmm6, xmm3
mulss xmm6, dword [esp + 0x88]
movss dword [esp + 0xc], xmm7
addss xmm7, xmm6
movaps xmm6, xmm1
mulss xmm6, dword [esp + 0x80]
movss dword [esp + 0xc], xmm6
movss xmm6, dword [esp + 0x20]
mulss xmm6, dword [esp + 0x84]
movss dword [esp + 0x38], xmm7
movss xmm7, dword [esp + 0xc]
addss xmm7, xmm6
movss xmm6, dword [esp + 0x1c]
mulss xmm6, dword [esp + 0x88]
movss dword [esp + 0xc], xmm7
addss xmm7, xmm6
movaps xmm6, xmm2
mulss xmm6, dword [esp + 0x80]
movss dword [esp + 0xc], xmm6
movss xmm6, dword [esp + 0x18]
mulss xmm6, dword [esp + 0x84]
movss dword [esp + 0x3c], xmm7
movss xmm7, dword [esp + 0xc]
addss xmm7, xmm6
movss xmm6, dword [esp + 0x14]
mulss xmm6, dword [esp + 0x88]
movss dword [esp + 0xc], xmm7
addss xmm7, xmm6
movss xmm6, dword [esp + 0x70]
movss dword [esp + 0x2c], xmm7
movss xmm7, dword [esp + 0x74]
mulss xmm0, xmm6
mulss xmm4, xmm7
addss xmm0, xmm4
movss xmm4, dword [esp + 0x78]
mulss xmm3, xmm4
addss xmm0, xmm3
movss xmm3, dword [esp + 0x20]
mulss xmm3, xmm7
mulss xmm1, xmm6
addss xmm1, xmm3
movss xmm3, dword [esp + 0x1c]
mulss xmm3, xmm4
addss xmm1, xmm3
movss xmm3, dword [esp + 0x18]
mulss xmm3, xmm7
mulss xmm2, xmm6
addss xmm2, xmm3
movss xmm3, dword [esp + 0x14]
mulss xmm3, xmm4
movss dword [esp + 0x128], xmm0
xorps xmm0, xmm0
addss xmm2, xmm3
movss dword [esp + 0x124], xmm1
movss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x120], xmm2
movss dword [esp + 0x12c], xmm0
movss dword [esp + 0x130], xmm1
movss xmm1, dword [esp + 0x3c]
movss dword [esp + 0x134], xmm1
movss xmm1, dword [esp + 0x38]
movss dword [esp + 0x13c], xmm0
movss dword [esp + 0x14c], xmm0
movdqa xmm0, xmmword [esp + 0x120]
movss dword [esp + 0x138], xmm1
movss xmm1, dword [esp + 0x34]
movdqa xmmword [esp + 0x150], xmm0
movdqa xmm0, xmmword [esp + 0x130]
movss dword [esp + 0x140], xmm1
movss xmm1, dword [esp + 0x28]
movdqa xmmword [esp + 0x160], xmm0
lea eax, [esp + 0x40]
push eax
movss dword [esp + 0x148], xmm1
movss dword [esp + 0x14c], xmm5
movdqa xmm0, xmmword [esp + 0x144]
movdqa xmmword [esp + 0x174], xmm0
movdqa xmm0, xmmword [esp + 0xb4]
lea eax, [esp + 0xe4]
push eax
movdqa xmmword [esp + 0x188], xmm0
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x158]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xcc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x114]
push eax
mov eax, dword [esp + 0x38]
add eax, 0x10
push eax
call edx
movss xmm0, dword [esp + 0xe0]
comiss xmm0, dword [esp + 0xc0]
mov al, 1
ja 0x51dd78
movss xmm0, dword [esp + 0x110]
comiss xmm0, dword [esp + 0x40]
jbe 0x51dd7a
xor al, al
movss xmm0, dword [esp + 0xe8]
comiss xmm0, dword [esp + 0xc8]
ja 0x51dd9d
movss xmm0, dword [esp + 0x118]
comiss xmm0, dword [esp + 0x48]
jbe 0x51dd9f
xor al, al
movss xmm0, dword [esp + 0xe4]
comiss xmm0, dword [esp + 0xc4]
ja 0x51ddc6
movss xmm0, dword [esp + 0x114]
comiss xmm0, dword [esp + 0x44]
ja 0x51ddc6
test al, al
jne 0x51ddef
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0
call eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax + esi*4]
mov edx, dword [edx + 0x30]
push eax
call edx
mov eax, dword [ebx + 0x14]
mov dword [eax + esi*4], 0
add dword [esp + 0x10], 0x50
inc esi
cmp esi, dword [esp + 0x68]
jl 0x51d8ca
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10