Function at 0x41d6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
call 0x41d6d1
pop eax
cmp edx, 0xa8bf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
jbe 0x41d707
cmp eax, 1
jbe 0x41db2e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
jne 0x41d724
jmp 0x41db26
test eax, eax
je 0x41db38
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
je 0x41db26
mov edi, dword [eax]
add dword [esp + 0x24], edi
jmp 0x41d73e
movzx eax, byte [edi]
test al, al
js 0x41d760
mov ecx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
jmp 0x41d7d8
movzx esi, byte [edi + 1]
mov ecx, eax
and ecx, 0x1f
and esi, 0x3f
cmp al, 0xdf
jbe 0x41d7a4
movzx edx, byte [edi + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x41d7b0
movzx eax, byte [edi + 3]
and ecx, 7
shl edx, 6
shl ecx, 0x12
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x41db26
add edi, 4
jmp 0x41d7ba
shl ecx, 6
add edi, 2
or ecx, esi
mov eax, ecx
jmp 0x41d7ba
shl ecx, 0xc
add edi, 3
or edx, ecx
mov eax, edx
mov ecx, dword [esp + 0x1c]
cmp eax, 0x80
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
jae 0x41d855
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ch, al
xor edx, edx
add ch, 0xbf
cmp ch, 0x1a
setb dl
shl edx, 5
or eax, edx
movd xmm0, eax
mov dword [esp + 0x10], eax
mov esi, 0x110001
movss xmm2, xmm0
mov edx, dword [esp + 0xc]
mov eax, 0x110002
lea edi, [esi - 0x110000]
mov ecx, 3
movaps xmmword [esp + 0x30], xmm2
sub eax, esi
cmp edi, 3
cmovae eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
sub ecx, edx
cmp ecx, eax
jb 0x41d90b
cmp edi, 3
lea eax, [esi - 0x10ffff]
mov ecx, 0
mov edi, dword [esp + 0xc]
movaps xmm1, xmm2
cmovae eax, ecx
mov eax, dword [eax*4 + 0x41db4c]
add eax, dword [esp + 0x20]
jmp eax
xor esi, esi
mov ecx, 0x57f
mov edx, 0x57f
mov edi, 0xff
jmp 0x41d87a
mov edx, ecx
sub ecx, esi
jbe 0x41d7ee
shr ecx, 1
xor ebx, ebx
add ecx, esi
cmp dword [ecx*8 + 0x5a1244], eax
setne bl
cmovb ebx, edi
cmp bl, 1
je 0x41d870
movzx esi, bl
cmp esi, 0xff
jne 0x41d8ab
inc ecx
mov esi, ecx
mov ecx, edx
sub ecx, esi
ja 0x41d87a
jmp 0x41d7ee
mov eax, dword [ecx*8 + 0x5a1248]
movdqa xmm0, xmmword [0x59cd20]
mov ecx, eax
xor ecx, 0xd800
add ecx, 0xffef0000
cmp ecx, 0xffef0800
setb cl
cmp eax, 0x110000
sete dl
or dl, cl
mov edx, 0x69
cmovne eax, edx
jne 0x41d8e9
pxor xmm0, xmm0
pshufd xmm1, xmm0, 0x55
mov dword [esp + 0x10], eax
movq qword [esp + 0x14], xmm0
movd esi, xmm1
test esi, esi
je 0x41d922
movsd xmm2, qword [esp + 0x10]
jmp 0x41d7ff
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041c6a0
movaps xmm2, xmmword [esp + 0x34]
add esp, 4
jmp 0x41d830
movss xmm1, dword [esp + 0x10]
movd eax, xmm0
test eax, eax
movss xmm2, xmm1
je 0x41d941
unpcklps xmm2, xmm0
mov esi, 0x110000
jmp 0x41d7ff
mov esi, 0x110001
jmp 0x41d7ff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x59d1f8
push eax
push 1
jmp 0x41db41
push 0x59d1e8
push 0
push 0
call fcn.00425270
add esp, 0xc
ud2