Function at 0x424550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x424800
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor esi, esi
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + ecx + 0x20]
mov edi, edx
sub edi, dword [ebp + 0x10]
cmovb edi, esi
cmp edx, 1
mov edx, dword [ebx + ecx + 0x24]
mov dword [ebp - 0x28], ebx
sbb edx, 0
cmovl edi, esi
mov esi, dword [ebx + ecx + 0x38]
mov dword [ebp - 0x20], edi
test esi, esi
je 0x4245c7
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
call edi
mov eax, dword [ebx]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
cmp dword [ebx + ecx + 0xc], 0
je 0x4245dc
mov byte [ebp - 0x24], 0
mov esi, 4
jmp 0x42477c
mov ecx, dword [ebx + ecx + 0x3c]
test ecx, ecx
je 0x424615
cmp ecx, ebx
je 0x424615
mov dword [ebp - 0x10], 0
call fcn.0049fcb0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov esi, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
cmp dword [ebx + ecx + 0xc], 0
sete byte [ebp - 0x24]
jne 0x42477c
jmp 0x424619
mov byte [ebp - 0x24], 1
mov eax, dword [eax + 4]
mov ecx, 0x1c0
and ecx, dword [ebx + eax + 0x14]
cmp ecx, 0x40
jne 0x424640
jmp 0x4246a4
dec edx
mov dword [ecx], edx
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov byte [edx], al
dec edi
mov eax, dword [ebx]
test edi, edi
mov eax, dword [eax + 4]
je 0x42469d
mov esi, dword [ebx + eax + 0x38]
movzx eax, byte [ebx + eax + 0x40]
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 0
je 0x424663
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
test edx, edx
jg 0x424630
mov ecx, dword [esi]
mov dword [ebp - 0x20], edi
movzx ebx, al
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov dword [ebp - 0x10], 1
mov ecx, esi
push ebx
call edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x42463f
mov dword [ebp - 0x2c], 4
jmp 0x424700
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ecx + eax + 0x38]
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov dword [ebp - 0x10], 1
mov ecx, esi
push 0
push dword [ebp + 0x10]
push ebx
call edi
xor eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov esi, 4
mov dword [ebp - 0x2c], 0
or eax, edx
je 0x424700
jmp 0x42475e
dec edx
mov dword [ecx], edx
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov byte [edx], al
dec edi
test edi, edi
je 0x42475b
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov esi, dword [ebx + eax + 0x38]
movzx eax, byte [ebx + eax + 0x40]
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 0
je 0x424723
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
test edx, edx
jg 0x4246f0
mov ecx, dword [esi]
mov dword [ebp - 0x20], edi
movzx ebx, al
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov dword [ebp - 0x10], 1
mov ecx, esi
push ebx
call edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x4246ff
mov esi, 4
jmp 0x42475e
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x20], 0
mov dword [ebx + eax + 0x24], 0
mov eax, dword [ebx]
mov dword [ebp - 0x10], 1
mov edx, dword [eax + 4]
xor eax, eax
or esi, dword [ebx + edx + 0xc]
cmp dword [ebx + edx + 0x38], 0
lea ecx, [ebx + edx]
mov dword [ebp - 0x10], 1
sete al
shl eax, 2
or eax, esi
push 0
push eax
call fcn.005ddd90
lea ecx, [ebp - 0x28]
call fcn.005dde10
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret