Function at 0x4d4410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
xor edx, edx
push ebx
push esi
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
mov ebx, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ecx
test ebx, ebx
jle 0x4d4609
jmp 0x4d4450
mov ebx, dword [ebp + 8]
cmp edi, dword [ebx + 4]
jg 0x4d45c0
mov esi, dword [ecx]
mov ecx, dword [ebp + 0xc]
cmp byte [esi], 0x98
jne 0x4d45c3
cmp dword [esi + 0x18], ecx
jne 0x4d45c3
mov ecx, dword [ebp - 0x20]
mov edx, esi
call fcn.004ad2c0
mov ecx, eax
test ecx, ecx
jne 0x4d4489
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x2c]
cmp dword [ebx], 0
je 0x4d44d0
cmp edi, dword [ebx + 4]
jge 0x4d44d0
mov eax, dword [ebx + 8]
lea edx, [edi*4]
mov eax, dword [edx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [eax + 8]
lea edx, [edi*4]
jne 0x4d44bc
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x2c]
add ebx, edx
movzx eax, byte [eax + edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
jmp 0x4d44df
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
mov ebx, ecx
cdq
cmp dword [esi + 0x20], eax
jne 0x4d4588
cmp dword [esi + 0x24], edx
jne 0x4d4588
mov esi, dword [ecx]
mov edx, dword [ebx]
mov bl, byte [esi]
test bl, bl
je 0x4d4521
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4d4521
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4d4500
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5265d8]
movzx eax, bl
movzx eax, byte [eax + 0x5265d8]
sub eax, ecx
jne 0x4d4588
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0xc]
xor eax, dword [ebp - 0x14]
cmp edi, dword [ebp + 0x14]
jle 0x4d4558
mov esi, dword [ebp - 8]
cmp eax, esi
je 0x4d455d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 4]
add ecx, 0x14
inc ebx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], ebx
jge 0x4d4593
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.004d4380
add esp, 8
test eax, eax
je 0x4d45a0
jmp 0x4d4590
cmp edi, dword [ebp + 0x14]
jge 0x4d45b8
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc edi
cmp ebx, dword [ebp - 0x18]
jl 0x4d4450
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test esi, esi
setne al
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp edi, dword [ebx + 4]
jne 0x4d454f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
xor eax, eax
test edx, edx
mov edx, dword [ebp + 0x18]
setne al
mov dword [edx], eax
cmp esi, dword [ebp - 0x18]
jge 0x4d45ac
cmp byte [ebx + 0x18], 0
je 0x4d454f
cmp edi, dword [ebx + 4]
jne 0x4d454f
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004d4380
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jmp 0x4d45c9