Function at 0x450f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x48], edi
mov esi, dword [edi + 0x10]
cmp esi, 3
jae 0x450f66
call fcn.00450d40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
movzx eax, word [edi + eax*4 + 0x60]
xor edx, eax
mov eax, dword [edi + 0x24]
lea ecx, [eax + edx*4]
mov eax, dword [edi + 4]
mov edx, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
mov dword [ebp - 4], edx
mov edx, dword [edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
sub eax, edx
cmp edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
sbb edx, edx
mov dword [ebp - 0x38], ecx
and edx, eax
lea ecx, [edi + ecx*8]
mov dword [ebp - 0x34], edx
lea edi, [ecx + 4]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x34], edx
jae 0x4510d5
nop
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub edi, edx
cmp dword [ebp - 0x38], edi
mov edx, dword [ebp - 8]
sbb eax, eax
mov dword [ebp - 0x40], edi
and eax, dword [ebp - 0x3c]
sub eax, edi
neg edi
add eax, dword [ebp - 0x38]
add edx, edi
mov dword [ebp - 0x2c], edx
lea ecx, [ecx + eax*8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, eax
cmp dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x10]
cmovb eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [ebp - 0x44], ecx
mov cl, byte [eax + edx]
mov edx, dword [ebp - 8]
cmp cl, byte [eax + edx]
mov edx, dword [ebp - 4]
jne 0x451088
inc eax
cmp eax, esi
je 0x451070
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + edx]
mov edx, dword [ebp - 4]
jne 0x451070
inc eax
cmp eax, esi
je 0x451070
mov edx, dword [ebp - 8]
add edx, eax
nop word [eax + eax]
mov cl, byte [edx + edi]
cmp cl, byte [edx]
jne 0x45106d
inc eax
inc edx
cmp eax, esi
jne 0x451060
mov edx, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
jae 0x451088
mov ecx, dword [ebp - 0x40]
dec ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
add ebx, 8
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x451105
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 8]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + edi]
jae 0x4510ae
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ecx]
jmp 0x4510c3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
mov edi, ecx
mov dword [ebp - 0x14], edi
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 0x30], 1
mov dword [ebp - 4], edx
je 0x4510d5
cmp dword [ebp - 0x34], edx
jb 0x450ff0
mov dword [ecx], 0
mov dword [edi], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
inc dword [eax + 0x14]
inc ecx
inc dword [eax]
mov dword [eax + 4], ecx
cmp ecx, dword [eax + 8]
jne 0x4510fc
mov ecx, eax
call fcn.00450b80
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x4510e1