Function at 0x4028b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ecx]
xor ebp, ebp
cmp byte [esi], 0x22
jne 0x402b44
mov eax, esi
jmp 0x4028df
lea eax, [ebx + 2]
mov dword [ecx], eax
cmp byte [ebx + 2], 0
je 0x402b44
mov ebx, eax
inc eax
mov dword [ecx], eax
movzx edi, byte [ebx + 1]
cmp edi, 0x5c
je 0x4028d0
test edi, edi
je 0x402b44
cmp edi, 0x22
jne 0x4028df
mov dword [esp + 0xc], edx
add ebx, 2
mov dword [ecx], ebx
sub ebx, esi
lea eax, [ebx - 1]
push eax
call dword [0x45f428]
add esp, 4
mov dword [esp + 4], eax
test eax, eax
je case.0x402968.35
mov edi, dword [esp + 4]
add ebx, 0xfffffffe
je 0x402afa
movzx ecx, byte [esi + 1]
mov edi, dword [esp + 4]
test cl, cl
je 0x402afa
inc esi
mov edi, dword [esp + 4]
mov ebp, esi
nop word cs:[eax + eax]
cmp cl, 0x5c
jne 0x402980
movsx ecx, byte [ebp + 1]
add ecx, 0xffffffde
cmp ecx, 0x53
ja case.0x402968.35
lea eax, [ebp + 1]
jmp dword [ecx*4 + 0x45b738]
mov byte [edi], 0x22
jmp 0x40298d
cmp cl, 0x20
jb case.0x402968.35
mov byte [edi], cl
mov eax, ebp
inc edi
movzx ecx, byte [eax + 1]
test cl, cl
je 0x402afa
inc eax
mov edx, eax
sub edx, esi
mov ebp, eax
cmp edx, ebx
jb 0x402950
jmp 0x402afa
mov byte [edi], 0x2f
jmp 0x40298d
mov byte [edi], 0x5c
jmp 0x40298d
mov byte [edi], 8
jmp 0x40298d
mov byte [edi], 0xc
jmp 0x40298d
mov byte [edi], 0xa
jmp 0x40298d
mov byte [edi], 0xd
jmp 0x40298d
mov byte [edi], 9
jmp 0x40298d
lea ecx, [ebp + 2]
mov edx, esp
call fcn.00402b50
test eax, eax
jne case.0x402968.35
mov edx, dword [esp]
cmp edx, 0x7f
ja 0x4029eb
mov byte [edi], dl
jmp 0x402a43
cmp edx, 0x7ff
ja 0x402a09
shr edx, 6
or dl, 0xc0
mov byte [edi], dl
movzx eax, byte [esp]
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
inc edi
jmp 0x402a43
lea eax, [edx - 0xe000]
cmp eax, 0xfffff7ff
ja 0x402a52
shr edx, 0xc
mov eax, edx
or eax, 0xf
xor edx, 0x10
and edx, eax
or dl, 0xe0
mov byte [edi], dl
mov eax, dword [esp]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
movzx eax, byte [esp]
and al, 0x3f
or al, 0x80
mov byte [edi + 2], al
add edi, 2
mov eax, 1
add eax, ebp
add eax, 4
jmp 0x40298d
cmp edx, 0xdbff
ja case.0x402968.35
cmp byte [ebp + 6], 0x5c
jne case.0x402968.35
cmp byte [ebp + 7], 0x75
jne case.0x402968.35
lea ecx, [ebp + 8]
mov dword [esp + 8], edx
lea edx, [esp + 0x10]
call fcn.00402b50
mov edx, dword [esp + 8]
test eax, eax
jne case.0x402968.35
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xe000]
cmp ecx, 0xfffffc00
jb case.0x402968.35
shl edx, 0xa
and edx, 0xffc00
and eax, 0x3ff
add eax, edx
add eax, 0x10000
mov dword [esp], eax
shr eax, 0x12
or al, 0xf0
mov byte [edi], al
mov eax, dword [esp]
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
mov eax, dword [esp]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edi + 2], al
movzx eax, byte [esp]
and al, 0x3f
or al, 0x80
mov byte [edi + 3], al
add edi, 3
mov eax, 7
add eax, ebp
add eax, 4
jmp 0x40298d
mov byte [edi], 0
sub edi, dword [esp + 4]
lea esi, [edi + 1]
push esi
call dword [0x45f428]
add esp, 4
test eax, eax
je case.0x402968.35
mov ebp, eax
push esi
mov esi, dword [esp + 8]
push esi
push eax
call fcn.00417260
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [eax], edi
push esi
call dword [0x45f424]
add esp, 4
jmp 0x402b44
push dword [esp + 4]
call dword [0x45f424]
add esp, 4
xor ebp, ebp
mov eax, ebp
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret