Function at 0x449520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
mov eax, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
lea ecx, [edx - 1]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], ecx
sar ecx, 1
mov dword [ebp - 0x18], ecx
cmp esi, ecx
jge 0x449607
nop
lea esi, [eax + eax]
lea ecx, [esi + 2]
lea ecx, [ecx + ecx*8]
shl ecx, 4
add ecx, ebx
lea eax, [ecx - 0x90]
push eax
push ecx
lea ecx, [ebp + 0x10]
call fcn.00446f60
movzx eax, al
xor eax, 1
inc eax
add eax, esi
mov dword [ebp - 0x14], eax
lea edi, [eax + eax*8]
mov eax, dword [ebp - 0xc]
shl edi, 4
add edi, ebx
push edi
lea esi, [eax + eax*8]
shl esi, 4
add esi, ebx
mov ecx, esi
call fcn.0043f6f0
add edi, 0x18
lea ecx, [esi + 0x18]
push edi
call fcn.004494a0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x30]
call fcn.004494a0
movsd xmm0, qword [edi + 0x30]
lea ecx, [esi + 0x74]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [edi + 0x38]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [edi + 0x40]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0x60], xmm0
movsd xmm0, qword [edi + 0x50]
movsd qword [esi + 0x68], xmm0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x5c]
push eax
call fcn.0043f6f0
mov eax, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jl 0x449550
mov edx, dword [ebp + 8]
cmp eax, ecx
jne 0x449695
test dl, 1
jne 0x449695
lea edi, [edx + edx*8]
shl edi, 4
lea esi, [esi + esi*8]
add edi, 0xffffff70
shl esi, 4
add edi, ebx
add esi, ebx
push edi
mov ecx, esi
call fcn.0043f6f0
add edi, 0x18
lea ecx, [esi + 0x18]
push edi
call fcn.004494a0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x30]
call fcn.004494a0
movsd xmm0, qword [edi + 0x30]
lea ecx, [esi + 0x74]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [edi + 0x38]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [edi + 0x40]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0x60], xmm0
movsd xmm0, qword [edi + 0x50]
movsd qword [esi + 0x68], xmm0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x5c]
push eax
call fcn.0043f6f0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x10], esi
jge 0x44973d
push dword [ebp + 0xc]
lea ebx, [esi - 1]
sar ebx, 1
lea ecx, [ebp + 8]
lea edi, [ebx + ebx*8]
shl edi, 4
add edi, dword [ebp - 8]
push edi
call fcn.00446f60
test al, al
je 0x44973a
lea esi, [esi + esi*8]
shl esi, 4
add esi, dword [ebp - 8]
push edi
mov ecx, esi
call fcn.0043f6f0
add edi, 0x18
lea ecx, [esi + 0x18]
push edi
call fcn.004494a0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x30]
call fcn.004494a0
movsd xmm0, qword [edi + 0x30]
lea ecx, [esi + 0x74]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [edi + 0x38]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [edi + 0x40]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0x60], xmm0
movsd xmm0, qword [edi + 0x50]
movsd qword [esi + 0x68], xmm0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x5c]
push eax
call fcn.0043f6f0
mov esi, ebx
cmp dword [ebp - 0x10], ebx
jl 0x4496a4
mov ebx, dword [ebp - 8]
lea esi, [esi + esi*8]
shl esi, 4
add esi, ebx
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, esi
call fcn.0043f6f0
lea edi, [ebx + 0x18]
push edi
lea ecx, [esi + 0x18]
call fcn.004494a0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x30]
call fcn.004494a0
movsd xmm0, qword [edi + 0x30]
lea ecx, [esi + 0x74]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [edi + 0x38]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [edi + 0x40]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0x60], xmm0
movsd xmm0, qword [edi + 0x50]
movsd qword [esi + 0x68], xmm0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x5c]
push eax
call fcn.0043f6f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret