Function at 0x1012a1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10331c40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
push esi
push edi
mov edi, ecx
jne 0x1012a5a9
mov esi, dword [0x1020a080]
test esi, esi
je 0x1012a5a9
mov eax, dword [0x10332e40]
test al, 1
jne 0x1012a23c
or eax, 1
mov dword [0x10332e40], eax
mov eax, dword [0x10332e34]
mov dword [0x10332e3c], eax
jmp 0x1012a241
mov eax, dword [0x10332e3c]
cmp dword [eax + esi], 0
jne 0x1012a5a9
mov eax, dword [0x10332e48]
test al, 1
jne 0x1012a268
or eax, 1
mov dword [0x10332e48], eax
mov eax, dword [0x10332e30]
mov dword [0x10332e44], eax
jmp 0x1012a26d
mov eax, dword [0x10332e44]
cmp dword [eax + esi], 0
jle 0x1012a5a9
cmp byte [0x10326420], 0
movss xmm1, dword [0x101bb974]
je 0x1012a3cc
movss xmm0, dword [0x10326440]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x1032643c]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10326438]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [0x10326434]
mulss xmm0, xmm1
mov dword [ebp - 0xc], eax
movd xmm1, dword [0x10326454]
mov eax, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x10], eax
mulss xmm1, dword [0x101bb8dc]
movss dword [ebp - 0x1c], xmm1
cmp eax, dword [edi]
jle 0x1012a3c2
movzx ecx, cl
lea eax, [eax + eax*4]
mov dword [ebp - 0x34], ecx
movaps xmm2, xmm1
xorps xmm2, xmmword [0x101bba40]
movzx ecx, dl
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x38], ecx
movzx ecx, dl
cvttss2si edx, xmm0
mov dword [ebp - 0x14], ecx
shl eax, 2
mov dword [ebp - 0xc], eax
movss dword [ebp - 0x20], xmm2
movzx ecx, dl
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
mov ecx, dword [0x10332c98]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x34]
mov eax, dword [ecx]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x18]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x50], xmm1
mov ecx, dword [0x10332c98]
push eax
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x48], xmm1
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm2
call edx
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], 0x14
dec eax
movss xmm1, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp eax, dword [edi]
jg 0x1012a330
mov dword [esi + 0x11c5c], 0
mov eax, dword [esi + 0x11c5c]
cmp eax, dword [edi]
je 0x1012a3d8
mov dword [edi], eax
cmp dword [0x10326458], 0
je 0x1012a5a9
xor esi, esi
add edi, 8
mov dword [ebp - 0x10], esi
nop dword [eax]
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi - 4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1012a599
mov ecx, dword [0x10332c94]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x1012a590
mov eax, dword [0x1020a080]
cmp edx, eax
sete byte [ebp - 5]
je 0x1012a47f
mov eax, dword [0x10333088]
test al, 1
jne 0x1012a450
mov ecx, dword [0x10333080]
or eax, 1
mov dword [0x10333088], eax
mov dword [0x10333084], ecx
jmp 0x1012a456
mov ecx, dword [0x10333084]
mov edx, dword [ecx + edx]
test al, 1
jne 0x1012a471
mov ecx, dword [0x10333080]
or eax, 1
mov dword [0x10333088], eax
mov dword [0x10333084], ecx
mov eax, dword [0x1020a080]
cmp edx, dword [ecx + eax]
je 0x1012a47f
mov al, 1
jmp 0x1012a481
xor al, al
cmp byte [ebp - 5], 0
je 0x1012a490
movups xmm0, xmmword [0x10326480]
jmp 0x1012a4a4
test al, al
jne 0x1012a49d
movups xmm0, xmmword [0x10326470]
jmp 0x1012a4a4
movups xmm0, xmmword [0x10326460]
movss xmm1, dword [0x101bb974]
movups xmmword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, xmm1
mov dword [ebp - 0x18], eax
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm1
mov dword [ebp - 0x20], ecx
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm1
mov dword [ebp - 0x1c], edx
cvttss2si eax, xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [0x1032645c]
sub eax, 0
je 0x1012a53c
sub eax, 1
jne 0x1012a590
mov ecx, dword [0x10332c98]
mov edx, dword [edi]
push ecx
mov dword [esp], 0x40400000
push eax
mov eax, dword [ebp - 0x20]
mov esi, dword [ecx]
movzx eax, al
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
push eax
cvttss2si eax, xmm0
movzx eax, al
push eax
lea eax, [edx - 0xc]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
mov esi, dword [ebp - 0x10]
jmp 0x1012a590
mov eax, dword [ebp - 0x18]
movzx eax, al
shl eax, 8
movzx ecx, cl
or eax, ecx
movzx ecx, dl
mov edx, dword [edi]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x14]
shl eax, 8
movq xmm0, qword [edx - 0xc]
movzx ecx, cl
or eax, ecx
push eax
mov eax, dword [edx - 4]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [edx - 0x18]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [edx - 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.10127840
add esp, 0x1c
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x1012a599
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 0x10], esi
cmp esi, 0x41
jl 0x1012a3f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101556c2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4