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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x78], eax
cmp edx, 2
jl 0x5afa2e
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
sar eax, 4
imul eax, eax, 0xcccccccd
lea edi, [edx - 2]
shr edi, 1
mov dword [esp + 0x1c], edi
cmp edi, eax
jl 0x5afa2e
lea ebx, [eax + eax]
inc ebx
lea edi, [ebx + ebx*4]
shl edi, 4
mov dword [esp + 8], edi
add edi, ecx
add eax, eax
add eax, 2
cmp eax, edx
mov dword [esp + 0x14], ecx
jge 0x5af878
mov dword [esp + 0xc], ebx
mov ebx, dword [edi + 0x78]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
cmp ebx, dword [ecx + eax + 0x28]
mov ebx, dword [edi + 0x7c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
sbb ebx, dword [ecx + eax + 0x2c]
mov ecx, dword [esp + 0xc]
cmovl ecx, dword [esp + 0x10]
lea eax, [edi + 0x50]
cmovl edi, eax
jmp 0x5af87a
mov ecx, ebx
mov eax, dword [esi + 0x28]
cmp eax, dword [edi + 0x28]
mov eax, dword [esi + 0x2c]
sbb eax, dword [edi + 0x2c]
jl 0x5afa2e
mov dword [esp + 0x18], edx
lea ebx, [esi + 0x28]
mov dword [esp + 8], edi
lea edi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
movups xmm0, xmmword [esi]
movaps xmmword [edi - 0x10], xmm0
lea eax, [esi + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, edi
push eax
call fcn.005e18b0
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x24]
mov dword [edi + 0x14], eax
movsd xmm0, qword [esi + 0x1c]
movsd qword [edi + 0xc], xmm0
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
movsd xmm0, qword [ebx + 0x20]
movsd qword [edi + 0x38], xmm0
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [ebx + 0x10]
movups xmmword [edi + 0x28], xmm1
movups xmmword [edi + 0x18], xmm0
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov ebx, eax
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
lea ecx, [esi + 0x10]
add eax, 0x10
mov dword [esp + 0x10], eax
push eax
call fcn.005e1a10
lea edi, [esi + 0x1c]
cmp byte [esi + 0x27], 0
jns 0x5af933
push dword [edi]
call fcn.0064cd6e
add esp, 4
mov eax, dword [ebx + 0x24]
mov dword [edi + 8], eax
movsd xmm0, qword [ebx + 0x1c]
movsd qword [edi], xmm0
xor eax, eax
mov byte [ebx + 0x27], al
mov byte [ebx + 0x1c], al
movsd xmm0, qword [ebx + 0x48]
movsd qword [esi + 0x48], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmm1, xmmword [ebx + 0x38]
movups xmmword [esi + 0x38], xmm1
movups xmmword [esi + 0x28], xmm0
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x1c], ecx
jl 0x5af9c1
lea eax, [ecx + ecx]
inc eax
mov dword [esp + 8], eax
lea edx, [eax + eax*4]
shl edx, 4
mov edi, dword [esp + 0x14]
lea eax, [edi + edx]
add ecx, ecx
add ecx, 2
cmp ecx, dword [esp + 0x18]
jge 0x5af99e
mov esi, dword [eax + 0x78]
cmp esi, dword [edi + edx + 0x28]
mov esi, dword [eax + 0x7c]
sbb esi, dword [edi + edx + 0x2c]
jl 0x5af9a4
mov edi, dword [esp + 8]
jmp 0x5af9a9
add eax, 0x50
mov edi, ecx
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x28]
mov ecx, dword [esp + 0x4c]
sbb ecx, dword [eax + 0x2c]
mov esi, ebx
mov ecx, edi
jge 0x5af904
lea edi, [ebx + 0x1c]
lea eax, [ebx + 0x28]
mov dword [esp + 0xc], eax
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [ebx], xmm0
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x30]
push esi
call fcn.005e1a10
cmp byte [ebx + 0x27], 0
jns 0x5af9f1
push dword [edi]
call fcn.0064cd6e
add esp, 4
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
movsd xmm0, qword [esi + 0xc]
movsd qword [edi], xmm0
xor eax, eax
mov byte [esp + 0x47], al
mov byte [esp + 0x3c], al
movsd xmm0, qword [esi + 0x38]
mov eax, dword [esp + 0xc]
movsd qword [eax + 0x20], xmm0
movups xmm0, xmmword [esi + 0x18]
movups xmm1, xmmword [esi + 0x28]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
mov ecx, esi
call fcn.005e1990
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0064d372
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret