Function at 0x101c3ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10200ded
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x103b9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov esi, dword [edi]
mov ecx, esi
push 0x18
mov dword [ebp - 0x28], 0
mov eax, dword [esi]
call dword [eax]
mov dword [ebp - 0x50], eax
mov dword [eax], esi
mov dword [ebp - 4], 0
mov ecx, eax
push dword [edi + 0x40]
push dword [edi + 0x3c]
call fcn.10199b10
mov edx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
mov dword [ebp - 0x4c], edx
mov ebx, dword [edx + 0x10]
mov dword [edx], ecx
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x101c3d51
mov dword [ebp - 4], 2
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov dword [ebp - 4], 0xffffffff
push dword [edi + 0x40]
mov eax, dword [edi]
push dword [edi + 0x3c]
push str.Generic_region_decoding_procedure:_Create_Image_Failed_with_width___d__height___d_n
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x3c]
xor edi, edi
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], edi
lea edx, [esi + 7]
shr edx, 3
lea ecx, [eax + eax]
dec edx
mov dword [ebp - 0x1c], edx
lea eax, [edx*8]
sub esi, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], esi
cmp dword [eax + 0x40], edi
jbe 0x101c40ac
mov esi, dword [ebp - 0x48]
mov eax, ebx
sub eax, esi
mov ebx, esi
sub ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], ebx
lea ecx, [edx + esi]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x48], 0
mov ebx, dword [ebp + 0xc]
je 0x101c3dc8
lea eax, [ebx + 0x728]
mov ecx, edx
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
xor ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
jmp 0x101c3dcb
mov ecx, dword [ebp - 0x28]
cmp ecx, 1
jne 0x101c3e1f
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x101c408b
lea esi, [edi - 1]
test esi, esi
js 0x101c3e07
cmp esi, dword [ecx + 8]
jge 0x101c3e07
mov ecx, dword [ecx + 0xc]
mov edx, ecx
push ecx
imul edx, esi
imul ecx, edi
add edx, eax
add ecx, eax
call fcn.100a43b0
add esp, 4
jmp 0x101c408b
mov ecx, dword [ecx + 0xc]
xor edx, edx
push ecx
imul ecx, edi
add ecx, eax
call fcn.100a44c0
add esp, 4
jmp 0x101c408b
cmp edi, 1
jbe 0x101c3f80
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], 0
movzx edi, byte [ecx + eax]
inc eax
mov dword [ebp - 0x30], eax
add edi, edi
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
mov eax, edi
mov esi, ecx
and eax, 0x380
shr esi, 3
and esi, 0x7c
or esi, eax
cmp dword [ebp - 0x1c], 0
jle 0x101c3efb
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
shl edi, 7
shl ecx, 8
movzx eax, byte [eax]
or edi, eax
mov dword [ebp - 0x34], 7
mov eax, dword [ebp - 0x30]
add edi, edi
inc dword [ebp - 0x30]
movzx eax, byte [eax]
or ecx, eax
xor al, al
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xd], al
nop
lea eax, [ebx + esi*8]
mov ecx, edx
push eax
call fcn.101c29e0
mov ebx, eax
and esi, 0x1bd
mov eax, dword [ebp - 0x34]
mov dl, bl
mov ecx, eax
add esi, esi
shl dl, cl
or byte [ebp - 0xd], dl
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 3]
shr edx, cl
mov eax, edi
mov ecx, dword [ebp - 0x34]
and edx, 4
shr eax, cl
and eax, 0x80
or edx, eax
or esi, edx
mov edx, dword [ebp + 8]
or esi, ebx
mov ebx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp - 0x34], ecx
jns 0x101c3e90
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 0xd]
mov byte [edx + ecx], al
inc edx
cmp edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 8]
jl 0x101c3e62
shl ecx, 8
xor al, al
shl edi, 8
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x34], 0
jle 0x101c407f
mov dword [ebp - 0x30], 7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*8]
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x30]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dl, bl
dec dword [ebp - 0x30]
and esi, 0x1bd
shl dl, cl
add esi, esi
or byte [ebp - 0xd], dl
mov ecx, 7
sub ecx, dword [ebp - 0x34]
mov edx, edi
shr edx, cl
mov ecx, 0xa
sub ecx, dword [ebp - 0x34]
and edx, 0x80
shr eax, cl
and eax, 4
or edx, eax
mov eax, dword [ebp - 0x34]
or esi, edx
inc eax
or esi, ebx
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x20]
jl 0x101c3f21
jmp 0x101c407c
mov ecx, eax
mov eax, edi
and eax, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
je 0x101c3f9b
mov ecx, dword [ebp - 0x14]
movzx edi, byte [ecx]
inc ecx
mov dword [ebp - 0x34], ecx
jmp 0x101c3f9d
xor edi, edi
mov esi, edi
mov dword [ebp - 0x40], 0
shr esi, 3
and esi, 0x7c
cmp dword [ebp - 0x1c], 0
jle 0x101c4023
test eax, eax
je 0x101c3fc6
movzx eax, byte [ecx]
shl edi, 8
or edi, eax
inc ecx
mov dword [ebp - 0x34], ecx
xor al, al
mov ebx, 7
mov byte [ebp - 0xd], al
mov eax, dword [ebp + 0xc]
mov ecx, edx
lea eax, [eax + esi*8]
push eax
call fcn.101c29e0
mov ecx, ebx
mov dl, al
shl dl, cl
and esi, 0x1bd
or byte [ebp - 0xd], dl
lea ecx, [ebx + 3]
mov edx, edi
add esi, esi
shr edx, cl
and edx, 4
or esi, edx
mov edx, dword [ebp + 8]
or esi, eax
sub ebx, 1
jns 0x101c3fd0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0xd]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x34]
jl 0x101c3fb6
xor al, al
shl edi, 8
xor ebx, ebx
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x20], ebx
jle 0x101c407f
mov dword [ebp - 0x34], 7
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*8]
push eax
call fcn.101c29e0
mov ecx, dword [ebp - 0x34]
mov dl, al
dec dword [ebp - 0x34]
and esi, 0x1bd
shl dl, cl
add esi, esi
or byte [ebp - 0xd], dl
mov ecx, 0xa
sub ecx, ebx
mov edx, edi
shr edx, cl
inc ebx
and edx, 4
or esi, edx
or esi, eax
cmp ebx, dword [ebp - 0x20]
jl 0x101c4040
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x38]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x48]
inc edi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x24], ecx
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], edi
cmp edi, dword [ecx + 0x40]
jb 0x101c3da1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8