Function at 0x100dc754
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [0x101c0bb0]
cmp dword [edi + 0x1c40], 0xffffffff
jne 0x100dc6dd
mov esi, dword [edi + 0x1bc4]
test esi, esi
je 0x100dc6dd
test dword [esi + 8], 0x40000
jne 0x100dc6dd
cmp dword [edi + 0x1ccc], 0
jne 0x100dc6dd
cmp dword [edi + 0x1c0c], 0
jne 0x100dc6dd
mov eax, dword [edi + 0x48]
mov dword [ebp - 8], eax
test eax, eax
js 0x100dc5e7
mov al, byte [edi + eax + 0x100]
test al, al
je 0x100dc5e7
mov ecx, 5
call fcn.1001d220
mov byte [ebp - 3], 1
test al, al
je 0x100dc5eb
mov byte [ebp - 3], 0
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0xc], eax
test eax, eax
js 0x100dc612
mov al, byte [edi + eax + 0x100]
test al, al
je 0x100dc612
mov ecx, 6
call fcn.1001d220
mov byte [ebp - 4], 1
test al, al
je 0x100dc616
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0x50]
call fcn.100e8a40
test al, al
je 0x100dc634
mov ecx, 7
call fcn.1001d220
mov byte [ebp - 1], 1
test al, al
je 0x100dc638
mov byte [ebp - 1], 0
mov ecx, dword [edi + 0x54]
call fcn.100e8a40
test al, al
je 0x100dc656
mov ecx, 8
call fcn.1001d220
test al, al
jne 0x100dc656
mov al, 1
jmp 0x100dc658
xor al, al
mov cl, byte [ebp - 3]
mov byte [ebp - 2], al
cmp cl, byte [ebp - 4]
jne 0x100dc668
cmp byte [ebp - 1], al
je 0x100dc6dd
cmp dword [esi + 0x140], 0
jne 0x100dc703
cmp byte [esi + 0x14d], 0
je 0x100dc703
mov ecx, dword [ebp - 8]
call fcn.100e8a40
test al, al
je 0x100dc6a9
movss xmm1, dword [esi + 0x1fc]
subss xmm1, dword [esi + 0x1f4]
movss xmm0, dword [esi + 0x54]
subss xmm0, xmm1
jmp 0x100dc6ca
mov ecx, dword [ebp - 0xc]
call fcn.100e8a40
test al, al
je 0x100dc6e6
movss xmm0, dword [esi + 0x1fc]
subss xmm0, dword [esi + 0x1f4]
addss xmm0, dword [esi + 0x54]
movss dword [esi + 0x64], xmm0
mov dword [esi + 0x74], 0
mov dword [esi + 0x6c], 0
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
je 0x100dc6f5
mov dword [esi + 0x64], 0
jmp 0x100dc6cf
cmp byte [ebp - 2], 0
je 0x100dc6dd
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x64], eax
jmp 0x100dc6cf
movss xmm2, dword [esi + 0x1fc]
mov ecx, esi
subss xmm2, dword [esi + 0x1f4]
call fcn.1001cf40
mov ecx, dword [edi + 0x48]
subss xmm2, xmm0
movss xmm0, dword [esi + 0x33c]
xorps xmm6, xmm6
subss xmm0, dword [esi + 0x334]
xorps xmm5, xmm5
addss xmm2, xmm0
maxss xmm6, xmm2
call fcn.100e8a40
test al, al
je 0x100dc779
movaps xmm5, xmm6
mov dword [edi + 0x1c40], 3
xorps xmm5, xmmword [0x101b1470]
mov dword [edi + 0x1c48], 2
movaps xmm0, xmm5
mov dword [edi + 0x1c34], 0x30
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x4c]
call fcn.100e8a40
test al, al
je 0x100dc7af
mov dword [edi + 0x1c48], 3
movaps xmm5, xmm6
mov dword [edi + 0x1c34], 0x30
movaps xmm0, xmm5
mov dword [edi + 0x1c40], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
je 0x100dc818
movss xmm1, dword [esi + 0x54]
xorps xmm1, xmmword [0x101b1470]
movss xmm0, dword [esi + 0x330]
comiss xmm0, dword [esi + 0x338]
movss dword [esi + 0x33c], xmm1
movss dword [esi + 0x334], xmm1
ja 0x100dc7e7
comiss xmm1, xmm1
jbe 0x100dc7fb
mov dword [esi + 0x338], 0
mov dword [esi + 0x330], 0
mov dword [edi + 0x1c40], 3
movaps xmm0, xmm5
mov dword [edi + 0x1c34], 0x50
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 2], 0
je 0x100dc87b
movss xmm1, dword [esi + 0x5c]
addss xmm1, dword [esi + 0x20]
movss xmm0, dword [esi + 0x330]
comiss xmm0, dword [esi + 0x338]
subss xmm1, dword [esi + 0x54]
movss dword [esi + 0x33c], xmm1
movss dword [esi + 0x334], xmm1
ja 0x100dc853
comiss xmm1, xmm1
jbe 0x100dc867
mov dword [esi + 0x338], 0
mov dword [esi + 0x330], 0
mov dword [edi + 0x1c34], 0x50
mov dword [edi + 0x1c40], 2
pop edi
movaps xmm0, xmm5
pop esi
mov esp, ebp
pop ebp
ret