Function at 0x100ae2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [0x102070c0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x10224ca8]
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 0x100ae784
mov eax, dword [0x10224ca8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100ae784
mov eax, dword [0x10226524]
mov ecx, dword [eax]
test ecx, ecx
je 0x100ae798
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100ae798
cmp dword [0x1034d3c0], 0
je 0x100ae798
mov eax, dword [0x10224c9c]
mov ecx, dword [eax + 0xd0]
mov ecx, dword [ecx]
call fcn.10091810
cmp byte [eax], 0
je 0x100ae372
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x1034d398], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10226524]
movss xmm0, dword [0x1034ff58]
mov eax, dword [edx]
movss xmm1, dword [eax + 0x103c0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100ae3af
movss dword [0x1034ff58], xmm1
mov dword [0x1034d3ac], 0
mov dword [0x1034d3a8], 0
mov eax, dword [0x10224ca0]
cmp byte [eax + 0x3538], 0
je case.0x100ae3cd.0
mov ecx, dword [eax + 0x353c]
add eax, 0x353c
cmp ecx, 3
ja case.0x100ae3cd.0
jmp dword [ecx*4 + 0x100ae7b8]
mov ecx, eax
call fcn.100cac70
mov edx, dword [0x10226524]
jmp 0x100ae3e6
mov al, byte [eax + 0x20]
test al, al
je case.0x100ae3cd.0
mov eax, dword [0x10224c9c]
mov dword [0x1034d3c8], 0
mov dword [0x1034d3a0], 0
mov dword [0x1034d3b4], 0
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x1034d398], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019a294
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 [0x10225d4c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10352d90]
cmp eax, dword [esi + 4]
jle 0x100ae627
push 0x10352d90
call fcn.1019a827
add esp, 4
cmp dword [0x10352d90], 0xffffffff
jne 0x100ae627
mov eax, dword [0x10224ca8]
xor ebx, ebx
cmp dword [0x10225d40], 2
movups xmm0, xmmword [str.F_hUXBNOO_R_10__54_____M]
mov edi, dword [eax + 8]
mov al, byte [0x101ea39c]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x38], al
movq xmm0, qword [0x101ea394]
movq qword [esp + 0x30], xmm0
jl 0x100ae5e0
movaps xmm0, xmmword [0x101f8f20]
movaps xmm4, xmmword [0x101f8d60]
movaps xmm3, xmmword [0x101f91c0]
movaps xmm5, xmmword [0x101f8e00]
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
psrad xmm1, 4
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 [0x101f8eb0]
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
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
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 [0x101f8eb0]
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 0x100ae4e0
cmp ebx, 0x19
jge 0x100ae607
nop dword [eax]
mov eax, 0x4d4873ed
imul ebx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
movsx eax, al
imul eax, eax, 0x35
add al, bl
xor byte [esp + ebx + 0x20], al
inc ebx
cmp ebx, 0x19
jl 0x100ae5e0
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x10352d90
mov dword [0x10352d94], eax
call fcn.1019a7d6
add esp, 4
mov ecx, dword [0x10352d94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov eax, dword [0x10352d9c]
cmp eax, dword [esi + 4]
jle 0x100ae664
push 0x10352d9c
call fcn.1019a827
add esp, 4
cmp dword [0x10352d9c], 0xffffffff
jne 0x100ae664
push 0x10352d9c
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034ff60]
cmp eax, dword [esi + 4]
jle 0x100ae6af
push 0x1034ff60
call fcn.1019a827
add esp, 4
cmp dword [0x1034ff60], 0xffffffff
jne 0x100ae6af
mov edx, 0xc60bf9f2
mov ecx, 0x101ea365
call fcn.1007d620
mov ecx, eax
call fcn.100d08c0
push 0x1034ff60
mov dword [0x1034ff5c], eax
call fcn.1019a7d6
add esp, 4
mov eax, dword [0x1034d3ac]
cmp eax, dword [0x1034d3c0]
jl 0x100ae6d3
call fcn.1018e5f0
sub eax, dword [0x1034d3c0]
cmp dword [0x1034d3bc], eax
jle 0x100ae7a2
mov eax, dword [0x10224c9c]
mov eax, dword [eax + 0x10]
movss xmm1, dword [eax]
movaps xmm0, xmm1
subss xmm0, dword [0x1034d398]
comiss xmm0, dword [0x101f8748]
jbe 0x100ae7a2
subss xmm1, dword [0x1034d368]
comiss xmm1, dword [0x101f87f8]
ja 0x100ae715
cmp byte [0x1034d3b8], 0
jne 0x100ae7a2
call fcn.1018e5f0
mov ecx, dword [0x1034d3ac]
lea edx, [ecx + 1]
mov dword [0x1034d3ac], edx
cmp ecx, eax
jl 0x100ae734
call fcn.1018e5f0
mov edx, eax
mov eax, dword [0x1034d3bc]
mov dword [0x1034d3ac], edx
test eax, eax
jle 0x100ae763
inc dword [0x1034d3a8]
dec eax
mov dword [0x1034d3bc], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret
inc dword [0x1034d3a8]
xor eax, eax
mov dword [0x1034d3bc], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret
mov dword [0x1034d3bc], 0
mov dword [0x1034d3a8], 0
mov dword [0x1034d3ac], 0
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019a294
mov esp, ebp
pop ebp
ret