Function at 0x41a330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov dword [esp + 0x30], 0x8bc885ad
mov dword [esp + 0x34], 0x8fed891b
mov dword [esp + 0x38], 0xb3e08de9
mov dword [esp + 0x3c], 0xb720b1f5
mov dword [esp + 0x40], 0xbbf0b526
mov dword [esp + 0x44], 0xbf2cb9dd
mov dword [esp + 0x48], 0xa397bdd9
lea eax, [esp + 0x4c]
mov word [esp + 0x4c], 0xa1a2
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov byte [esp + 0x5a], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0xac]
cmp ecx, 0x2a
ja 0x41a409
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
movzx esi, byte [esp + ecx + 0x30]
lea ecx, [edx + esi]
add ecx, 0x965b7e15
add edx, 0x965b7e15
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0x6d
mov edx, dword [esp + 0xac]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
cmp ecx, 0x2b
jb 0x41a3c0
lea esi, [esp + 0x10e]
lea edx, [esp + 0x30]
mov ecx, 7
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x12a]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0x98]
push edi
push 0
push 0
push 0xe
push esi
push 0
call dword [0x4437d0]
mov ebx, dword [esp + 0x98]
test ebx, ebx
jns 0x41a45b
mov eax, 0xffffffff
jmp 0x41a45e
lea eax, [ebx + ebx]
push eax
call fcn.00408550
add esp, 4
push edi
push ebx
mov dword [esp + 0x34], eax
push eax
push 0xe
push esi
push 0
call dword [0x4437d0]
mov dword [esp + 0x30], 0x2bda2dc8
mov dword [esp + 0x34], 0xd73929c9
mov dword [esp + 0x38], 0xd333d543
mov dword [esp + 0x3c], 0xdf33d13b
mov dword [esp + 0x40], 0xdbdadd43
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0xac]
cmp ecx, 0x1f
ja 0x41a529
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
movzx esi, byte [esp + ecx + 0x30]
lea ecx, [edx + esi]
add ecx, 0x622a297a
add edx, 0x622a297a
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0xaa
mov edx, dword [esp + 0xac]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
cmp ecx, 0x20
jb 0x41a4e0
lea edi, [esp + 0xfa]
lea edx, [esp + 0x30]
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x10e]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x98]
mov ecx, eax
add ecx, 9
jns 0x41a562
mov eax, 0xffffffff
jmp 0x41a567
add eax, eax
add eax, 0x12
push eax
call fcn.00408550
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax]
mov eax, ebx
test cx, cx
je 0x41a5a1
mov eax, dword [esp + 0x2c]
lea edx, [eax + 2]
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a590
mov word [eax], 0
movzx ecx, word [esp + 0xfa]
test cx, cx
je 0x41a5d1
lea edx, [esp + 0xfc]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a5c0
mov esi, dword [ebp + 8]
mov word [eax], 0
lea eax, [esp + 0xa4]
push 0x20
push 1
push 3
push 0x120089
push eax
push ebx
call fcn.00435440
add esp, 0x18
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x43d880]
mov ecx, 0xc04dba2c
xor ecx, dword [0x43d888]
add eax, ecx
inc eax
jmp eax