Function at 0x100161b5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov edx, dword [0x10025578]
push ebx
push esi
imul esi, edx, 0x2ee9d688
xor ebx, ebx
push edi
push 0x40
mov dword [ebp - 0x2c], ecx
mov eax, ebx
pop edi
mov dword [ebp - 0x24], esi
mov dword [0x100253ec], esi
inc eax
cmp eax, 0xee4
je 0x1001620f
cmp byte [eax + str.invalid_new_image_size], bl
jne 0x100161e0
cmp eax, 0x524
jg 0x1001620f
mov eax, dword [0x10025378]
mov esi, edx
or esi, 0xf7159bf6
mov dword [ebp - 0x24], esi
mov dword [0x100253ec], esi
jmp 0x1001621b
call fcn.100158f0
mov eax, esi
and eax, 0x3488f577
mov dword [ebp - 0x3c], 0x15
mov ecx, ebx
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 0x34], 0xffffffa2
add edi, dword [ebp + ecx*4 - 0x3c]
inc ecx
cmp ecx, 3
jl 0x10016232
imul edx, eax, 0xc7838bec
mov esi, str.invalid_new_image_size
mov dword [ebp - 0x40], edi
mov cl, 0x69
mov dword [ebp - 0x1c], edx
sub cl, 0x30
cmp cl, 9
ja 0x10016260
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x1001624f
jmp 0x10016266
lea eax, [edx + 0x77d97f8]
add eax, 0x7b5b36fa
mov dword [ebp - 0x28], eax
mov dword [0x10025378], eax
call fcn.10015a16
mov esi, str.valled_aosta
mov dword [ebp - 0x14], 0xcdaea2de
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], 0xc900ab03
mov byte [ebp - 0xc], 0xa0
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, ebx
mov byte [ebp + eax - 0x148], al
inc eax
cmp eax, 0x100
jb 0x1001629a
mov esi, ebx
xor edx, edx
mov bl, byte [ebp + esi - 0x148]
push 0xc
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x3c]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x148]
mov byte [ebp + esi - 0x148], al
inc esi
mov byte [ebp + edi - 0x148], bl
cmp esi, 0x100
jb 0x100162ab
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [edi - 0x4623e5e2]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x48], eax
push 0x46
mov edx, 0xc6a
mov eax, str.Failed_to_create_locallow_installation_directory_B_dir_s
pop ecx
add edx, ecx
inc eax
cmp edx, 0x1cce
ja 0x10016323
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1001630f
jmp 0x1001633e
call fcn.10015ead
sub esi, 0x635357d5
mov dword [0x10025378], esi
mov eax, esi
and eax, 0x10ba3fa9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
inc eax
movzx eax, al
mov dword [ebp - 4], eax
mov eax, ebx
inc eax
cmp eax, 0x1bd5
jg 0x1001635c
cmp byte [eax + str.invalid_new_image_size], bl
jne 0x1001634a
jmp 0x10016370
call fcn.10015c93
mov esi, dword [ebp - 0x1c]
or esi, 0x4621ba3b
mov dword [0x10025378], esi
lea eax, [edi + 0x3135339b]
mov edx, 0x1c16
push 0x69
mov dword [ebp - 0x28], eax
mov eax, str.invalid_new_image_size
pop ecx
add edx, ecx
inc eax
cmp edx, 0x1936
ja 0x1001639d
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10016386
mov eax, dword [ebp - 0x28]
jmp 0x100163a3
lea eax, [edi + 0x2804ac21]
mov edi, dword [ebp - 0x48]
imul eax, eax, 0xd00f5b62
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
mov dword [0x10025578], eax
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax - 0x148]
mov eax, dword [ebp - 0x20]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 0x20], eax
mov al, byte [ebp + eax - 0x148]
mov byte [ebp + edi - 0x148], al
mov eax, dword [ebp - 0x20]
mov byte [ebp + eax - 0x148], cl
mov eax, edi
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
movzx eax, byte [ebp + eax - 0x148]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x148]
xor al, byte [ebp + ecx - 0x14]
mov byte [ebp + ecx - 0x3c], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 9
jb 0x10016302
push 0x17
lea eax, [esi + 0xfefb7e3]
mov byte [ebp - 0x33], bl
pop edx
mov dword [ebp - 0x18], 0xb
mov ecx, ebx
mov dword [ebp - 0x14], 0x11
mov dword [ebp - 0x10], 0x63
mov dword [ebp - 0xc], 0xffffff6a
mov dword [0x100254b4], eax
add edx, dword [ebp + ecx*4 - 0x18]
inc ecx
cmp ecx, 4
jl 0x10016447
mov dword [ebp - 0x18], 0x2e
mov dword [ebp - 0x14], 0x27
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0xffffff87
movups xmm1, xmmword [ebp - 0x18]
push 0x1c
pop edi
push dword [ebp - 0x2c]
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd esi, xmm1
push edx
add esi, edi
call fcn.100161ab
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
push eax
call fcn.1001e0ae
call eax
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10016523
push 0x69
mov ecx, 0x41f
mov eax, str.invalid_new_image_size
pop edx
mov esi, dword [0x100253ec]
add ecx, edx
inc eax
cmp ecx, 0xa6e
ja 0x100164d7
movsx edx, byte [eax]
test edx, edx
jne 0x100164bd
jmp 0x100164de
mov ecx, esi
call fcn.10015e24
xor esi, 0x78269c47
mov dword [0x100253ec], esi
xor esi, 0x747f7486
mov dword [0x10025378], esi
call fcn.10015fad
push 2
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0xffffffe2
add edi, dword [ebp + ebx*4 - 0x44]
inc ebx
cmp ebx, eax
jl 0x10016508
push dword [ebp - 0x2c]
push edi
push dword [ebp - 8]
call fcn.10016891
mov eax, dword [ebp - 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret