Function at 0x44f700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
cmp dword [0x599d6c], 0
je 0x44f722
push esi
call fcn.00406910
add esp, 0x20
jmp 0x44fbc1
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xc4]
lea edx, [ecx - 0x106]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
nop word [eax + eax]
add ecx, dword [ebp - 0x28]
mov edx, dword [esi + 0x8c]
sub edx, eax
mov eax, dword [esi + 0xbc]
sub edx, eax
cmp eax, ecx
jb 0x44f9af
mov eax, dword [esi + 0x88]
mov edi, dword [ebp - 0x20]
lea ecx, [eax + edi]
mov ebx, edx
mov edx, edi
mov dword [ebp - 0x10], ebx
sub edx, ebx
push edx
push ecx
push eax
call fcn.005162a0
add esp, 0xc
sub dword [esi + 0xc0], edi
sub dword [esi + 0xbc], edi
sub dword [esi + 0xac], edi
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x9c]
lea ebx, [edx + edx]
add ebx, dword [esi + 0x94]
movd xmm0, eax
cmp edx, 8
jae 0x44f7c0
mov ecx, ebx
xor esi, esi
pxor xmm6, xmm6
movdqa xmm7, xmmword [0x53f470]
jmp 0x44f88a
mov dword [ebp - 0x14], eax
mov ecx, edx
and ecx, 0xfffffff8
mov eax, edx
and eax, 7
mov dword [ebp - 0x18], eax
mov edi, ecx
neg edi
mov dword [ebp - 0x24], ecx
add ecx, ecx
mov eax, ebx
sub eax, ecx
mov ecx, eax
mov eax, edi
pshufd xmm1, xmm0, 0
add ebx, 0xfffffff0
xor edi, edi
pxor xmm6, xmm6
movdqa xmm7, xmmword [0x53f470]
nop word [eax + eax]
movdqu xmm2, xmmword [ebx + edi*2]
pshufd xmm3, xmm2, 0x4e
pshufhw xmm2, xmm3, 0x1b
pshuflw xmm3, xmm3, 0x1b
punpcklwd xmm3, xmm6
punpckhwd xmm2, xmm6
movdqa xmm4, xmm1
pxor xmm4, xmm7
movdqa xmm5, xmm2
por xmm5, xmm7
pcmpgtd xmm5, xmm4
psubd xmm2, xmm1
pand xmm2, xmm5
movdqa xmm5, xmm3
por xmm5, xmm7
pcmpgtd xmm5, xmm4
psubd xmm3, xmm1
pand xmm3, xmm5
pslld xmm3, 0x10
psrad xmm3, 0x10
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm3
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
movdqu xmmword [ebx + edi*2], xmm2
add edi, 0xfffffff8
cmp eax, edi
jne 0x44f800
cmp edx, dword [ebp - 0x24]
mov esi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
je 0x44f8a6
neg edx
xor edi, edi
nop
movzx ebx, word [ecx + edi*2 - 2]
sub ebx, eax
cmovb ebx, esi
mov word [ecx + edi*2 - 2], bx
add edi, 0xffffffff
cmp edx, edi
jne 0x44f890
lea ebx, [eax + eax]
mov ecx, dword [ebp - 0x1c]
add ebx, dword [ecx + 0x90]
cmp eax, 8
jae 0x44f8d0
mov edx, eax
mov ecx, ebx
xor esi, esi
jmp 0x44f987
mov edi, eax
and edi, 0xfffffff8
mov ecx, eax
and ecx, 7
mov dword [ebp - 0x14], ecx
mov edx, edi
neg edx
mov dword [ebp - 0x18], edi
add edi, edi
mov ecx, ebx
sub ecx, edi
pshufd xmm0, xmm0, 0
add ebx, 0xfffffff0
xor edi, edi
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [ebx + edi*2]
pshufd xmm2, xmm1, 0x4e
pshufhw xmm1, xmm2, 0x1b
pshuflw xmm2, xmm2, 0x1b
punpcklwd xmm2, xmm6
punpckhwd xmm1, xmm6
movdqa xmm3, xmm0
pxor xmm3, xmm7
movdqa xmm4, xmm1
por xmm4, xmm7
pcmpgtd xmm4, xmm3
psubd xmm1, xmm0
pand xmm1, xmm4
movdqa xmm4, xmm2
por xmm4, xmm7
pcmpgtd xmm4, xmm3
psubd xmm2, xmm0
pand xmm2, xmm4
pslld xmm2, 0x10
psrad xmm2, 0x10
pslld xmm1, 0x10
psrad xmm1, 0x10
packssdw xmm1, xmm2
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
movdqu xmmword [ebx + edi*2], xmm1
add edi, 0xfffffff8
cmp edx, edi
jne 0x44f900
cmp eax, dword [ebp - 0x18]
mov esi, 0
mov edx, dword [ebp - 0x14]
je 0x44f9a6
neg edx
xor edi, edi
nop dword [eax + eax]
movzx ebx, word [ecx + edi*2 - 2]
sub ebx, eax
cmovb ebx, esi
mov word [ecx + edi*2 - 2], bx
add edi, 0xffffffff
cmp edx, edi
jne 0x44f990
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44fb47
mov eax, dword [esi + 0xc4]
cmp ecx, edx
cmovbe edx, ecx
test edx, edx
je 0x44fa35
mov ebx, dword [esi + 0x88]
add ebx, dword [esi + 0xbc]
add ebx, eax
sub ecx, edx
mov dword [edi + 4], ecx
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 2
mov dword [ebp - 0x10], edx
jne 0x44fa00
push edx
push ebx
push edi
call fcn.0044f200
add esp, 0xc
jmp 0x44fa27
push edx
push dword [edi]
push ebx
call fcn.005162a0
add esp, 0xc
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 1
jne 0x44fa27
push dword [ebp - 0x10]
push ebx
push dword [edi + 0x30]
call fcn.0044edf0
add esp, 0xc
mov dword [edi + 0x30], eax
mov edx, dword [ebp - 0x10]
add dword [edi], edx
add dword [edi + 8], edx
mov eax, dword [esi + 0xc4]
add eax, edx
mov dword [esi + 0xc4], eax
mov edi, dword [esi + 0x1704]
lea ecx, [edi + eax]
cmp ecx, 3
jb 0x44fb30
mov edx, dword [esi + 0xbc]
sub edx, edi
mov dword [ebp - 0x18], edi
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0xa4]
mov dword [ebp - 0x14], ecx
movzx ebx, byte [edi + edx]
mov dword [esi + 0x98], ebx
mov ecx, dword [esi + 0xa8]
shl ebx, cl
mov dword [ebp - 0x10], edi
movzx edi, byte [edi + edx + 1]
xor edi, ebx
mov ebx, dword [ebp - 0x14]
and edi, dword [ebp - 0x14]
mov dword [esi + 0x98], edi
cmp dword [ebp - 0x18], 0
je 0x44fb30
nop dword [eax + eax]
shl edi, cl
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edx + 2]
xor eax, edi
and eax, ebx
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
movzx eax, word [edi + eax*2]
mov edi, dword [esi + 0x84]
and edi, edx
mov word [ecx + edi*2], ax
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov word [eax + ecx*2], dx
mov edi, dword [esi + 0x1704]
lea ecx, [edi - 1]
mov dword [esi + 0x1704], ecx
mov eax, dword [esi + 0xc4]
add edi, eax
add edi, 0xffffffff
cmp edi, 3
jb 0x44fb30
test ecx, ecx
je 0x44fb30
add edx, 1
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
jmp 0x44faa0
cmp eax, 0x105
ja 0x44fb47
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x44fb47
mov ecx, dword [esi + 0x7c]
jmp 0x44f740
mov eax, dword [esi + 0x1710]
mov edx, dword [esi + 0x8c]
mov ecx, edx
sub ecx, eax
jbe 0x44fbbe
mov edi, dword [esi + 0xc4]
add edi, dword [esi + 0xbc]
cmp eax, edi
jae 0x44fb97
sub edx, edi
cmp edx, 0x102
mov ebx, 0x102
cmovb ebx, edx
mov eax, dword [esi + 0x88]
add eax, edi
push ebx
push 0
push eax
call fcn.00516da0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1710], ebx
jmp 0x44fbbe
add edi, 0x102
sub edi, eax
jbe 0x44fbbe
cmp edi, ecx
cmova edi, ecx
add eax, dword [esi + 0x88]
push edi
push 0
push eax
call fcn.00516da0
add esp, 0xc
add dword [esi + 0x1710], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret