Function at 0x445050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, dword [esp + 0x3c]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x4452bd
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x4450e0
mov ecx, dword [esp + 4]
mov ebx, ecx
mov edx, dword [esp]
sub ebx, edx
cmp ecx, dword [esp + 0xc]
je 0x445138
mov dword [edx + ebx], esi
add ecx, 4
mov dword [esp + 4], ecx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x3c]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x4452bd
test ebp, ebp
je 0x4450ea
cmp byte [ebp], 0x3f
je 0x4450f5
movzx ecx, byte [esi]
mov edx, dword [esp + 0x38]
cmp cl, byte [edx]
jne 0x4450d5
cmp dword [esp + 0x3c], 2
jb 0x4450b0
mov edx, 1
mov ecx, 2
jmp 0x44512b
movzx ebx, byte [esi + edx]
mov eax, dword [esp + 0x38]
cmp bl, byte [eax + edx]
jne 0x44522f
inc edx
add ecx, 2
cmp dword [esp + 0x3c], edx
je 0x4450b0
test ebp, ebp
je 0x445110
cmp byte [ebp + edx], 0x3f
jne 0x445110
jmp 0x445121
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x44514c
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.0040cbf0
add esp, 4
mov edx, eax
mov eax, dword [esp]
test eax, eax
je 0x44529f
cmp edx, eax
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
jbe 0x44523e
cmp eax, edx
jbe 0x44523e
test ebx, ebx
je 0x445288
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x4451c4
neg edi
xor edx, edx
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4451b0
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x445288
neg edx
xor edi, edi
nop
nop
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 0x4451e0
jmp 0x445288
xor edx, 1
and ecx, 0xfffffffc
sub ecx, edx
add esi, ecx
jmp 0x4450d5
mov ecx, ebx
shr ecx, 2
mov ebx, dword [esp]
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov ecx, dword [esp + 8]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, ebx
mov eax, ecx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 4], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x445288
mov ecx, dword [esp + 8]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 4]
mov byte [eax + ecx], dl
push dword [esp]
call fcn.0040cc00
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [edi], edx
mov eax, dword [esp + 0xc]
lea eax, [edx + eax*4]
mov ecx, edx
add ecx, ebx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, edx
mov dword [esp], edx
jmp 0x4450c1
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret