Function at 0x44ecd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
mov ecx, dword [0x55c624]
push ebx
push ebp
push esi
mov esi, eax
and esi, 0x7f
push edi
mov ebx, eax
lea edi, [eax*4]
mov eax, dword [ecx + esi*4 + 0x504]
mov edx, dword [ecx + esi*4 + 0x104]
sar ebx, 7
push eax
push 0xe
mov dword [esp + 0x44], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x48], edi
call fcn.00498c80
mov ecx, dword [0x4e6ea4]
add esp, 8
mov dword [ecx + edi], eax
mov edx, dword [0x4e6ea4]
mov ecx, dword [0x55c624]
mov eax, dword [edx + edi]
mov ebp, dword [ecx + esi*4 + 0x104]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + esi*4 + 0x504]
mov ecx, dword [esi*4 + 0x4e9e40]
test ecx, ecx
mov dword [esp + 0x24], ebp
jne 0x44eed0
push eax
push 0xe
call fcn.00498c80
mov dword [esi*4 + 0x4e9e40], eax
mov dword [esp + 0x1c], eax
mov eax, 0x400000
add esp, 8
cdq
idiv esi
mov dword [esp + 0x48], eax
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov edx, eax
shr ecx, 0x10
and edx, 0xffff
mov dword [esp + 0x30], eax
test esi, esi
mov dword [esp + 0x20], eax
jle 0x44eed0
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x48]
xor ebx, ebx
mov bl, byte [ebp + 1]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov bl, byte [ebp]
imul edi, ebx
mov ebx, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [0x55c624]
shl ecx, 8
add ecx, dword [ebx]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x44ee9f
mov eax, edx
mov dword [esp + 0x18], ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x34]
mov ecx, edi
mov eax, edi
shr ecx, 0x10
and eax, 0xffff
lea esi, [edx + ecx*4]
cdq
mov ebx, dword [esi]
and edx, 0xff
add eax, edx
mov ebp, eax
mov eax, dword [esi + 4]
sub eax, ebx
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x104]
sar ebp, 8
sar ecx, 8
imul ecx, ebp
add ecx, ebx
mov ebx, dword [esi + 0x100]
sub eax, ebx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
imul eax, ebp
sub eax, ecx
add eax, ebx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
imul eax, dword [esp + 0x38]
add eax, ecx
imul eax, dword [esp + 0x1c]
shl eax, 2
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 1
add ecx, 0x8000
sar ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x48]
inc eax
add edi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x44edec
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
add eax, ecx
add ebp, 2
mov ecx, eax
mov edx, eax
shr ecx, 0x10
and edx, 0xffff
dec edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
jne 0x44eda0
mov ebx, dword [esp + 0x3c]
mov eax, 0x400000
cdq
idiv esi
mov ebp, eax
cdq
sub eax, edx
mov dword [esp + 0x48], ebp
sar eax, 1
mov edi, eax
mov dword [esp + 0x3c], eax
mov ecx, edi
and eax, 0xffff
shr ecx, 0x10
test esi, esi
mov dword [esp + 0x24], edi
jle 0x44f005
lea edx, [ebx*4 + 4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], edx
jmp 0x44ef14
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
xor ebx, ebx
shl ecx, 6
mov bl, byte [edx + 1]
mov esi, ebx
xor ebx, ebx
mov bl, byte [edx]
mov edx, dword [esp + 0x3c]
imul ebp, ebx
mov ebx, dword [esp + 0x38]
add ebp, edx
mov edx, dword [0x55c624]
mov ebx, dword [edx + ebx]
add ebx, ecx
test esi, esi
je 0x44efd5
cdq
and edx, 0xff
mov dword [esp + 0x28], esi
add eax, edx
sar eax, 8
mov dword [esp + 0x34], eax
mov eax, ebp
xor edx, edx
shr eax, 0x10
add eax, ebx
xor ecx, ecx
mov esi, ebp
mov dl, byte [eax]
mov cl, byte [eax + 1]
and esi, 0xffff
sub ecx, edx
imul ecx, esi
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dl, byte [eax + 0x40]
mov edi, edx
xor edx, edx
mov dl, byte [eax + 0x41]
mov eax, edx
sub eax, edi
imul eax, esi
shl edi, 0x10
add eax, edi
sub eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, eax
shl ecx, 5
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
sar eax, 0x18
mov byte [ecx], al
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x48]
add ebp, ecx
dec eax
mov dword [esp + 0x28], eax
jne 0x44ef5a
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add edi, eax
mov ecx, edi
mov eax, edi
shr ecx, 0x10
and eax, 0xffff
add esi, 2
dec edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], edx
jne 0x44ef10
mov edx, dword [0x4e6ea4]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov eax, dword [edx + eax]
pop ebp
pop ebx
add esp, 0x34
ret