Function at 0x4b0f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b12c4
sub esp, 0x44
mov eax, dword [esp + 0x48]
test byte [eax], al
mov ecx, dword [esp + 0x58]
movzx edx, byte [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, ecx
mov edi, eax
mov eax, 0xff
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, edi
xor esi, esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x24], esi
mov ecx, esi
jmp 0x4b0fe2
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
mov ecx, edx
movzx edx, byte [esp + 0x5c]
cmp ebp, ecx
jle 0x4b12a8
movzx edi, byte [ebx + ecx]
mov dword [esp + 0x38], edi
lea esi, [ecx + 1]
and edi, 0xc0
test edi, edi
je 0x4b1053
cmp edi, 0xc0
jne 0x4b11bf
test dl, dl
je 0x4b119f
cmp ebp, esi
jle 0x4b117f
movzx esi, byte [ecx + ebx + 1]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4b102d
add ecx, 2
jmp 0x4b1031
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, 0xa
jg 0x4b115f
mov edx, dword [esp + 0x38]
xor edx, 0xc0
shl edx, 8
or edx, esi
mov esi, dword [esp + 0x28]
jmp 0x4b0fc7
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4b11ff
lea edx, [ecx + edi + 1]
cmp ebp, edx
jl 0x4b11df
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x28]
lea edx, [ebp + edi]
mov edi, dword [esp + 0x54]
sub edi, ecx
lea ecx, [edi - 1]
neg ecx
sar ecx, 0x1f
and ecx, esi
add ecx, ebx
mov esi, dword [esp + 0x2c]
cmp esi, edx
jae 0x4b10cd
mov dword [esp + 0x40], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea ecx, [0x4ec9a0]
mov dword [esp + 0x10], ecx
call fcn.0044cd30
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
lea ebx, [eax + ebp]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
call fcn.00465c70
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x4b1109
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
jmp 0x4b113b
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4ec9a0]
mov dword [esp + 0x10], eax
call fcn.0044cd30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x2e
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [esp + 0x24]
jmp 0x4b0fc7
mov eax, dword [0x5e54a8]
mov ecx, dword [0x5e54ac]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x5e5450]
mov ecx, dword [0x5e5454]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x5e5448]
mov ecx, dword [0x5e544c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x5e5470]
mov ecx, dword [0x5e5474]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x5e5440]
mov ecx, dword [0x5e5444]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x4b1252
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jb 0x4b1217
mov ecx, 1
jmp 0x4b124d
mov dword [esp + 0x34], esi
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4ec9a0]
mov dword [esp + 0x10], eax
call fcn.0044cd30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov byte [ecx + eax - 1], 0x2e
cmp ecx, 0xff
jg 0x4b1288
mov eax, dword [esp + 0x48]
mov byte [eax + 0xff], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4b1270
mov esi, dword [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x44
ret
mov eax, dword [0x5e5440]
mov ecx, dword [0x5e5444]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x5e5438]
mov ecx, dword [0x5e543c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
call fcn.00464070
jmp fcn.004b0f70