Function at 0x4030e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [ecx]
xor eax, eax
cmp byte [ebp], 0x22
jne 0x403395
mov esi, ebp
jmp 0x40310f
lea esi, [edi + 2]
mov dword [ecx], esi
cmp byte [edi + 2], 0
je 0x403395
mov edi, esi
inc esi
mov dword [ecx], esi
movzx ebx, byte [edi + 1]
cmp ebx, 0x5c
je 0x403100
test ebx, ebx
je 0x403395
cmp ebx, 0x22
jne 0x40310f
add edi, 2
mov dword [ecx], edi
sub edi, ebp
lea ecx, [edi - 1]
mov eax, ecx
and eax, 0xfffffffe
mov esi, edi
and esi, 1
imul eax, esi
test esi, esi
mov dword [esp + 4], edx
je 0x40314d
xor ecx, ecx
jmp 0x403150
or ecx, 1
add eax, ecx
push eax
call dword [0x446b48]
add esp, 4
mov dword [esp], eax
test eax, eax
je case.0x4031a7.35
mov esi, dword [esp]
add edi, 0xfffffffe
je 0x403337
movzx eax, byte [ebp + 1]
mov esi, dword [esp]
test al, al
je 0x403337
inc ebp
mov esi, dword [esp]
mov dword [esp + 8], ebp
nop
nop
nop
nop
nop
nop
cmp al, 0x5c
jne 0x4031c0
movzx eax, byte [ebp + 1]
add eax, 0xffffffde
cmp eax, 0x53
ja case.0x4031a7.35
lea ebx, [ebp + 1]
jmp dword [eax*4 + 0x4438c4]
mov byte [esi], 0x22
jmp 0x4031cc
cmp al, 0x20
jb case.0x4031a7.35
mov byte [esi], al
mov ebx, ebp
inc esi
movzx eax, byte [ebx + 1]
test al, al
mov edx, dword [esp + 8]
je 0x403337
inc ebx
mov ecx, ebx
sub ecx, edx
mov ebp, ebx
cmp ecx, edi
jb 0x403190
jmp 0x403337
mov byte [esi], 0xa
jmp 0x4031cc
mov byte [esi], 0x2f
jmp 0x4031cc
mov byte [esi], 8
jmp 0x4031cc
lea ecx, [ebp + 2]
lea edx, [esp + 0x10]
call fcn.004033a0
test eax, eax
jne case.0x4031a7.35
mov edx, dword [esp + 0x10]
cmp edx, 0x7f
ja 0x403231
mov byte [esi], dl
jmp 0x40327e
mov byte [esi], 0x5c
jmp 0x4031cc
mov byte [esi], 0xd
jmp 0x4031cc
mov byte [esi], 0xc
jmp 0x4031cc
mov byte [esi], 9
jmp 0x4031cc
cmp edx, 0x7ff
ja 0x40324e
mov eax, edx
shr eax, 6
or al, 0xc0
mov byte [esi], al
and dl, 0x3f
or dl, 0x80
mov byte [esi + 1], dl
inc esi
jmp 0x40327e
lea eax, [edx - 0xe000]
cmp eax, 0xfffff7ff
ja 0x40328d
mov eax, edx
shr eax, 0xc
and al, 0xf
or al, 0xe0
mov byte [esi], al
mov eax, edx
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esi + 1], al
and dl, 0x3f
or dl, 0x80
mov byte [esi + 2], dl
add esi, 2
mov eax, 1
add ebx, eax
add ebx, 3
jmp 0x4031cc
cmp edx, 0xdbff
ja case.0x4031a7.35
cmp byte [ebp + 6], 0x5c
jne case.0x4031a7.35
cmp byte [ebp + 7], 0x75
jne case.0x4031a7.35
add ebp, 8
mov ecx, ebp
mov ebp, edx
lea edx, [esp + 0xc]
call fcn.004033a0
test eax, eax
jne case.0x4031a7.35
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xe000]
cmp ecx, 0xfffffc00
jb case.0x4031a7.35
mov edx, ebp
shl edx, 0xa
and edx, 0xffc00
mov ebp, eax
mov eax, edx
mov edx, ebp
and edx, 0x3ff
lea ecx, [edx + eax]
add eax, edx
add eax, 0x10000
mov edx, eax
shr edx, 0x12
or dl, 0xf0
mov byte [esi], dl
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [esi + 1], al
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, ebp
and al, 0x3f
or al, 0x80
mov byte [esi + 3], al
add esi, 3
mov eax, 7
add ebx, eax
add ebx, 3
jmp 0x4031cc
mov byte [esi], 0
mov eax, esi
mov edi, dword [esp]
xor eax, edi
not edi
and edi, esi
add edi, edi
sub edi, eax
lea esi, [edi + 1]
push esi
call dword [0x446b48]
add esp, 4
test eax, eax
je case.0x4031a7.35
push esi
mov ebp, dword [esp + 4]
push ebp
push eax
mov ebx, eax
call fcn.00408dc0
add esp, 0xc
and edi, 1
and esi, 0xfffffffe
sub esi, edi
mov eax, dword [esp + 4]
mov dword [eax], esi
push ebp
call dword [0x446b44]
mov eax, ebx
add esp, 4
jmp 0x403395
push dword [esp]
call dword [0x446b44]
add esp, 4
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret