Function at 0x4460c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x40]
movzx edx, word [ecx + 0x44]
shl eax, 4
add eax, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x10], edx
mov ebx, eax
cmp dword [esi + 0x28], ebp
jne 0x446135
mov ecx, 0xb
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], ebp
jne 0x44611a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
sub dword [esp + 0x28], eax
add dword [esp + 0x1c], eax
sub ecx, eax
mov eax, dword [esp + 0x1c]
dec edx
and ecx, edx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], ecx
jmp 0x44616c
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x24]
call fcn.00444700
mov eax, dword [esp + 0x24]
add esp, 8
sub eax, dword [ebx + 0xc]
jmp 0x44616c
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x1c], edx
lea edx, [eax*8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.00445dc0
mov eax, dword [ebx + 4]
cmp eax, ebp
mov edi, eax
jge 0x44618a
neg edi
cmp eax, ebp
jle 0x446198
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0xfffffff8
cmp ecx, edi
jl 0x44619a
mov eax, edi
mov esi, dword [esp + 0x44]
mov ebx, dword [esi + 0x30]
mov ecx, eax
and eax, 7
sar ecx, 3
mov ebp, eax
test ebx, ebx
je 0x4461ca
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
call fcn.00446010
add eax, eax
add eax, eax
add esp, 0xc
add eax, eax
jmp 0x4461f1
movzx edx, word [esi + 0x36]
lea eax, [ecx*8]
movzx ecx, word [esi + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x24]
call fcn.00445f40
mov esi, dword [esp + 0x54]
add esp, 0x10
sub edi, eax
test ebp, ebp
je 0x446219
movzx ecx, word [esi + 0x34]
movzx edx, word [esi + 0x36]
push ebp
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x24]
call fcn.00445f40
mov esi, dword [esp + 0x54]
add esp, 0x10
sub edi, eax
test edi, edi
je 0x4462a8
test ebx, ebx
je 0x446264
cmp edi, 8
jle 0x446264
movzx eax, word [esp + 0x10]
mov ecx, edi
sar ecx, 3
xor edx, edx
test ecx, ecx
jle 0x446255
mov edx, ecx
lea esp, [esp]
movzx ebp, ax
shl eax, 8
shr ebp, 8
xor ax, word [ebx + ebp*2]
sub ecx, 1
movzx eax, ax
jne 0x446240
add edx, edx
add edx, edx
movzx ecx, ax
add edx, edx
mov dword [esp + 0x10], ecx
sub edi, edx
test edi, edi
je 0x446297
movzx eax, word [esi + 0x34]
movzx ecx, word [esi + 0x36]
push edi
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
xor esi, esi
call fcn.00445f40
mov ax, word [esp + 0x20]
mov ecx, dword [esp + 0x54]
add esp, 0x10
pop edi
pop esi
pop ebp
mov word [ecx + 0x44], ax
pop ebx
add esp, 0x30
ret
mov dx, word [esp + 0x10]
pop edi
mov word [esi + 0x44], dx
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ax, word [esp + 0x10]
pop edi
mov word [esi + 0x44], ax
pop esi
pop ebp
pop ebx
add esp, 0x30
ret