Function at 0x100ad040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [0x102220c0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x1023fc88]
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 0x100ad50c
mov eax, dword [0x1023fc88]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100ad50c
mov eax, dword [0x10241574]
mov ecx, dword [eax]
test ecx, ecx
je 0x100ad520
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100ad520
cmp dword [0x1024b168], 0
je 0x100ad520
mov eax, dword [0x1023fc7c]
mov ecx, dword [eax + 0xcc]
mov ecx, dword [ecx]
call fcn.10091650
cmp byte [eax], 0
je 0x100ad0f2
mov eax, dword [0x1023fc7c]
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x1024b140], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10241574]
movss xmm0, dword [0x104682bc]
mov eax, dword [edx]
movss xmm1, dword [eax + 0x103c0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100ad12f
movss dword [0x104682bc], xmm1
mov dword [0x1024b154], 0
mov dword [0x1024b150], 0
mov eax, dword [0x1023fc80]
cmp byte [eax + 0x3570], 0
je case.0x100ad14d.0
mov ecx, dword [eax + 0x3574]
add eax, 0x3574
cmp ecx, 3
ja case.0x100ad14d.0
jmp dword [ecx*4 + 0x100ad540]
mov ecx, eax
call fcn.100c92e0
mov edx, dword [0x10241574]
jmp 0x100ad166
mov al, byte [eax + 0x20]
test al, al
je case.0x100ad14d.0
mov eax, dword [0x1023fc7c]
mov dword [0x1024b170], 0
mov dword [0x1024b148], 0
mov dword [0x1024b15c], 0
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax]
mov al, 1
movss dword [0x1024b140], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101b526a
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 [0x10240d9c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10533240]
cmp eax, dword [esi + 4]
jle 0x100ad3af
push 0x10533240
call fcn.101b57fd
add esp, 4
cmp dword [0x10533240], 0xffffffff
jne 0x100ad3af
mov eax, dword [0x1023fc88]
xor ebx, ebx
cmp dword [0x10240d90], 2
movups xmm0, xmmword [str.EAgT_CINL__214___N]
mov edi, dword [eax + 8]
mov al, byte [0x1020544c]
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x38], al
movq xmm0, qword [0x10205444]
movq qword [esp + 0x30], xmm0
jl 0x100ad362
movaps xmm0, xmmword [0x10214b10]
lea edx, [esp + 0x24]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214e10]
movaps xmm5, xmmword [0x10214a40]
movaps xmmword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
nop dword [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 [0x10214ac0]
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 [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x18
jl 0x100ad260
cmp ebx, 0x19
jge 0x100ad38f
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, 0x36
xor byte [esp + ebx + 0x20], al
inc ebx
cmp ebx, 0x19
jl 0x100ad362
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x10533240
mov dword [0x10533244], eax
call fcn.101b57ac
add esp, 4
mov ecx, dword [0x10533244]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov eax, dword [0x1053324c]
cmp eax, dword [esi + 4]
jle 0x100ad3ec
push 0x1053324c
call fcn.101b57fd
add esp, 4
cmp dword [0x1053324c], 0xffffffff
jne 0x100ad3ec
push 0x1053324c
call fcn.101b57ac
add esp, 4
mov eax, dword [0x104682c4]
cmp eax, dword [esi + 4]
jle 0x100ad437
push 0x104682c4
call fcn.101b57fd
add esp, 4
cmp dword [0x104682c4], 0xffffffff
jne 0x100ad437
mov edx, 0xc60bf9f2
mov ecx, 0x10205415
call fcn.1007d240
mov ecx, eax
call fcn.100cef40
push 0x104682c4
mov dword [0x104682c0], eax
call fcn.101b57ac
add esp, 4
mov eax, dword [0x1024b154]
cmp eax, dword [0x1024b168]
jl 0x100ad45b
call fcn.101a9830
sub eax, dword [0x1024b168]
cmp dword [0x1024b164], eax
jle 0x100ad52a
mov eax, dword [0x1023fc7c]
mov eax, dword [eax + 0xc]
movss xmm1, dword [eax]
movaps xmm0, xmm1
subss xmm0, dword [0x1024b140]
comiss xmm0, dword [0x102143a8]
jbe 0x100ad52a
subss xmm1, dword [0x1024b108]
comiss xmm1, dword [0x1021445c]
ja 0x100ad49d
cmp byte [0x1024b160], 0
jne 0x100ad52a
call fcn.101a9830
mov ecx, dword [0x1024b154]
lea edx, [ecx + 1]
mov dword [0x1024b154], edx
cmp ecx, eax
jl 0x100ad4bc
call fcn.101a9830
mov edx, eax
mov eax, dword [0x1024b164]
mov dword [0x1024b154], edx
test eax, eax
jle 0x100ad4eb
inc dword [0x1024b150]
dec eax
mov dword [0x1024b164], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret
inc dword [0x1024b150]
xor eax, eax
mov dword [0x1024b164], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret
mov dword [0x1024b164], 0
mov dword [0x1024b150], 0
mov dword [0x1024b154], 0
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret