Function at 0x4169d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.004127e0
add esp, 8
test al, al
je 0x4169f1
mov al, 1
pop esi
add esp, 0x20
ret
mov edx, dword [0x4289f0]
mov eax, dword [0x4289e4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x30]
push esi
push edx
push eax
push ecx
push esi
call fcn.004139a0
mov eax, dword [esp + 0x44]
add esp, 0x18
test eax, eax
jne 0x416a21
mov al, 1
pop esi
add esp, 0x20
ret
push ebx
push ebp
push edi
push eax
push esi
call fcn.00412860
mov edx, dword [0x4289fc]
mov dword [esp + 0x1c], eax
lea eax, [edx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [0x4289fc]
mov esi, eax
mov dword [esp + 0x24], esi
lea edx, [ecx*4 + 4]
push edx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [0x4289fc]
mov dword [esp + 0x2c], edi
lea ecx, [eax*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x50]
and esi, 0xff
mov dword [esp + 0x3c], edi
mov edi, 2
mov dword [esp + 0x34], eax
lea ecx, [esi - 1]
mov dword [esp + 0x40], eax
shl edi, cl
dec edi
lea edx, [edi*8]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, eax
mov eax, dword [0x428a0c]
add esp, 0x18
mov dword [esp + 0x10], ecx
mov dword [ecx], eax
mov edx, dword [0x428a08]
mov dword [ecx + 4], edx
mov edx, 1
cmp edi, edx
jbe 0x416b03
mov ebx, 0xfffffff8
lea eax, [ecx + 0xc]
sub ebx, ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x40]
lea ebp, [edx - 1]
imul ebp, dword [0x4289fc]
lea ebp, [ebx + ebp*8]
mov dword [eax - 4], ebp
mov ebp, dword [esp + 0x3c]
add ebp, eax
add eax, 8
imul ebp, dword [0x4289fc]
add ebp, ebx
inc edx
mov dword [eax - 8], ebp
cmp edx, edi
jb 0x416ad9
mov eax, dword [0x428a00]
xor edx, edx
xor ebp, ebp
lea eax, [esi + eax - 1]
div esi
test eax, eax
mov dword [esp + 0x3c], eax
jbe 0x416b64
xor ebx, ebx
xor edi, edi
test esi, esi
jbe 0x416b59
mov ecx, esi
mov edx, dword [esp + 0x14]
sub ecx, edi
mov eax, dword [esp + 0x34]
imul ecx, dword [esp + 0x3c]
sub ecx, ebp
push ecx
push edx
push eax
call fcn.004169a0
and eax, 0xff
lea ecx, [ebx + ebx]
add esp, 0xc
or eax, ecx
inc edi
mov ebx, eax
cmp edi, esi
jb 0x416b22
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x416b68
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jb 0x416b1a
jmp 0x416b68
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x24]
lea eax, [ecx + ebx*8 - 8]
push edx
push eax
call fcn.00415630
mov eax, dword [esp + 0x44]
add esp, 8
inc ebp
cmp ebp, eax
jae 0x416bf4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00415910
add esp, 8
xor ebx, ebx
xor edi, edi
test esi, esi
jbe 0x416beb
mov eax, esi
mov ecx, dword [esp + 0x14]
sub eax, edi
mov edx, dword [esp + 0x34]
imul eax, dword [esp + 0x3c]
sub eax, ebp
push eax
push ecx
push edx
call fcn.004169a0
and eax, 0xff
lea ecx, [ebx + ebx]
add esp, 0xc
or eax, ecx
inc edi
mov ebx, eax
cmp edi, esi
jb 0x416b9d
test ebx, ebx
je 0x416beb
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x28]
lea ecx, [eax + ebx*8 - 8]
push ecx
push edx
call fcn.00415f90
add esp, 0xc
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jb 0x416b83
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004156d0
mov edx, dword [esp + 0x18]
mov bl, al
neg bl
sbb ebx, ebx
push edx
neg ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x34]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 0x18
mov al, bl
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret