Function at 0x4fb380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x18], 0
jne 0x4fb3ba
xor eax, eax
jmp 0x4fb5f4
mov eax, dword [ebp + 0x20]
and eax, 0x40000
je 0x4fb3cb
xor eax, eax
jmp 0x4fb5f4
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x1a]
test ecx, ecx
je 0x4fb3dd
xor eax, eax
jmp 0x4fb5f4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], edx
jmp 0x4fb406
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jge 0x4fb592
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jg 0x4fb592
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
cmp ecx, 0x98
jne 0x4fb442
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 0x14]
je 0x4fb447
jmp 0x4fb592
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d2ff0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4fb469
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x4fb4c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jge 0x4fb4c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x74]
cmp edx, dword [ecx + 4]
jne 0x4fb4a0
mov dword [ebp - 0x74], 0xffffffff
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x8c], eax
jmp 0x4fb4dd
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x50]
movsx ecx, word [eax + 0x1c]
cmp ecx, dword [ebp - 0x74]
jne 0x4fb502
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
push edx
call fcn.00488c30
add esp, 8
test eax, eax
je 0x4fb527
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jge 0x4fb511
jmp 0x4fb3fd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x4fb520
jmp 0x4fb592
xor eax, eax
jmp 0x4fb5f4
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0xc]
xor ecx, dword [ebp - 0x80]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x4fb54d
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x20]
je 0x4fb54b
xor eax, eax
jmp 0x4fb5f4
jmp 0x4fb553
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
add eax, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x74], 0
jge 0x4fb58d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.004fb610
add esp, 0x10
test eax, eax
jne 0x4fb58d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
jmp 0x4fb3fd
xor eax, eax
cmp dword [ebp - 0x20], 0
setne al
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jl 0x4fb5af
mov eax, 1
jmp 0x4fb5f4
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
je 0x4fb5f2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x4fb5f2
mov eax, dword [ebp + 0x20]
and eax, 0x80000
jne 0x4fb5f2
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.004fb610
add esp, 0x10
test eax, eax
jne 0x4fb5f2
mov eax, 1
jmp 0x4fb5f4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.00504bf9
mov esp, ebp
pop ebp
ret