Function at 0x10029e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101053c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10106588]
push ebx
push esi
push edi
mov al, byte [ecx + 0x30]
and al, 1
cmp dword [0x10106534], 0x40
jne 0x10029e44
test dword [ecx + 0x30], 0x800
je 0x10029e44
mov cl, 1
jmp 0x10029e46
xor cl, cl
test al, al
jne 0x10029e52
test cl, cl
je 0x1002a179
mov eax, dword [0x10106560]
mov byte [eax], 0
cmp dword [0x1012ea00], 0
je 0x10029f05
mov eax, dword [0x1012ea24]
test eax, eax
je 0x10029ea4
cmp byte [eax + 0x3c8], 0
jne 0x10029ea4
vmovss xmm0, dword [eax + 0x14]
mov eax, dword [0x101304dc]
vaddss xmm0, xmm0, dword [0x1010656c]
vdivss xmm0, xmm0, dword [eax + 0x20]
mov eax, dword [0x10106588]
vaddss xmm0, xmm0, dword [0x100f4190]
vcvttss2si ecx, xmm0
mov dword [eax + 8], ecx
mov eax, dword [0x10106588]
vmovss xmm0, dword [0x1012ea04]
vmovss dword [eax + 0xc], xmm0
vmovss xmm0, dword [0x1012ea08]
vmovss dword [eax + 0x10], xmm0
vmovss xmm0, dword [0x1012ea0c]
vmovss dword [eax + 0x14], xmm0
cmp byte [0x1010864c], 0
jne 0x10029eeb
mov ecx, dword [0x1013047c]
push 0x1012ea04
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
cmp byte [0x10109048], 0
je 0x10029f05
push dword [0x100ecc70]
push dword [0x1012ea24]
call fcn.100a9160
cmp byte [0x10109170], 0
je 0x10029f1c
cmp dword [0x10118528], 1
jne 0x10029f1c
call fcn.1002a190
cmp byte [0x101091f8], 0
je 0x10029f8f
mov ecx, dword [0x101305ac]
mov esi, dword [0x1013074c]
add esi, 0xffffffae
xor esi, 0xf0b73a6f
mov eax, dword [ecx]
add esi, dword [0x10105e5c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], eax
call dword [ebp - 0x30]
mov eax, dword [0x10106588]
vmovss xmm0, dword [esi]
vmovss xmm2, dword [esi + 4]
vmovss xmm3, dword [esi + 8]
fstp dword [ebp - 0x30]
vmovss xmm4, dword [ebp - 0x30]
vmovaps xmm1, xmm4
vfnmadd213ss xmm1, xmm0, dword [eax + 0xc]
vmovaps xmm0, xmm4
vfnmadd213ss xmm0, xmm2, dword [eax + 0x10]
vfnmadd213ss xmm4, xmm3, dword [eax + 0x14]
vmovss dword [eax + 0xc], xmm1
vmovss dword [eax + 0x10], xmm0
vmovss dword [eax + 0x14], xmm4
mov eax, dword [0x10106538]
mov edx, dword [0x1012ea00]
mov dword [ebp - 0x3c], edx
vcvttss2si ebx, dword [0x1012ea20]
mov eax, dword [eax + 0xf4]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], eax
test edx, edx
je 0x10029fc5
mov ecx, dword [0x1012ea24]
vmovss xmm1, dword [0x1012ea1c]
jmp 0x10029fd4
vmovss xmm1, dword [0x100f4408]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x3c], edx
xor esi, esi
mov dword [ebp - 0x30], ecx
vmovss dword [ebp - 0x38], xmm1
test eax, eax
jle 0x1002a13e
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x10130700]
add ecx, 0xffffffc1
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
xor ecx, 0xf0b73a5c
mov byte [ebp - 0xc], al
mov eax, dword [0x10105e5c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], ebx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [ecx + eax]
mov eax, dword [0x101304dc]
vmovss dword [ebp - 0x1c], xmm1
vmulss xmm0, xmm0, dword [eax + 0x20]
vmovss dword [ebp - 0x24], xmm0
vmovss xmm0, dword [0x10106570]
vmovss dword [ebp - 0x20], xmm0
vmovss xmm0, dword [0x10105e68]
vmovss dword [ebp - 0x18], xmm0
vmovss xmm0, dword [0x10105e6c]
vmovss dword [ebp - 0x14], xmm0
vmovss xmm0, dword [0x10105e70]
vmovss dword [ebp - 0x10], xmm0
test edx, edx
je 0x1002a093
test esi, esi
jne 0x1002a093
mov eax, dword [edx + 8]
lea ecx, [edx + 8]
mov eax, dword [eax + 0x28]
vzeroupper
call eax
imul eax, eax, 0x484
lea eax, [eax + 0x1011b358]
test eax, eax
je 0x1002a093
inc dword [eax + 0x28]
mov eax, dword [0x101311a0]
mov edx, dword [0x10131198]
inc eax
cmp edx, eax
ja 0x1002a0b7
push ecx
mov ecx, 0x10131190
vzeroupper
call fcn.1008fd30
mov edx, dword [0x10131198]
lea ecx, [edx - 1]
mov ebx, edx
and ecx, dword [0x1013119c]
lea edi, [edx - 1]
mov dword [0x1013119c], ecx
cmovne ebx, ecx
mov ecx, dword [0x10131194]
dec ebx
and edi, ebx
cmp dword [ecx + edi*4], 0
jne 0x1002a0ff
push 0x28
vzeroupper
call fcn.100aed33
mov ecx, dword [0x10131194]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [0x10131198]
mov ecx, dword [0x10131194]
vmovdqu ymm0, ymmword [ebp - 0x2c]
vmovss xmm1, dword [ebp - 0x38]
lea eax, [edx - 1]
inc esi
mov edx, dword [ebp - 0x3c]
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x30]
vmovdqu ymmword [eax], ymm0
vmovq xmm0, qword [ebp - 0xc]
vmovq qword [eax + 0x20], xmm0
inc dword [0x101311a0]
mov dword [0x1013119c], ebx
mov ebx, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x34]
jl 0x10029ff0
cmp dword [0x101311a0], 0x80
jbe 0x1002a172
nop word [eax + eax]
mov eax, dword [0x101311a0]
add eax, 0xffffffff
mov dword [0x101311a0], eax
je 0x1002a168
cmp eax, 0x80
ja 0x1002a150
jmp 0x1002a172
mov dword [0x1013119c], 0
mov byte [0x10105e75], 1
vzeroupper
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100aed12
mov esp, ebp
pop ebp
ret