Function at 0x41379e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x30
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
setg al
movzx eax, al
test eax, eax
jne 0x413a29
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xc], 1
jne 0x4137d9
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 5
je 0x413a1f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], ecx
setg al
movzx eax, al
test eax, eax
jne 0x413a1f
mov eax, dword [ebp - 0x20]
sub eax, 1
mov eax, dword [eax*4 + 0x134584e0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub eax, 1
add eax, 0x186a0
mov eax, dword [eax*4 + 0x134584e0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
sub eax, 1
add eax, 0x30d40
mov eax, dword [eax*4 + 0x134584e0]
cmp dword [ebp - 0xc], eax
jne 0x413a15
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea edx, [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, edx
lea edx, [eax - 3]
mov eax, dword [ebp - 0x20]
mov dword [edx*4 + 0x13640960], eax
mov eax, dword [ebp - 0x20]
lea edx, [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, edx
sub eax, 3
lea edx, [eax + 0x1b580]
mov eax, dword [ebp - 0x1c]
mov dword [edx*4 + 0x13640960], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, edx
sub eax, 3
add eax, 0xfa0
mov dword [eax*4 + 0x13640960], 0
mov eax, dword [ebp - 0x1c]
lea edx, [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0xf9d
add eax, 0xfa0
mov dword [eax*4 + 0x13640960], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], ebx
setg al
movzx eax, al
test eax, eax
jne 0x413a15
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 6
setg al
movzx eax, al
test eax, eax
jne 0x413918
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
add eax, eax
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
sub eax, 7
add eax, 0xb71b0
mov eax, dword [eax*4 + 0x12bc30a0]
cdq
xor eax, edx
sub eax, edx
cmp dword [ebp - 0x20], eax
je 0x41391e
add dword [ebp - 0x18], 1
jmp 0x4138d9
nop
jmp 0x413a0c
nop
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 4
setg al
movzx eax, al
test eax, eax
jne 0x4139d3
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
sub eax, 5
mov eax, dword [eax*4 + 0x12bc30a0]
cmp dword [ebp - 0x24], eax
je 0x4139ca
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
sub eax, 5
mov eax, dword [eax*4 + 0x12bc30a0]
cmp dword [ebp - 0x28], eax
je 0x4139ca
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
sub eax, 5
mov eax, dword [eax*4 + 0x12bc30a0]
sub eax, 1
add eax, 0x249f0
mov eax, dword [eax*4 + 0x1266bda0]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xc]
jne 0x4139ca
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
sub eax, 5
mov eax, dword [eax*4 + 0x12bc30a0]
mov dword [ebp - 0x10], eax
add dword [ebp - 0x18], 1
jmp 0x41392d
nop
cmp dword [ebp - 0x10], 0
je 0x413a0b
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
imul edx, eax, 0x7d0
mov eax, dword [ebp - 0x1c]
add eax, edx
lea edx, [eax + eax]
mov eax, dword [ebp - 0xc]
add eax, edx
sub eax, 0xfa3
lea edx, [eax + 0xfa0]
mov eax, dword [ebp - 0x10]
mov dword [edx*4 + 0x13640960], eax
jmp 0x413a0c
nop
add dword [ebp - 0x14], 1
jmp 0x4138c1
nop
add dword [ebp - 0x20], 1
jmp 0x4137e5
nop
add dword [ebp - 0xc], 1
jmp 0x4137ac
nop
nop
add esp, 0x30
pop ebx
pop ebp
ret