Function at 0x471d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add esp, 0xffffffe8
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x14], edx
mov ecx, dword [esp]
mov edx, dword [esp]
mov eax, dword [ecx + 0x34]
mov ecx, dword [esp]
sub eax, dword [edx + 0x6c]
sub eax, dword [ecx + 0x64]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x471d6c
mov eax, dword [esp]
cmp dword [eax + 0x64], 0
jne 0x471d6c
mov edx, dword [esp]
cmp dword [edx + 0x6c], 0
jne 0x471d6c
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x471e7b
cmp dword [esp + 0x10], 0xffffffff
jne 0x471d7c
dec dword [esp + 0x10]
jmp 0x471e7b
mov eax, dword [esp]
mov ecx, dword [esp]
mov edx, dword [eax + 0x24]
sub edx, 0x106
add edx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x64]
ja 0x471e7b
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x30]
add ecx, dword [esp + 0x18]
push ecx
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x30]
push edx
call fcn.0046fcb0
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x14]
sub dword [eax + 0x68], ecx
mov ecx, dword [esp]
mov edx, dword [esp + 0x14]
sub dword [ecx + 0x64], edx
mov edx, dword [esp]
mov eax, dword [esp + 0x14]
sub dword [edx + 0x54], eax
mov ecx, dword [esp]
mov eax, dword [ecx + 0x44]
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov edx, dword [esp + 4]
add edx, edx
add edx, dword [ecx + 0x3c]
mov dword [esp + 0xc], edx
sub dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
movzx edx, word [eax]
mov dword [esp + 8], edx
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 0x14]
jb 0x471e17
mov ax, word [esp + 8]
sub ax, word [esp + 0x14]
jmp 0x471e19
xor eax, eax
mov edx, dword [esp + 0xc]
mov word [edx], ax
dec dword [esp + 4]
jne 0x471df1
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov edx, dword [esp]
mov eax, dword [esp + 4]
add eax, eax
add eax, dword [edx + 0x38]
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 2
mov ecx, dword [esp + 0xc]
movzx eax, word [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
cmp edx, dword [esp + 0x14]
jb 0x471e64
mov cx, word [esp + 8]
sub cx, word [esp + 0x14]
jmp 0x471e66
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov word [eax], cx
dec dword [esp + 4]
jne 0x471e3e
mov edx, dword [esp + 0x14]
add dword [esp + 0x10], edx
mov eax, dword [esp]
mov edx, dword [eax]
cmp dword [edx + 4], 0
je 0x471f1f
mov ecx, dword [esp]
mov eax, dword [esp]
mov edx, dword [ecx + 0x30]
mov ecx, dword [esp]
add edx, dword [eax + 0x64]
mov eax, dword [esp]
add edx, dword [ecx + 0x6c]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
call fcn.004718ec
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
mov ecx, dword [esp]
add dword [ecx + 0x6c], edx
mov eax, dword [esp]
cmp dword [eax + 0x6c], 3
jb 0x471f04
mov edx, dword [esp]
mov eax, dword [esp]
mov ecx, dword [edx + 0x30]
mov edx, dword [eax + 0x64]
mov eax, dword [esp]
movzx ecx, byte [ecx + edx]
mov dword [eax + 0x40], ecx
mov edx, dword [esp]
mov eax, dword [esp]
mov ecx, dword [edx + 0x50]
mov edx, dword [eax + 0x40]
shl edx, cl
mov ecx, dword [esp]
mov eax, dword [ecx + 0x30]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x64]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
mov eax, dword [esp]
mov ecx, dword [esp]
and edx, dword [eax + 0x4c]
mov dword [ecx + 0x40], edx
mov edx, dword [esp]
cmp dword [edx + 0x6c], 0x106
jae 0x471f1f
mov eax, dword [esp]
mov edx, dword [eax]
cmp dword [edx + 4], 0
jne 0x471d30
add esp, 0x18
ret