Function at 0x101d07c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x102e5cc0]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
xor edx, edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
push esi
mov eax, dword [ecx + 8]
test eax, eax
push edi
cmovle eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
lea edi, [ecx + 0xc]
mov dword [esp + 0x18], 1
nop dword [eax]
movsx eax, word [edi]
mov ecx, edi
imul eax, dword [esp + edx*4 + 0x18]
mov esi, edx
add edi, 4
mov dword [esp + edx*4 + 0x1c], eax
inc edx
cmp word [ecx + 2], 1
jne 0x101d0800
mov eax, dword [esp + 0x14]
movsx edx, word [eax + edx*4 + 0xa]
test esi, esi
js 0x101d0a4c
movss xmm6, dword [0x101f36d0]
movss xmm5, dword [0x10205cec]
nop dword [eax]
lea ecx, [esi*4]
test esi, esi
je 0x101d0852
movsx edi, word [ecx + eax + 0xa]
jmp 0x101d0857
mov edi, 1
movsx eax, word [eax + esi*4 + 0xc]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x101d0868
jmp dword [eax*4 + 0x101d0a60]
mov ecx, dword [esp + ecx + 0x18]
mov dword [esp + 8], ecx
cmp edx, 4
je 0x101d08a4
push 0x4c
push 0x102ca550
push str.assertion_failed:_m4
call fcn.101ace10
movss xmm5, dword [0x10205cec]
add esp, 0xc
movss xmm6, dword [0x101f36d0]
mov ecx, dword [esp + 8]
test ecx, ecx
jle case.default.0x101d0868
mov eax, dword [esp + 0x10]
add eax, 0x28
movss xmm2, dword [eax - 0x28]
movss xmm3, dword [eax - 8]
movaps xmm0, xmm2
movss xmm4, dword [eax - 4]
subss xmm0, xmm3
addss xmm2, xmm3
movss dword [eax - 8], xmm0
movss xmm1, dword [eax - 0x24]
movaps xmm0, xmm1
addss xmm1, xmm4
subss xmm0, xmm4
movss dword [eax - 4], xmm0
movss xmm0, dword [eax - 0x20]
movss dword [eax - 0x28], xmm2
movss dword [eax - 0x24], xmm1
movss xmm4, dword [eax + 4]
movaps xmm3, xmm4
addss xmm3, dword [eax]
subss xmm4, dword [eax]
mulss xmm3, xmm5
mulss xmm4, xmm5
subss xmm0, xmm3
movss dword [eax], xmm0
movss xmm0, dword [eax - 0x1c]
subss xmm0, xmm4
movss dword [eax + 4], xmm0
addss xmm4, dword [eax - 0x1c]
addss xmm3, dword [eax - 0x20]
movss xmm2, dword [eax - 0x18]
movaps xmm0, xmm2
movss dword [eax - 0x1c], xmm4
movss dword [eax - 0x20], xmm3
movss xmm3, dword [eax + 0xc]
movss xmm4, dword [eax + 8]
subss xmm0, xmm3
xorps xmm4, xmm6
addss xmm2, xmm3
movss dword [eax + 8], xmm0
movss xmm0, dword [eax - 0x14]
subss xmm0, xmm4
movss dword [eax + 0xc], xmm0
addss xmm4, dword [eax - 0x14]
movss xmm0, dword [eax - 0x10]
movss dword [eax - 0x18], xmm2
movss dword [eax - 0x14], xmm4
movss xmm4, dword [eax + 0x14]
movaps xmm3, xmm4
subss xmm3, dword [eax + 0x10]
addss xmm4, dword [eax + 0x10]
mulss xmm3, xmm5
xorps xmm4, xmm6
mulss xmm4, xmm5
subss xmm0, xmm3
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax - 0xc]
subss xmm0, xmm4
movss dword [eax + 0x14], xmm0
addss xmm3, dword [eax - 0x10]
addss xmm4, dword [eax - 0xc]
movss dword [eax - 0x10], xmm3
movss dword [eax - 0xc], xmm4
add eax, 0x40
sub ecx, 1
jne 0x101d08b3
jmp case.default.0x101d0868
mov eax, dword [esp + ecx + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x1c]
shl eax, cl
push eax
push dword [esp + 0x24]
call fcn.101cfd00
jmp 0x101d0a2a
mov eax, dword [esp + ecx + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x1c]
shl eax, cl
push eax
push dword [esp + 0x24]
call fcn.101cfb70
jmp 0x101d0a2a
mov eax, dword [esp + ecx + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x1c]
shl eax, cl
push eax
push dword [esp + 0x24]
call fcn.101cfff0
add esp, 0x18
sub esi, 1
movss xmm5, dword [0x10205cec]
movss xmm6, dword [0x101f36d0]
mov edx, edi
mov eax, dword [esp + 0x14]
jns 0x101d0840
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor ecx, esp
call fcn.1010d06f
add esp, 0x34
ret