Function at 0x46a930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x114]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00465a50
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x46ab34
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
jmp 0x46a993
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
jae 0x46aa70
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp - 0x38]
and edx, 0xffffff
or edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
and ecx, 0xff
shl ecx, 0x10
mov edx, dword [ebp - 0x38]
and edx, 0xff00ffff
or edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0x38]
and edx, 0xffff00ff
or edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
and ecx, 0xff
mov edx, dword [ebp - 0x38]
and edx, 0xffffff00
or edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
xor edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x46a98a
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0
jmp 0x46aa8f
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
jae 0x46aac0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0046abc0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + eax*4 + 4], edx
jmp 0x46aa86
mov dword [ebp - 0x20], 0
jmp 0x46aad2
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jae 0x46ab34
mov dword [ebp - 0x14], 0
jmp 0x46aaea
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100
jae 0x46ab32
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0046abc0
mov eax, dword [ebp - 0x20]
shl eax, 0xa
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x48]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x20]
shl eax, 0xa
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x48]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x50]
mov dword [edx + eax*4 + 4], ecx
jmp 0x46aae1
jmp 0x46aac9
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], ecx
mov dword [ebp + 8], 0
mov dword [ebp - 0x2c], 0
push edx
mov ecx, ebp
push eax
lea edx, [0x46ab7c]
call fcn.004659f0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x114
cmp ebp, esp
call fcn.004659c0
mov esp, ebp
pop ebp
ret 4