Function at 0x100af670
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], ecx
push esi
push edi
test eax, eax
je 0x100af699
mov edx, dword [eax]
jmp 0x100af69b
xor edx, edx
mov eax, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
vxorpd xmm0, xmm0, xmm0
vmovlpd qword [ebp - 8], xmm0
cmp edi, eax
je 0x100af859
mov esi, dword [edx + 8]
mov ecx, edi
mov edx, dword [edx + 4]
dec esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edx
nop word [eax + eax]
mov eax, esi
and eax, ecx
mov ecx, dword [edx + eax*4]
mov dl, byte [ecx + 0x40]
test dl, dl
jne 0x100af6e4
cmp dword [ecx + 0x54], 0
jne 0x100af75c
mov esi, dword [0x1044a8a4]
vmovss xmm0, dword [esi]
vsubss xmm0, xmm0, dword [ecx + 0x34]
call fcn.1002e470
vcomiss xmm0, dword [0x100e5260]
mov esi, dword [ebp - 0x18]
jae 0x100af76f
test dl, dl
jne 0x100af75c
cmp dword [ecx + 0x54], 0
jne 0x100af75c
cmp dword [ecx + 0x48], 0xffffffff
je 0x100af75c
mov edx, dword [ecx + 0x50]
cmp edx, 0xffffffff
je 0x100af75c
mov eax, dword [0x1044a8b8]
mov eax, dword [eax + 0x4cb4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jle 0x100af75c
mov eax, dword [0x1044a8a4]
vmovss xmm0, dword [eax]
vsubss xmm0, xmm0, dword [ecx + 0x38]
call fcn.1002e470
vcomiss xmm0, dword [0x100e5260]
ja 0x100af76f
vmovss xmm1, dword [ecx + 0x3c]
vcomiss xmm1, xmm0
jb 0x100af76f
mov eax, dword [ebp - 0x14]
inc edi
mov edx, dword [ebp - 4]
mov ecx, edi
cmp ecx, eax
jne 0x100af6d0
jmp 0x100af772
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp edi, eax
je 0x100af859
lea esi, [edi + 1]
cmp esi, eax
je 0x100af859
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
dec ecx
and ecx, esi
mov ecx, dword [eax + ecx*4]
mov al, byte [ecx + 0x40]
mov byte [ebp - 9], al
test al, al
jne 0x100af7a8
cmp dword [ecx + 0x54], 0
jne 0x100af82e
mov edx, dword [0x1044a8a4]
vmovss xmm0, dword [edx]
vsubss xmm0, xmm0, dword [ecx + 0x34]
call fcn.1002e470
vcomiss xmm0, dword [0x100e5260]
mov edx, dword [ebp - 0x10]
jae 0x100af84f
cmp byte [ebp - 9], 0
jne 0x100af82e
cmp dword [ecx + 0x54], 0
jne 0x100af82e
cmp dword [ecx + 0x48], 0xffffffff
je 0x100af82e
mov edx, dword [ecx + 0x50]
cmp edx, 0xffffffff
je 0x100af82b
mov eax, dword [0x1044a8b8]
mov eax, dword [eax + 0x4cb4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jle 0x100af82b
mov eax, dword [0x1044a8a4]
vmovss xmm0, dword [eax]
vsubss xmm0, xmm0, dword [ecx + 0x38]
call fcn.1002e470
vcomiss xmm0, dword [0x100e5260]
mov edx, dword [ebp - 0x10]
ja 0x100af84f
vmovss xmm1, dword [ecx + 0x3c]
vcomiss xmm1, xmm0
jb 0x100af84f
jmp 0x100af82e
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
dec ecx
and ecx, esi
push dword [eax + ecx*4]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
dec eax
and eax, edi
mov ecx, dword [ecx + eax*4]
call fcn.100af880
mov edx, dword [ebp - 0x10]
inc edi
inc esi
cmp esi, dword [ebp - 0x14]
jne 0x100af788
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 8]
mov dword [eax + 8], edi
pop edi
mov dword [eax + 4], 0
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret