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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e71f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x328
mov eax, dword [0x64e2c0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x318], esi
cmp esi, ecx
je 0x519473
lea eax, [esi + 0x140]
mov dword [ebp - 0x310], eax
cmp eax, ecx
je 0x519473
lea ecx, [eax - 0xfc]
mov dword [ebp - 0x314], ecx
push eax
lea ecx, [ebp - 0x300]
mov edi, eax
call fcn.0051b420
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0xf0]
add eax, 0x54
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x304], eax
call fcn.0052f950
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0xe0]
add eax, 0x48
push eax
mov dword [ebp - 0x308], eax
call fcn.0052f950
movaps xmm0, xmmword [ebp - 0x200]
lea eax, [ebp - 0x1a0]
movaps xmmword [ebp - 0x160], xmm0
lea ecx, [ebp - 0x160]
movaps xmm0, xmmword [ebp - 0x1f0]
movaps xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [ebp - 0x1e0]
push eax
movaps xmmword [ebp - 0x140], xmm0
call fcn.0052fbd0
push dword [ebp - 0x304]
lea ecx, [ebp - 0x110]
movups xmm1, xmmword [eax]
subps xmm1, xmmword [ebp - 0xe0]
mulps xmm1, xmmword [ebp - 0xf0]
movaps xmm0, xmm1
movaps xmm2, xmm1
shufps xmm0, xmm1, 0x55
addss xmm2, xmm0
shufps xmm1, xmm1, 0xaa
addss xmm2, xmm1
movaps xmmword [ebp - 0x330], xmm2
call fcn.0052f950
push dword [ebp - 0x308]
lea ecx, [ebp - 0x100]
call fcn.0052f950
movups xmm0, xmmword [esi + 0x100]
lea eax, [ebp - 0x1b0]
push eax
movups xmmword [ebp - 0x190], xmm0
lea ecx, [ebp - 0x190]
movups xmm0, xmmword [esi + 0x110]
movups xmmword [ebp - 0x180], xmm0
movups xmm0, xmmword [esi + 0x120]
movups xmmword [ebp - 0x170], xmm0
call fcn.0052fbd0
movups xmm2, xmmword [eax]
subps xmm2, xmmword [ebp - 0x100]
mulps xmm2, xmmword [ebp - 0x110]
movaps xmm0, xmm2
movaps xmm1, xmm2
shufps xmm0, xmm2, 0x55
addss xmm1, xmm0
shufps xmm2, xmm2, 0xaa
movaps xmm0, xmmword [ebp - 0x330]
addss xmm1, xmm2
comiss xmm0, xmm1
jbe 0x518fd7
mov esi, dword [ebp - 0x310]
mov edi, dword [ebp - 0x318]
cmp esi, edi
je 0x5193f5
nop dword [eax]
mov ecx, esi
sub esi, 0x140
push esi
call fcn.0051cde0
cmp esi, edi
jne 0x518fc0
jmp 0x5193f5
mov esi, dword [ebp - 0x314]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x304]
lea eax, [esi - 0x44]
mov dword [ebp - 0x30c], eax
call fcn.0052f950
push dword [ebp - 0x308]
lea ecx, [ebp - 0x40]
call fcn.0052f950
movaps xmm0, xmmword [ebp - 0x200]
lea eax, [ebp - 0x120]
movaps xmmword [ebp - 0xa0], xmm0
lea ecx, [ebp - 0xa0]
movaps xmm0, xmmword [ebp - 0x1f0]
movaps xmmword [ebp - 0x90], xmm0
movaps xmm0, xmmword [ebp - 0x1e0]
push eax
movaps xmmword [ebp - 0x80], xmm0
call fcn.0052fbd0
push dword [ebp - 0x304]
lea ecx, [ebp - 0x70]
movups xmm1, xmmword [eax]
subps xmm1, xmmword [ebp - 0x40]
mulps xmm1, xmmword [ebp - 0x50]
movaps xmm0, xmm1
movaps xmm2, xmm1
shufps xmm0, xmm1, 0x55
addss xmm2, xmm0
shufps xmm1, xmm1, 0xaa
addss xmm2, xmm1
movaps xmmword [ebp - 0x330], xmm2
call fcn.0052f950
push dword [ebp - 0x308]
lea ecx, [ebp - 0x60]
call fcn.0052f950
movups xmm0, xmmword [esi + 0xbc]
lea eax, [ebp - 0x130]
push eax
movups xmmword [ebp - 0xd0], xmm0
lea ecx, [ebp - 0xd0]
movups xmm0, xmmword [esi + 0xcc]
movups xmmword [ebp - 0xc0], xmm0
movups xmm0, xmmword [esi + 0xdc]
movups xmmword [ebp - 0xb0], xmm0
call fcn.0052fbd0
movups xmm2, xmmword [eax]
subps xmm2, xmmword [ebp - 0x60]
mulps xmm2, xmmword [ebp - 0x70]
movaps xmm0, xmm2
movaps xmm1, xmm2
shufps xmm0, xmm2, 0x55
addss xmm1, xmm0
shufps xmm2, xmm2, 0xaa
movaps xmm0, xmmword [ebp - 0x330]
addss xmm1, xmm2
comiss xmm0, xmm1
jbe 0x5193f5
nop dword [eax]
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax]
mov dword [ebp - 0x31c], ecx
mov dword [eax], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x51910f
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x31c]
lea ecx, [edi + 0x20]
mov dword [edi], eax
mov eax, dword [esi - 0x40]
mov dword [edi + 4], eax
mov eax, dword [esi - 0x3c]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x38]
mov dword [edi + 0xc], eax
movzx eax, byte [esi - 0x34]
mov byte [edi + 0x10], al
movzx eax, byte [esi - 0x33]
mov byte [edi + 0x11], al
movzx eax, byte [esi - 0x32]
mov byte [edi + 0x12], al
movzx eax, byte [esi - 0x31]
mov byte [edi + 0x13], al
movzx eax, byte [esi - 0x30]
mov byte [edi + 0x14], al
movzx eax, byte [esi - 0x2f]
mov byte [edi + 0x15], al
movzx eax, byte [esi - 0x2e]
mov byte [edi + 0x16], al
movzx eax, byte [esi - 0x2d]
mov byte [edi + 0x17], al
movzx eax, byte [esi - 0x2c]
mov byte [edi + 0x18], al
lea eax, [esi - 0x24]
cmp ecx, eax
je 0x5191cf
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x519194
mov eax, dword [eax]
cmp dword [ecx + 0x24], ecx
mov ecx, dword [ecx + 0x24]
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
lea ecx, [edi + 0x20]
mov dword [ecx + 0x24], 0
mov edx, dword [esi]
test edx, edx
je 0x5191cf
lea eax, [esi - 0x24]
cmp edx, eax
jne 0x5191c6
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax + 4]
call eax
mov dword [edi + 0x44], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x5191cf
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [esi - 0x24]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x5191c9
mov dword [ecx + 0x24], edx
mov dword [esi], 0
movups xmm0, xmmword [esi + 4]
push dword [ebp - 0x304]
movups xmmword [edi + 0x48], xmm0
movups xmm0, xmmword [esi + 0x14]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x24]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x34]
movq qword [edi + 0x78], xmm0
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x80], eax
movups xmm0, xmmword [esi + 0x4c]
movups xmmword [edi + 0x90], xmm0
movups xmm0, xmmword [esi + 0x5c]
movups xmmword [edi + 0xa0], xmm0
movups xmm0, xmmword [esi + 0x6c]
movups xmmword [edi + 0xb0], xmm0
mov eax, dword [esi + 0x7c]
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0xc4], eax
mov al, byte [esi + 0x84]
mov byte [edi + 0xc8], al
mov eax, dword [esi + 0x88]
mov dword [edi + 0xcc], eax
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xd0], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0xd8], eax
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0xa0]
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], ecx
lea ecx, [ebp - 0x50]
movq xmm0, qword [esi + 0xa4]
movq qword [edi + 0xe8], xmm0
mov eax, dword [esi + 0xac]
mov dword [edi + 0xf0], eax
mov eax, dword [esi + 0xb0]
mov dword [edi + 0xf4], eax
movups xmm0, xmmword [esi + 0xbc]
mov eax, dword [ebp - 0x30c]
movups xmmword [edi + 0x100], xmm0
movups xmm0, xmmword [esi + 0xcc]
movups xmmword [edi + 0x110], xmm0
movups xmm0, xmmword [esi + 0xdc]
sub esi, 0x140
movups xmmword [edi + 0x120], xmm0
mov edi, eax
sub eax, 0x140
mov dword [ebp - 0x30c], eax
call fcn.0052f950
push dword [ebp - 0x308]
lea ecx, [ebp - 0x40]
call fcn.0052f950
movaps xmm0, xmmword [ebp - 0x200]
lea eax, [ebp - 0x120]
movaps xmmword [ebp - 0xa0], xmm0
lea ecx, [ebp - 0xa0]
movaps xmm0, xmmword [ebp - 0x1f0]
movaps xmmword [ebp - 0x90], xmm0
movaps xmm0, xmmword [ebp - 0x1e0]
push eax
movaps xmmword [ebp - 0x80], xmm0
call fcn.0052fbd0
push dword [ebp - 0x304]
lea ecx, [ebp - 0x70]
movups xmm1, xmmword [eax]
subps xmm1, xmmword [ebp - 0x40]
mulps xmm1, xmmword [ebp - 0x50]
movaps xmm0, xmm1
movaps xmm2, xmm1
shufps xmm0, xmm1, 0x55
addss xmm2, xmm0
shufps xmm1, xmm1, 0xaa
addss xmm2, xmm1
movaps xmmword [ebp - 0x330], xmm2
call fcn.0052f950
push dword [ebp - 0x308]
lea ecx, [ebp - 0x60]
call fcn.0052f950
movups xmm0, xmmword [esi + 0xbc]
lea eax, [ebp - 0x130]
push eax
movups xmmword [ebp - 0xd0], xmm0
lea ecx, [ebp - 0xd0]
movups xmm0, xmmword [esi + 0xcc]
movups xmmword [ebp - 0xc0], xmm0
movups xmm0, xmmword [esi + 0xdc]
movups xmmword [ebp - 0xb0], xmm0
call fcn.0052fbd0
movups xmm2, xmmword [eax]
subps xmm2, xmmword [ebp - 0x60]
mulps xmm2, xmmword [ebp - 0x70]
movaps xmm0, xmm2
movaps xmm1, xmm2
shufps xmm0, xmm2, 0x55
addss xmm1, xmm0
shufps xmm2, xmm2, 0xaa
movaps xmm0, xmmword [ebp - 0x330]
addss xmm1, xmm2
comiss xmm0, xmm1
ja 0x5190f0
lea eax, [ebp - 0x300]
mov ecx, edi
push eax
call fcn.0051cde0
mov ecx, dword [ebp - 0x2bc]
test ecx, ecx
je 0x51942a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2e0]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2bc], 0
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x519440
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x310]
add dword [ebp - 0x314], 0x140
add eax, 0x140
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebp - 0x318]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x310], eax
cmp eax, ecx
jne 0x518e65
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret