Function at 0x429f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov dword [ebp - 0x244], eax
lea eax, [edx + 0x30]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x210], 0x53
mov byte [ebp - 0x20f], al
cmp edx, 9
jbe switch.0x0042a0bd
lea eax, [ebp - 0x20b]
lea edx, [ebp - 0x20a]
lea ecx, [ebp - 0x209]
xor ebx, ebx
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], ecx
cmp dword [ebp + 8], esi
jae 0x42a015
mov edx, dword [ebp + 8]
mov ecx, edi
xor eax, eax
mov al, byte [edx]
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [ecx + 1], al
mov al, byte [edx]
shr al, 4
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [ecx], al
xor eax, eax
mov al, byte [edx]
inc edx
add ebx, eax
add ecx, 2
cmp edx, esi
jne 0x429fc4
mov ecx, dword [ebp + 8]
sub esi, ecx
lea edi, [edi + esi*2]
lea eax, [edi + 1]
lea edx, [edi + 2]
lea ecx, [edi + 3]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], ecx
lea eax, [ebp - 0x20e]
mov edx, edi
sub edx, eax
lea esi, [ebp - 0x210]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
sar edx, 1
sar eax, 5
mov ecx, edx
and edx, 0xff
and eax, 0xf
add edx, ebx
and ecx, 0xf
xor edx, 0xffffffff
mov al, byte [eax + 0x49fd78]
and edx, 0xff
mov byte [ebp - 0x20e], al
mov eax, edx
mov ebx, dword [ebp - 0x238]
and eax, 0xf
mov cl, byte [ecx + 0x49fd78]
shr edx, 4
mov byte [ebp - 0x20d], cl
mov al, byte [eax + 0x49fd78]
mov byte [ebx], al
mov al, byte [edx + 0x49fd78]
mov byte [edi], al
mov edi, dword [ebp - 0x234]
mov byte [edi], 0xd
mov eax, dword [ebp - 0x230]
mov ebx, eax
mov byte [eax], 0xa
inc ebx
sub ebx, esi
mov eax, dword [ebp - 0x244]
push edx
push eax
push ebx
push esi
call fcn.00410490
add esp, 0x10
cmp eax, ebx
sete al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
jmp dword [edx*4 + 0x49f860]
mov edx, ecx
lea edi, [ebp - 0x20a]
shr edx, 0x18
mov dword [ebp - 0x23c], edi
mov eax, edx
and edx, 0xff
and eax, 0xf
mov dword [ebp - 0x240], edx
lea edi, [ebp - 0x209]
lea ebx, [ebp - 0x208]
mov al, byte [eax + 0x49fd78]
mov byte [ebp - 0x20b], al
mov eax, ecx
shr eax, 0x1c
mov al, byte [eax + 0x49fd78]
mov byte [ebp - 0x20c], al
mov edx, ecx
shr edx, 0x10
mov eax, edx
and edx, 0xff
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [edi], al
mov eax, ecx
shr eax, 0x14
mov edi, dword [ebp - 0x23c]
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [edi], al
lea eax, [ebx + 1]
mov edi, dword [ebp - 0x240]
mov dword [ebp - 0x22c], eax
add edx, edi
lea edi, [ebx + 3]
mov dword [ebp - 0x220], edx
lea edx, [ebx + 2]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], edx
lea edi, [ebx + 4]
mov eax, ecx
mov edx, dword [ebp - 0x22c]
shr eax, 8
mov dword [ebp - 0x24c], eax
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [ebx], al
mov eax, ecx
and eax, 0xf
mov ebx, dword [ebp - 0x224]
mov al, byte [eax + 0x49fd78]
mov byte [ebx], al
mov eax, ecx
shr eax, 4
mov edx, dword [ebp - 0x228]
and eax, 0xf
mov al, byte [eax + 0x49fd78]
mov byte [edx], al
movzx edx, byte [ebp - 0x24c]
movzx eax, cl
add edx, eax
mov ecx, dword [ebp - 0x220]
lea eax, [edi + 1]
lea ebx, [edx + ecx]
lea edx, [edi + 2]
lea ecx, [edi + 3]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], ecx
jmp 0x429fba
lea ebx, [ebp - 0x20c]
lea edi, [ebp - 0x20b]
mov dword [ebp - 0x23c], ebx
lea ebx, [ebp - 0x20a]
mov dword [ebp - 0x240], 0
jmp 0x42a10f
lea edi, [ebp - 0x20b]
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x22c], edi
lea edx, [ebp - 0x209]
lea ebx, [ebp - 0x20c]
lea edi, [ebp - 0x208]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], edx
jmp 0x42a169