Function at 0x45f880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x38], ebx
test edi, edi
jns 0x45f8d1
cmp dword [eax], 0
jg 0x45f8d1
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add edx, ecx
push dword [ebp + 8]
call fcn.0045fcb0
add esp, 4
mov dword [ebx], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [ebp - 8], 0
push edx
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.00469290
mov ebx, dword [ebp - 0x18]
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 8], 0
cmp ebx, dword [ebp - 0x14]
je 0x45f96f
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x45f921
test edi, edi
jns 0x45f96f
mov edx, dword [ebp - 0xc]
mov ecx, 1
mov eax, 0x531528
nop
cmp edx, dword [eax]
jb 0x45f946
add eax, 4
xor ecx, 3
cmp eax, 0x531598
jne 0x45f930
mov ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, esi
jl 0x45f9d7
add esi, ecx
cmp esi, edi
jle 0x45f95f
test edi, edi
jns 0x45f9d2
lea ecx, [ebp - 0x18]
call fcn.00463510
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp - 0x14]
jne 0x45f916
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
mov al, byte [eax + 9]
test al, al
movzx edx, al
cmove edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
cmp esi, edx
jge 0x45f9e6
mov eax, dword [ebp - 0x1c]
movzx eax, al
sub eax, 1
je 0x45fa1c
sub eax, 1
je 0x45f9e2
sub eax, 1
jne 0x45f9e6
mov eax, edx
sub eax, esi
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x24]
sar ebx, 1
mov edi, dword [eax]
sub edi, ebx
sub edi, esi
mov dword [ebp - 0x20], edi
jmp 0x45f9e9
mov esi, dword [ebp - 0x20]
jmp 0x45f96f
test edi, edi
jns 0x45f96f
mov esi, 0x7fffffff
jmp 0x45f972
mov ebx, edx
sub ebx, esi
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0xf]
movzx eax, byte [eax + 0xe]
mov edx, esi
test ebx, ebx
jle 0x45fa2c
lea edi, [esi + eax]
mov dword [ebp - 0x1c], edi
nop dword [eax]
push ecx
mov edx, edi
mov ecx, esi
call fcn.0045fcb0
dec ebx
add esp, 4
mov ecx, edx
test ebx, ebx
jg 0x45fa00
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
jmp 0x45fa2f
mov eax, dword [ebp - 0x24]
mov edi, edx
sub edi, esi
lea esi, [eax + 0xf]
movzx eax, byte [eax + 0xe]
mov edx, esi
lea ebx, [eax + edx]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub edx, eax
push ecx
add edx, eax
mov ecx, eax
call fcn.0045fcb0
add esp, 4
test edi, edi
jle 0x45fa5a
push edx
mov edx, ebx
mov ecx, esi
call fcn.0045fcb0
dec edi
add esp, 4
test edi, edi
jg 0x45fa48
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [eax], edx
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret