Function at 0x44f230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, dword [esp + 0x20]
mov ebp, 1
mov dword [esp + 0x18], 0
test edi, edi
jne 0x44f253
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
push esi
mov esi, dword [esp + 0x28]
cmp esi, 8
jb 0x44f277
cmp esi, 0x4000
ja 0x44f277
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x44f281
pop esi
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
xor ecx, ecx
cmp eax, 0x80
push ebx
cmove ebp, ecx
lea ebx, [esi + esi*4]
shl ebx, 2
push ebx
mov dword [esp + 0x14], ebp
call dword [0x4ee2e8]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x44f2b9
mov esi, dword [esp + 0x18]
or eax, 0xffffffff
pop ebx
mov dword [edi + 4], esi
pop esi
pop edi
pop ebp
add esp, 0x14
ret
push ebx
push 0
push eax
call fcn.0048cf40
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 8], esi
test ecx, ecx
je 0x44f4b6
mov esi, dword [esp + 0x18]
mov eax, ecx
add esi, 4
mov dword [esp + 0x28], ecx
cmp dword [esi + 8], 0
je 0x44f392
test ebp, ebp
je 0x44f2f4
mov ebx, dword [esi + 0xc]
jmp 0x44f316
cmp dword [edi + 8], 0x80
push dword [edi + 0x18]
push dword [esi + 4]
push dword [esi]
jne 0x44f30c
call fcn.0044eea0
jmp 0x44f311
call fcn.0044edd0
mov ebx, eax
add esp, 0xc
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ebx
div dword [edi + 8]
lea ebp, [edx + edx*4]
cmp dword [ecx + ebp*4 + 0xc], 0
jne 0x44f34c
movups xmm0, xmmword [esi - 4]
movups xmmword [ecx + ebp*4], xmm0
mov eax, dword [esi + 0xc]
mov dword [ecx + ebp*4 + 0x10], eax
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], 0
mov eax, dword [edi + 4]
mov dword [eax + ebp*4 + 0x10], ebx
jmp 0x44f38a
push 0x14
call dword [0x4ee2e8]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x44f382
mov eax, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebp*4]
mov dword [ecx], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], ecx
jmp 0x44f38a
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
add esi, 0x14
sub eax, 1
mov dword [esp + 0x28], eax
jne 0x44f2e1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x44f4b6
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov esi, dword [eax]
test esi, esi
je 0x44f4a2
cmp dword [esp + 0x10], 0
mov ebp, dword [esi]
mov dword [esp + 0x28], ebp
je 0x44f3d2
mov ecx, dword [esi + 0x10]
jmp 0x44f437
cmp dword [edi + 8], 0x80
jne 0x44f3f0
push dword [edi + 0x18]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0044eea0
add esp, 0xc
mov ecx, eax
jmp 0x44f437
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 4]
test ebx, ebx
jle 0x44f431
test ebp, ebp
je 0x44f431
mov eax, dword [edi + 0x18]
xor edx, edx
test ebx, ebx
jle 0x44f41f
movzx ecx, byte [edx + ebp]
inc edx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp edx, ebx
jl 0x44f407
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x44f433
xor ecx, ecx
mov ebp, dword [esp + 0x28]
xor edx, edx
mov ebx, dword [edi + 4]
mov eax, ecx
div dword [edi + 8]
lea edx, [edx + edx*4]
shl edx, 2
add ebx, edx
cmp dword [ebx + 0xc], 0
jne 0x44f483
movups xmm0, xmmword [esi]
push esi
movups xmmword [ebx], xmm0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edx + eax], 0
mov eax, dword [edi + 4]
mov dword [eax + edx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + edx + 0x10], ecx
call dword [0x4ee2f4]
add esp, 4
jmp 0x44f490
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [edx + eax], esi
mov esi, ebp
test ebp, ebp
jne 0x44f3c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, 0x14
sub ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jne 0x44f3b6
push dword [esp + 0x18]
call dword [0x4ee2f4]
mov eax, dword [esp + 0x24]
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x14
ret