Function at 0x446690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4ba010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x40], edx
mov edx, dword [ecx + 0x10]
add eax, eax
mov ebx, dword [edx + eax*8]
mov eax, 1
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], eax
jmp 0x4466d3
mov esi, dword [ebp - 0x30]
push eax
push 0x4b69ec
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.00406150
mov esi, dword [esi]
mov edx, dword [esi + 0x14]
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], edx
xor esi, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x34], esi
jle 0x446772
cmp esi, 2
jge 0x44670a
xor esi, 1
test ebx, ebx
je 0x4467bf
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x10]
mov eax, esi
add eax, eax
mov edi, dword [edx + eax*8]
mov dl, byte [ebx]
mov ecx, ebx
movzx ebx, byte [edi]
movzx ebx, byte [ebx + 0x4b1158]
movzx eax, dl
movzx eax, byte [eax + 0x4b1158]
sub eax, ebx
jne 0x446760
sub edi, dword [ebp - 0x20]
test dl, dl
je 0x4467b8
movzx eax, byte [edi + ecx + 1]
movzx ebx, byte [eax + 0x4b1158]
mov dl, byte [ecx + 1]
inc ecx
movzx eax, dl
movzx eax, byte [eax + 0x4b1158]
sub eax, ebx
je 0x44673e
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp - 0x34]
jl 0x446702
mov ecx, dword [ebp - 0x28]
mov al, byte [ecx]
movzx edx, al
movzx edx, byte [edx + 0x4b1158]
sub edx, 0x73
jne 0x44680a
mov edx, 0x4b5780
sub edx, ecx
mov edi, edi
test al, al
je 0x44682b
mov al, byte [ecx + 1]
movzx esi, byte [edx + ecx + 1]
movzx esi, byte [esi + 0x4b1158]
inc ecx
movzx edi, al
movzx edi, byte [edi + 0x4b1158]
sub edi, esi
je 0x446790
jmp 0x44680a
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x446763
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax + 0x10]
add esi, esi
mov eax, dword [ecx + esi*8 + 0xc]
push edx
add eax, 8
call fcn.00408620
add esp, 8
test eax, eax
je 0x446763
cmp dword [eax + 8], 0
je 0x446763
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x4b6390
push ecx
call fcn.00442da0
add esp, 0x18
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 4
jle 0x4466d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a3bc8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
mov esi, dword [ecx + 0x10]
test ebx, ebx
jne 0x446840
neg esi
sbb esi, esi
mov eax, esi
jmp 0x446884
test esi, esi
je 0x44680a
movzx eax, byte [esi]
movzx edi, byte [eax + 0x4b1158]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x4b1158]
sub eax, edi
mov ecx, ebx
jne 0x446884
sub esi, ebx
test dl, dl
je 0x446884
movzx eax, byte [esi + ecx + 1]
movzx edi, byte [eax + 0x4b1158]
mov dl, byte [ecx + 1]
inc ecx
movzx eax, dl
movzx eax, byte [eax + 0x4b1158]
sub eax, edi
je 0x446862
test eax, eax
jne 0x44680a
mov ecx, 0x4b664c
jmp 0x4466f5