Function at 0x101c4840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x4c]
push edi
mov ecx, dword [eax]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
cmp esi, 1
jne 0x101c487b
push dword [esp + 0x64]
push edi
push dword [esp + 0x50]
push eax
call fcn.101c4780
add esp, 0x10
pop edi
pop esi
add esp, 0x38
ret
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x5c]
push 1
push dword [esp + 0x68]
push ecx
push ecx
lea ecx, [esp + 0x68]
push ecx
push esi
push edi
push dword [esp + 0x68]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.101c2030
movd xmm1, dword [esp + 0x38]
add esp, 0x2c
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x101f765c]
movss dword [esp + 0x34], xmm1
movd xmm1, dword [esp + 0x10]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x101f765c]
movss dword [esp + 0x30], xmm1
cmp esi, 2
jne 0x101c4a7b
mov eax, dword [esp + 0x18]
xor edx, edx
xor ecx, ecx
test eax, eax
je 0x101c48fd
cmp eax, 0x4000
mov esi, 8
cmovne ecx, esi
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
sub dword [esi + 0x20], eax
mov esi, edi
cmp dword [esp + 0x18], 0x2000
mov eax, dword [esp + 0x48]
cmovg esi, dword [esp + 0x48]
cmovg eax, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x101c4984
push 1
cmp dword [esp + 0x30], edx
je 0x101c4976
movss xmm0, dword [eax + 4]
movss xmm1, dword [esi + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [esi]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
push eax
push dword [esp + 0x44]
mov dword [esp + 0x38], eax
call fcn.101cb570
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x101c4984
push dword [esp + 0x40]
call fcn.101b45c0
add esp, 8
mov edx, eax
push dword [esp + 0x28]
lea eax, [edx + edx]
mov esi, 1
push dword [esp + 0x6c]
sub esi, eax
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x40]
push 2
push dword [esp + 0x5c]
push dword [esp + 0x6c]
call fcn.101c4230
mov ecx, esi
movss xmm3, dword [esp + 0x60]
neg ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
add esp, 0x2c
movd xmm0, ecx
mov ecx, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, esi
mov esi, dword [esp + 0x50]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [esp + 0x44]
movss dword [ecx + 4], xmm0
cmp dword [eax + 4], 0
mov ecx, dword [esp + 0x48]
je 0x101c4ce2
movaps xmm0, xmm3
mulss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [esp + 0x30]
movaps xmm2, xmm0
mulss xmm0, dword [edi + 4]
mulss xmm2, dword [edi]
movss dword [edi + 4], xmm0
movss dword [edi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
addss xmm1, dword [edi]
movss dword [edi], xmm1
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [edi + 4]
movss dword [ecx + 4], xmm0
addss xmm1, dword [edi + 4]
movss dword [edi + 4], xmm1
jmp 0x101c4be4
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jns 0x101c4a9b
xor eax, eax
jmp 0x101c4aa0
cmp edx, eax
cmovl eax, edx
sub edx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x44]
mov ecx, dword [edx + 0x20]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x20], ecx
cmp eax, dword [esp + 0x50]
jl 0x101c4b4c
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push eax
push esi
push dword [esp + 0x6c]
push edx
call fcn.101c4230
mov dword [esp + 0x68], eax
add esp, 0x2c
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x20]
sub edx, dword [esp + 0x2c]
add edx, dword [esp + 0x38]
cmp edx, 0x18
jle 0x101c4b21
cmp dword [esp + 0x18], 0
je 0x101c4b21
mov ecx, dword [esp + 0x50]
add ecx, 0xffffffe8
add ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
movss xmm0, dword [esp + 0x30]
sar edx, cl
push edx
mov edx, dword [esp + 0x64]
push 0
push ecx
movss dword [esp], xmm0
push 0
push edx
push 0
push ecx
push dword [esp + 0x6c]
push esi
push edi
jmp 0x101c4bc9
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x6c]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [esp + 0x70]
push 0
push ecx
push dword [esp + 0x6c]
push esi
push edi
push edx
call fcn.101c4230
mov ecx, dword [esp + 0x64]
add esp, 0x2c
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x20]
sub edx, dword [esp + 0x2c]
add edx, dword [esp + 0x50]
cmp edx, 0x18
jle 0x101c4ba2
cmp dword [esp + 0x18], 0x4000
je 0x101c4ba2
add ecx, 0xffffffe8
add ecx, edx
push dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
push dword [esp + 0x6c]
push ecx
mov dword [esp], 0x3f800000
push dword [esp + 0x70]
push edx
push dword [esp + 0x70]
push dword [esp + 0x70]
push ecx
push esi
push dword [esp + 0x6c]
push eax
call fcn.101c4230
mov ecx, dword [esp + 0x74]
add esp, 0x2c
or dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
movss xmm3, dword [esp + 0x34]
cmp dword [eax + 4], 0
je 0x101c4ce2
cmp esi, 2
je 0x101c4c07
push dword [eax + 0x2c]
push esi
push ecx
movss dword [esp], xmm3
push edi
push ecx
call fcn.101c5600
add esp, 0x14
cmp dword [esp + 8], 0
je 0x101c4ce2
xor ecx, ecx
test esi, esi
jle 0x101c4ce2
movaps xmm2, xmmword [0x101f36d0]
cmp esi, 2
jb 0x101c4c98
cmp esi, 0x10
jb 0x101c4c73
mov edx, esi
lea eax, [edi + 0x20]
and edx, 0xfffffff0
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x10
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x101c4c35
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x101c4c94
mov eax, esi
and eax, 0xfffffffe
nop dword [eax + eax]
movsd xmm0, qword [edi + ecx*4]
xorps xmm0, xmm2
movsd qword [edi + ecx*4], xmm0
add ecx, 2
cmp ecx, eax
jl 0x101c4c80
cmp ecx, esi
jge 0x101c4ce2
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x101c4cd0
mov edx, esi
lea eax, [edi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm2
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x101c4cb5
cmp ecx, esi
jge 0x101c4ce2
nop dword [eax]
movss xmm0, dword [edi + ecx*4]
xorps xmm0, xmm2
movss dword [edi + ecx*4], xmm0
inc ecx
cmp ecx, esi
jl 0x101c4cd0
mov eax, dword [esp + 0x3c]
pop edi
pop esi
add esp, 0x38
ret