Function at 0x41e5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x68
mov eax, dword [0x886f80]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov ecx, eax
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x74]
sub esp, 0x10
shl ecx, 5
mov dword [esp + 0x40], eax
mov eax, esp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], esi
movups xmm0, xmmword [ecx + edi + 0x34]
mov byte [esp + 0x5b], 0
mov dword [esp + 0x4c], ecx
movups xmmword [eax], xmm0
call fcn.00409ef0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x41e87f
mov ecx, dword [esp + 0x40]
sub esp, 0x10
shl esi, 5
mov eax, esp
mov dword [esp + 0x54], esi
movups xmm0, xmmword [esi + ecx + 0x34]
movups xmmword [eax], xmm0
call fcn.00409ef0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
je case.0x41e769.11
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
movups xmm0, xmmword [edx + edi + 0x34]
movups xmm1, xmmword [esi + eax + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
psrldq xmm1, 0xc
mov cl, byte [eax + 0x11]
movd eax, xmm1
cmp cl, byte [eax + 0x11]
jne case.0x41e769.11
movups xmm0, xmmword [edx + edi + 0x34]
xor esi, esi
mov edx, dword [esp + 0x30]
imul ecx, dword [edi + 0x18], 0x19
psrldq xmm0, 0xc
movd eax, xmm0
add ecx, edx
movzx eax, byte [eax + 0x11]
or eax, dword [ecx*4 + 0x50b42c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
add eax, 0x44
add eax, edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
add eax, 0x44
add eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
push edx
push edi
call fcn.00409fc0
add esp, 8
cmp esi, eax
jae 0x41e7b7
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
movzx eax, byte [eax]
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
movzx eax, cx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax]
mov dword [esp + 0x68], edx
mov edi, dword [edi + eax*8]
mov dword [esp + 0x44], edi
mov edi, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff6
mov dword [esp + 0x28], edi
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x2c]
cmp eax, 0xb6
ja case.0x41e769.11
movzx eax, byte [eax + 0x41ea8c]
jmp dword [eax*4 + 0x41ea6c]
push dword [esp + 0x44]
call fcn.004620c0
push dword [esp + 0x44]
fstp dword [esp + 0x4c]
call fcn.004620c0
movss xmm0, dword [esp + 0x4c]
add esp, 8
fstp dword [esp + 0x40]
movss xmm1, dword [esp + 0x40]
xorps xmm1, xmmword [0x528970]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x41e878
xor al, al
test al, al
je case.0x41e769.11
inc dword [esp + 0x3c]
inc esi
inc dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp esi, 0x10
jb 0x41e6e0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004e5b77
add esp, 0x68
ret
movss xmm1, dword [esp + 0x64]
xorps xmm1, xmmword [0x528970]
movss xmm0, dword [esp + 0x54]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x41e7ad
mov al, 1
jmp 0x41e7af
movsd xmm1, qword [esp + 0x64]
xorps xmm1, xmmword [0x528960]
movsd xmm0, qword [esp + 0x54]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x41e7ad
mov al, 1
jmp 0x41e7af
mov eax, dword [esp + 0x44]
movsx ecx, cl
movsx eax, al
neg ecx
cmp eax, ecx
sete al
jmp 0x41e7af
mov eax, dword [esp + 0x1c]
movsx ecx, ax
mov eax, dword [esp + 0x18]
neg ecx
cwde
cmp eax, ecx
sete al
jmp 0x41e7af
neg ecx
cmp dword [esp + 0x44], ecx
sete al
jmp 0x41e7af
neg ecx
adc edx, 0
neg edx
cmp dword [esp + 0x44], ecx
jne 0x41e7ad
cmp dword [esp + 0x28], edx
jne 0x41e7ad
mov al, 1
jmp 0x41e7af
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [ecx + edi + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov edi, dword [eax]
xor eax, eax
cmp dword [edi + 0xc], eax
cmovne edi, eax
test edi, edi
je 0x41e90a
mov eax, dword [edi + 0x18]
cmp eax, 0xe3
je 0x41e8b8
cmp eax, 0x131
jne 0x41e90a
movups xmm0, xmmword [edi + 0x34]
xor esi, esi
mov byte [esp + 0x4b], 1
push esi
push edi
movups xmmword [esp + 0x64], xmm0
call fcn.00409fc0
add esp, 8
test eax, eax
je 0x41e8fc
mov al, byte [edi + esi + 0x44]
push 0
mov byte [esp + esi + 0x50], al
inc esi
push edi
call fcn.00409fc0
add esp, 8
cmp esi, eax
jb 0x41e8d6
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x38], edx
jmp 0x41e939
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x38], eax
jmp 0x41e939
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [ecx + eax + 0x34]
xor eax, eax
psrldq xmm0, 0xc
movd edx, xmm0
mov dword [esp + 0x38], edx
movzx ecx, byte [edx + 0x10]
test ecx, ecx
je 0x41e939
nop word [eax + eax]
mov byte [esp + eax + 0x4c], al
inc eax
cmp eax, ecx
jb 0x41e930
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
shl esi, 5
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x44], esi
movups xmm0, xmmword [esi + ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov edi, dword [eax]
xor eax, eax
cmp dword [edi + 0xc], eax
cmovne edi, eax
test edi, edi
je 0x41e9c2
mov eax, dword [edi + 0x18]
cmp eax, 0xe3
je 0x41e979
cmp eax, 0x131
jne 0x41e9c2
movups xmm0, xmmword [edi + 0x34]
xor byte [esp + 0x4b], 1
xor esi, esi
push esi
push edi
movups xmmword [esp + 0x10], xmm0
call fcn.00409fc0
add esp, 8
test eax, eax
je 0x41e9b8
nop word [eax + eax]
mov al, byte [edi + esi + 0x44]
push 0
mov byte [esp + esi + 0x60], al
inc esi
push edi
call fcn.00409fc0
add esp, 8
cmp esi, eax
jb 0x41e9a0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
jmp 0x41e9e9
movups xmm0, xmmword [esi + ecx + 0x34]
xor eax, eax
psrldq xmm0, 0xc
movd ecx, xmm0
mov dword [esp + 0x34], ecx
movzx ecx, byte [ecx + 0x10]
test ecx, ecx
je 0x41e9e9
nop
mov byte [esp + eax + 0x5c], al
inc eax
cmp eax, ecx
jb 0x41e9e0
push dword [esp + 0x30]
mov edi, dword [esp + 0x30]
xor esi, esi
push edi
call fcn.00409fc0
add esp, 8
test eax, eax
je 0x41ea41
mov edx, dword [esp + 0x40]
add edi, 0x44
add edi, dword [esp + 0x3c]
add edx, 0x44
add edx, dword [esp + 0x44]
movzx eax, byte [edi]
movzx ecx, byte [edx]
mov al, byte [esp + eax + 0x4c]
cmp al, byte [esp + ecx + 0x5c]
jne case.0x41e769.11
push dword [esp + 0x30]
inc edx
inc esi
push dword [esp + 0x30]
mov dword [esp + 0x30], edx
inc edi
call fcn.00409fc0
mov edx, dword [esp + 0x30]
add esp, 8
cmp esi, eax
jb 0x41ea12
cmp byte [esp + 0x4b], 0
je case.0x41e769.11
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x34]
je 0x41e7cd
mov ecx, dword [esp + 0x6c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004e5b77
add esp, 0x68
ret