Function at 0x4465f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, ebx
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x446894
mov ebp, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x446678
mov ecx, dword [esp + 8]
mov edx, ecx
mov eax, dword [esp]
sub edx, eax
cmp ecx, dword [esp + 0xc]
je 0x4466d6
mov dword [eax + edx], esi
add ecx, 4
mov dword [edi + 4], ecx
add esi, ebx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x446894
mov dword [esp + 8], ecx
test ebp, ebp
je 0x446686
cmp byte [ebp], 0x3f
je 0x446691
movzx ecx, byte [esi]
mov edx, dword [esp + 0x38]
cmp cl, byte [edx]
jne 0x4466d0
cmp ebx, 2
jb 0x446650
mov ecx, 1
jmp 0x4466b6
movzx edx, byte [esi + ecx]
mov eax, dword [esp + 0x38]
cmp dl, byte [eax + ecx]
jne 0x4467ff
inc ecx
cmp ebx, ecx
je 0x446650
test ebp, ebp
je 0x4466a0
cmp byte [ebp + ecx], 0x3f
jne 0x4466a0
jmp 0x4466b1
mov ecx, dword [esp + 8]
jmp 0x44666d
mov dword [esp + 4], edx
sar edx, 2
lea eax, [edx + 1]
mov ecx, edx
shr ecx, 1
add ecx, edx
cmp ecx, eax
ja 0x4466ec
mov ecx, eax
mov eax, ecx
and eax, 0xfffffffb
mov edi, ecx
and edi, 4
mov edx, ecx
mov dword [esp + 0xc], ecx
or edx, 4
imul edx, edi
xor edi, 4
imul edi, eax
add edx, edi
push edx
call fcn.0040d570
add esp, 4
mov ebp, eax
mov eax, dword [esp]
test eax, eax
mov edi, dword [esp + 0x2c]
je 0x446868
cmp ebp, eax
mov ebx, eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 0x10], ebp
jbe 0x446816
cmp eax, ebp
jbe 0x446816
test edx, edx
je 0x446851
mov edx, dword [esp + 4]
lea ecx, [edx + 0x7ae7c735]
mov ebx, dword [esp]
lea eax, [ebx + ecx]
add eax, 0x851838ca
mov edi, dword [esp + 0x10]
add ecx, edi
add ecx, 0x851838ca
mov edi, edx
and edi, 7
je 0x446797
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x446780
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov ebx, dword [esp]
mov edi, ebx
sub edi, dword [esp + 8]
cmp edi, 0xfffffff8
ja 0x446851
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x4467b0
jmp 0x446851
mov edx, ecx
and edx, 0xfffffffe
not ecx
and ecx, 1
sub edx, ecx
add esi, edx
mov ecx, dword [esp + 8]
jmp 0x44666d
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 0xfffffffc
add ebp, edx
add edx, ebx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x446851
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebp + ecx], dl
push dword [esp]
call fcn.0040d580
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x10]
mov dword [edi], ebp
mov eax, dword [esp + 0xc]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
mov edx, dword [esp + 4]
add ecx, edx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, ebp
mov dword [esp], ebp
mov ebp, dword [esp + 0x40]
jmp 0x446661
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret