Function at 0x4407b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
test ebx, ebx
je 0x440a12
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
movzx eax, dl
lea esi, [eax*4]
xor eax, 1
mov dword [ebp + 0x10], esi
lea eax, [edi + eax*4]
mov dword [ebp - 8], eax
mov esi, 0
cmp dl, 1
jne 0x440805
bsf eax, ebx
jmp 0x440808
bsr eax, ebx
mov edx, dword [ebp - 8]
cmovne esi, eax
mov eax, dword [ebp - 0x10]
btc ebx, esi
bts eax, esi
mov dword [edi + 0xc], eax
mov edx, dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x451138]
add eax, esi
mov eax, dword [eax*4 + 0x450f38]
mov dword [ebp - 0x18], eax
test dword [eax*4 + 0x451150], edx
je 0x440897
mov edi, dword [ebp + 0x10]
add eax, dword [edi + 0x451138]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax*4 + 0x450f38]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
test dword [ecx*4 + 0x451150], eax
mov ecx, dword [ebp - 4]
je 0x440897
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 5
add eax, esi
mov dword [ecx + 8], eax
mov eax, dword [esi*4 + 0x451150]
test dword [edi + 8], eax
setne al
movzx eax, al
push eax
push dword [ebp - 0x18]
push 0
push edx
push edi
push dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x450d78]
add eax, esi
mov eax, dword [eax*4 + 0x450f38]
mov dword [ebp - 0x18], eax
test dword [eax*4 + 0x451150], edx
je 0x4408fe
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x450d78]
mov ecx, dword [ebp - 4]
mov edx, dword [eax*4 + 0x450f38]
mov eax, dword [edx*4 + 0x451150]
test dword [edi + 0xc], eax
je 0x4408fe
mov eax, edx
shl eax, 5
add eax, esi
mov dword [ecx + 8], eax
mov eax, dword [esi*4 + 0x451150]
test dword [edi + 8], eax
setne al
movzx eax, al
push eax
push dword [ebp - 0x18]
push 0
push edx
push edi
push dword [ebp + 8]
call fcn.00409570
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [edi + 8], eax
je 0x4409f0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x450e14]
add eax, esi
mov edx, dword [eax*4 + 0x450f38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
test dword [edx*4 + 0x451150], ecx
je 0x440987
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x450e14]
mov edi, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax*4 + 0x450f38]
mov dword [ebp - 0xc], eax
mov eax, dword [eax*4 + 0x451150]
test dword [edi + 0xc], eax
je 0x440987
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
shl eax, 5
add eax, esi
mov dword [ecx + 8], eax
mov eax, dword [esi*4 + 0x451150]
test dword [edi + 8], eax
setne al
movzx eax, al
push eax
push edx
push 0
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x450ea8]
add eax, esi
mov edx, dword [eax*4 + 0x450f38]
test dword [edx*4 + 0x451150], ecx
je 0x4409f0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x450ea8]
add eax, edx
mov ecx, dword [eax*4 + 0x450f38]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx*4 + 0x451150]
test dword [edi + 0xc], eax
je 0x4409f0
mov eax, ecx
mov ecx, dword [ebp - 4]
shl eax, 5
add eax, esi
mov dword [ecx + 8], eax
mov eax, dword [esi*4 + 0x451150]
test dword [edi + 8], eax
setne al
movzx eax, al
push eax
push edx
push 0
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edi + 0xc], eax
test ebx, ebx
jne 0x4407f6
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov eax, dword [ecx + 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc