Function at 0x457b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + edx]
mov dword [ebp - 0x14], ecx
cmp edi, ecx
jae 0x457d12
mov esi, dword [ebp + 8]
lea esp, [esp]
mov bl, byte [edi]
inc edi
mov al, bl
sub al, 1
cmp al, 7
ja 0x457b79
movzx eax, bl
lea ebx, [eax + edi]
cmp ebx, ecx
ja 0x457d1b
push eax
push edi
mov ecx, esi
call fcn.0040bf00
mov edi, ebx
jmp 0x457d07
cmp bl, 0x80
jae 0x457bc7
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 8], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.0040c580
test al, al
jne 0x457b97
xor eax, eax
mov byte [eax], al
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
add edx, ecx
mov dword [ebp - 8], edx
cmp eax, ecx
jbe 0x457bbb
sub eax, ecx
push eax
push edx
lea eax, [edx + 1]
push eax
call fcn.004bdaf0
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov byte [edx], bl
jmp 0x457d07
cmp bl, 0xc0
jae 0x457c7b
lea edx, [edi + 1]
cmp edx, ecx
ja 0x457d1b
movzx eax, byte [edi]
mov edi, edx
movzx ecx, bl
shl cx, 8
or cx, ax
mov dword [ebp - 0x10], edi
movzx ebx, cx
mov eax, ebx
shr eax, 3
and eax, 0x7ff
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, dword [esi]
ja 0x457d1b
xor edx, edx
cmp dx, ax
je 0x457d1b
and bl, 7
add bl, 3
je 0x457d07
mov edi, edi
mov eax, dword [esi + 0xc]
mov edi, dword [esi]
sub eax, ecx
mov ecx, esi
mov al, byte [eax + edi]
mov byte [ebp - 1], al
lea eax, [edi + 1]
push eax
call fcn.0040c580
test al, al
jne 0x457c40
xor eax, eax
mov byte [eax], al
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp eax, edi
jbe 0x457c61
sub eax, edi
push eax
push ecx
lea eax, [ecx + 1]
push eax
call fcn.004bdaf0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [edi + 1]
mov dword [esi], eax
mov al, byte [ebp - 1]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
add bl, 0xff
jne 0x457c20
mov edi, dword [ebp - 0x10]
jmp 0x457d07
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x10], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.0040c580
test al, al
jne 0x457c94
xor eax, eax
mov byte [eax], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
add edx, ecx
mov dword [ebp - 0x10], edx
cmp eax, ecx
jbe 0x457cb8
sub eax, ecx
push eax
push edx
lea eax, [edx + 1]
push eax
call fcn.004bdaf0
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov dword [esi], eax
xor bl, 0x80
mov byte [edx], 0x20
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.0040c580
test al, al
jne 0x457cdc
xor eax, eax
mov byte [eax], al
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edx
mov dword [ebp - 0x10], ecx
cmp eax, edx
jbe 0x457d00
sub eax, edx
push eax
push ecx
lea eax, [ecx + 1]
push eax
call fcn.004bdaf0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov byte [ecx], bl
mov ecx, dword [ebp - 0x14]
cmp edi, ecx
jb 0x457b50
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret