Function at 0x47a5a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
sub eax, dword [ecx + 0x6c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x64]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47a5ec
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x64], 0
jne 0x47a5ec
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0
jne 0x47a5ec
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x47a708
cmp dword [ebp - 0xc], 0xffffffff
jne 0x47a5fe
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x47a708
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 0x106]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x64], eax
jb 0x47a708
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x28]
call fcn.0049d180
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x64], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x54]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
cmp eax, ecx
sbb eax, eax
not eax
and eax, edx
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a67a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
cmp eax, ecx
sbb eax, eax
not eax
and eax, edx
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a6c7
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.004703b5
test eax, eax
jne 0x47a71c
jmp 0x47a7ba
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x64]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x6c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.0046fc72
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 3
jb 0x47a79b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
movzx eax, byte [eax + ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x40]
mov ecx, dword [ecx + 0x50]
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x64]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x28]
movzx ecx, byte [edx + ecx + 1]
xor eax, ecx
mov ecx, dword [ebp - 0x18]
and eax, dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0x106
jae 0x47a7ba
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.004703b5
test eax, eax
jne 0x47a5b4
leave
ret