Function at 0x416c40
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 0x416c61
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 0x416c91
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
add esp, 0x18
xor eax, eax
mov dword [esp + 0x10], ecx
test edi, edi
jbe 0x416d53
mov ebx, dword [esp + 0x40]
mov edx, 4
mov ebp, dword [0x4289fc]
imul ebp, eax
lea ebp, [ebx + ebp*8]
mov dword [ecx + edx - 4], ebp
mov ebp, edx
imul ebp, dword [0x4289fc]
add ebp, ebx
inc eax
mov dword [edx + ecx], ebp
add edx, 8
cmp eax, edi
jb 0x416d2d
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 0x416db4
xor ebx, ebx
xor edi, edi
test esi, esi
jbe 0x416da9
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 0x416d72
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x416db8
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jb 0x416d6a
jmp 0x416db8
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x24]
lea eax, [ecx + ebx*8 - 8]
push edx
push eax
call fcn.00415680
mov eax, dword [esp + 0x44]
add esp, 8
inc ebp
cmp ebp, eax
jae 0x416e44
lea ecx, [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00415c50
add esp, 8
xor ebx, ebx
xor edi, edi
test esi, esi
jbe 0x416e3b
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 0x416ded
test ebx, ebx
je 0x416e3b
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.004162e0
add esp, 0xc
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jb 0x416dd3
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004157f0
add esp, 8
test al, al
je 0x416e61
mov ebx, 1
jmp 0x416e79
mov eax, dword [esi]
xor ebx, ebx
push eax
push eax
call fcn.004155e0
mov eax, dword [esi + 4]
push eax
push eax
call fcn.004155e0
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
push edx
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
add esp, 0x10
mov al, bl
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret