Function at 0x4745e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.0040f000
mov eax, dword [0x4f5608]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 0x18
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
shl edx, 0x18
or edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x4748f5
cmp dword [ebp - 4], 0
jne 0x4748bd
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00475310
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x24]
xor eax, edx
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
and ecx, 7
mov dword [ebp - 4], ecx
jmp 0x4747a2
cmp dword [ebp - 0x14], 0
je 0x4749c7
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a326
mov esp, ebp
pop ebp
ret