Function at 0x417eac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, eax
push edi
push ebp
add esp, 0xfffffff0
mov edi, 0x44579c
lea eax, [esi + 0x60b0]
call fcn.0041c338
mov byte [esp], 0
mov edx, dword [esi + 0x990]
mov dword [esp + 4], edx
jmp 0x41818b
mov ecx, dword [esi]
mov eax, dword [esi + 0x149c]
mov bl, byte [ecx + eax]
xor eax, eax
mov dword [esi + 0x54], eax
mov edx, dword [esi + 0x149c]
dec edx
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x417f32
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x149c]
jmp 0x417f14
and edx, dword [esi + 0x24]
mov ecx, dword [esi]
cmp bl, byte [ecx + edx]
jne 0x417f25
inc dword [esi + 0x58]
inc eax
mov edx, eax
cmp edx, dword [esp + 4]
jae 0x417f25
cmp dword [esi + 0x58], 0x101
jl 0x417f06
cmp dword [esi + 0x58], 0xa
jle 0x417f32
mov dword [esi + 0x54], 1
mov eax, dword [esi + 0x149c]
mov edx, dword [esi]
xor ecx, ecx
mov cl, byte [edx + eax + 2]
mov edx, dword [edi + ecx*4]
mov ecx, dword [esi]
shl edx, 0xa
movzx ecx, byte [ecx + eax + 1]
mov ecx, dword [edi + ecx*4]
shl ecx, 4
add edx, ecx
mov ecx, dword [esi]
movzx ecx, byte [ecx + eax]
add edx, ecx
and edx, 0x3ffff
mov dword [esp + 8], edx
mov edx, dword [esi]
movzx edx, byte [edx + eax + 3]
mov ecx, dword [edi + edx*4]
shl ecx, 6
add ecx, dword [esp + 8]
and ecx, 0x3ffff
mov dword [esp + 0xc], ecx
mov edx, dword [esi]
mov ebp, dword [esi + 0x149c]
movzx eax, byte [edx + eax + 4]
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + eax*4]
shl ecx, 8
add ecx, dword [esp + 0xc]
and ecx, dword [esi + 0x1c]
mov eax, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [edx + eax*4]
and edx, dword [esi + 0x24]
mov dword [ecx + eax*4], ebp
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x149c]
mov dword [eax + ecx*4], edx
test byte [esi + 0x149c], 0xf
je 0x417fc8
cmp byte [esp], 0
je 0x417fee
cmp dword [esi + 0x54], 0
jne 0x417fee
mov dword [esi + 0x58], 0x40
mov ecx, edx
mov eax, esi
mov edx, 1
call fcn.00416fc4
cmp dword [esi + 0x58], 0x40
jge 0x417fee
xor eax, eax
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], 0
je 0x418142
mov edx, dword [esp + 4]
sub edx, dword [esi + 0x149c]
and edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x58]
jbe 0x418142
cmp byte [esi + 0x14a1], 0
jne 0x418026
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + 0x149c]
ja 0x418142
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
mov eax, esi
call fcn.00417950
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
xor edx, edx
jmp 0x418130
mov eax, dword [esi + 0x149c]
mov ecx, dword [esi]
mov ebx, dword [esi]
movzx ecx, byte [ecx + eax]
inc eax
and eax, dword [esi + 0x24]
movzx eax, byte [ebx + eax]
shl eax, 8
mov bl, byte [esi + 0x149c]
add ecx, eax
mov eax, ecx
mov ecx, dword [esi + 4]
and eax, 0x3fff
mov byte [ecx + eax], bl
mov eax, dword [esi + 0x149c]
mov ecx, dword [esi]
mov ebx, dword [esi]
movzx ecx, byte [ecx + eax + 2]
movzx ebx, byte [ebx + eax + 1]
mov ecx, dword [edi + ecx*4]
shl ecx, 0xa
mov ebx, dword [edi + ebx*4]
shl ebx, 4
add ecx, ebx
mov ebx, dword [esi]
movzx eax, byte [ebx + eax]
add ecx, eax
mov bx, word [esi + 0x149c]
and ecx, 0x3ffff
mov eax, ecx
mov ecx, dword [esi + 8]
mov word [ecx + eax*2], bx
mov ecx, dword [esi + 0x149c]
mov ebx, dword [esi]
movzx ebx, byte [ebx + ecx + 3]
mov ebx, dword [edi + ebx*4]
shl ebx, 6
add eax, ebx
mov ebx, dword [esi + 0xc]
and eax, 0x3ffff
mov dword [ebx + eax*4], ecx
mov ecx, dword [esi]
mov ebx, dword [esi + 0x149c]
mov ebp, dword [esi + 0x149c]
movzx ecx, byte [ecx + ebx + 4]
mov ebx, dword [esi + 0x10]
mov ecx, dword [edi + ecx*4]
shl ecx, 8
add eax, ecx
mov ecx, dword [esi + 0x10]
and eax, dword [esi + 0x1c]
mov ecx, dword [ecx + eax*4]
and ecx, dword [esi + 0x24]
mov dword [ebx + eax*4], ebp
mov ebx, dword [esi]
movzx ebx, byte [ebx + ecx]
xor eax, ebx
test al, 0xf
je 0x418113
xor ecx, ecx
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x149c]
mov dword [eax + ebx*4], ecx
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
inc edx
mov ecx, dword [esi + 0x58]
dec ecx
cmp edx, ecx
jl 0x41804a
mov byte [esp], 1
jmp 0x41818b
mov byte [esp], 0
lea eax, [esi + 0x60b0]
mov edx, ebx
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov ebx, dword [eax + 0x18]
mov byte [ebx + ecx*4], 0
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov ebx, dword [eax + 0x18]
mov byte [ebx + ecx*4 + 1], dl
inc dword [eax + 0x1c]
mov edx, dword [eax + 0x1c]
cmp edx, 0x4000
jb 0x41817b
call fcn.0041c338
mov eax, dword [esi + 0x149c]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + 0x149c], eax
lea ebx, [esi + 0x990]
mov ebp, dword [esi + 0x149c]
cmp ebp, dword [ebx]
jne 0x4181a6
mov eax, ebx
call fcn.0041a96c
mov dl, 1
jmp 0x4181a8
xor edx, edx
test dl, dl
je 0x417ed8
lea eax, [esi + 0x60b0]
call fcn.0041c338
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret