Function at 0x100af4c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [0x102090c0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x10226cb0]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100af86e
mov eax, dword [0x10226cb0]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100af86e
mov eax, dword [0x10228e54]
mov ecx, dword [eax]
test ecx, ecx
je 0x100af882
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100af882
cmp dword [0x10450840], 0
je 0x100af882
mov eax, dword [0x10226ca4]
mov ecx, dword [eax + 0xd0]
mov ecx, dword [ecx]
call fcn.10091750
cmp byte [eax], 0
je 0x100af452
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x10450818], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10228e54]
movss xmm0, dword [0x10450944]
mov eax, dword [edx]
movss xmm1, dword [eax + 0x103c0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100af48f
movss dword [0x10450944], xmm1
mov dword [0x1045082c], 0
mov dword [0x10450828], 0
mov eax, dword [0x10226ca8]
cmp byte [eax + 0x3538], 0
je case.0x100af4ad.0
mov ecx, dword [eax + 0x353c]
add eax, 0x353c
cmp ecx, 3
ja case.0x100af4ad.0
jmp dword [ecx*4 + 0x100af8a0]
mov ecx, eax
call fcn.100cbd30
mov edx, dword [0x10228e54]
jmp 0x100af4c6
mov al, byte [eax + 0x20]
test al, al
je case.0x100af4ad.0
mov eax, dword [0x10226ca4]
mov dword [0x10450848], 0
mov dword [0x10450820], 0
mov dword [0x10450834], 0
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x10450818], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x430]
call eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1022867c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1051b50c]
cmp eax, dword [esi + 4]
jle 0x100af711
push 0x1051b50c
call fcn.1019bffa
add esp, 4
cmp dword [0x1051b50c], 0xffffffff
jne 0x100af711
mov eax, dword [0x10226cb0]
xor ebx, ebx
cmp dword [0x10228670], 2
movups xmm0, xmmword [str.BDlYTNBKKYVXMLP_100____I]
mov edi, dword [eax + 8]
mov al, byte [0x101ec2b8]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x38], al
movq xmm0, qword [0x101ec2b0]
movq qword [esp + 0x30], xmm0
jl 0x100af6c4
movaps xmm0, xmmword [0x101faf30]
movaps xmm4, xmmword [0x101fadd0]
movaps xmm3, xmmword [0x101fb260]
movaps xmm5, xmmword [0x101fae70]
movaps xmmword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
nop word [eax + eax]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101faf00]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x20]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x20], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101faf00]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x24]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x24], xmm1
add ebx, 8
cmp ebx, 0x18
jl 0x100af5c0
cmp ebx, 0x19
jge 0x100af6f1
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x31
xor byte [esp + ebx + 0x20], al
inc ebx
cmp ebx, 0x19
jl 0x100af6c4
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x1051b50c
mov dword [0x1051b510], eax
call fcn.1019bfa6
add esp, 4
mov ecx, dword [0x1051b510]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov eax, dword [0x1051b518]
cmp eax, dword [esi + 4]
jle 0x100af74e
push 0x1051b518
call fcn.1019bffa
add esp, 4
cmp dword [0x1051b518], 0xffffffff
jne 0x100af74e
push 0x1051b518
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x1045094c]
cmp eax, dword [esi + 4]
jle 0x100af799
push 0x1045094c
call fcn.1019bffa
add esp, 4
cmp dword [0x1045094c], 0xffffffff
jne 0x100af799
mov edx, 0xc60bf9f2
mov ecx, 0x101ec281
call fcn.1007da20
mov ecx, eax
call fcn.100d1920
push 0x1045094c
mov dword [0x10450948], eax
call fcn.1019bfa6
add esp, 4
mov eax, dword [0x1045082c]
cmp eax, dword [0x10450840]
jl 0x100af7bd
call fcn.1018fdd0
sub eax, dword [0x10450840]
cmp dword [0x1045083c], eax
jle 0x100af88c
mov eax, dword [0x10226ca4]
mov eax, dword [eax + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
subss xmm0, dword [0x10450818]
comiss xmm0, dword [0x101fa798]
jbe 0x100af88c
subss xmm1, dword [0x104507e4]
comiss xmm1, dword [0x101fa850]
ja 0x100af7ff
cmp byte [0x10450838], 0
jne 0x100af88c
call fcn.1018fdd0
mov ecx, dword [0x1045082c]
lea edx, [ecx + 1]
mov dword [0x1045082c], edx
cmp ecx, eax
jl 0x100af81e
call fcn.1018fdd0
mov edx, eax
mov eax, dword [0x1045083c]
mov dword [0x1045082c], edx
test eax, eax
jle 0x100af84d
inc dword [0x10450828]
dec eax
mov dword [0x1045083c], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret
inc dword [0x10450828]
xor eax, eax
mov dword [0x1045083c], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret
mov dword [0x1045083c], 0
mov dword [0x10450828], 0
mov dword [0x1045082c], 0
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019ba64
mov esp, ebp
pop ebp
ret