Function at 0x101c3430
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 0x101c34e1
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 0x101c383c
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 0x101c3558
lea eax, [ebx + 0x3ca8]
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 0x101c355b
mov ecx, dword [ebp - 0x28]
cmp ecx, 1
jne 0x101c35af
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x101c381b
lea esi, [edi - 1]
test esi, esi
js 0x101c3597
cmp esi, dword [ecx + 8]
jge 0x101c3597
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 0x101c381b
mov ecx, dword [ecx + 0xc]
xor edx, edx
push ecx
imul ecx, edi
add ecx, eax
call fcn.100a44c0
add esp, 4
jmp 0x101c381b
cmp edi, 1
jbe 0x101c3713
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], 0
movzx edi, byte [ecx + eax]
inc eax
mov dword [ebp - 0x30], eax
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
shl edi, 4
movzx ecx, byte [eax]
mov eax, edi
mov esi, ecx
and eax, 0x1e00
shr esi, 1
and esi, 0x1f8
or esi, eax
cmp dword [ebp - 0x1c], 0
jle 0x101c368e
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
shl edi, 4
shl ecx, 8
movzx eax, byte [eax]
or edi, eax
mov dword [ebp - 0x34], 7
mov eax, dword [ebp - 0x30]
inc dword [ebp - 0x30]
shl edi, 4
movzx eax, byte [eax]
or ecx, eax
xor al, al
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xd], al
lea eax, [ebx + esi*8]
mov ecx, edx
push eax
call fcn.101c29e0
mov ebx, eax
and esi, 0xefb
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 + 1]
shr edx, cl
mov eax, edi
mov ecx, dword [ebp - 0x34]
and edx, 8
shr eax, cl
and eax, 0x200
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 0x101c3623
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 0x101c35f5
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 0x101c380f
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, 0xefb
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, 8
sub ecx, dword [ebp - 0x34]
and edx, 0x200
shr eax, cl
and eax, 8
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 0x101c36b4
jmp 0x101c380c
mov ecx, eax
mov eax, edi
and eax, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
je 0x101c372e
mov ecx, dword [ebp - 0x14]
movzx edi, byte [ecx]
inc ecx
mov dword [ebp - 0x34], ecx
jmp 0x101c3730
xor edi, edi
mov esi, edi
mov dword [ebp - 0x40], 0
shr esi, 1
and esi, 0x1f8
cmp dword [ebp - 0x1c], 0
jle 0x101c37b4
test eax, eax
je 0x101c3757
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, 0xefb
or byte [ebp - 0xd], dl
lea ecx, [ebx + 1]
mov edx, edi
add esi, esi
shr edx, cl
and edx, 8
or esi, edx
mov edx, dword [ebp + 8]
or esi, eax
sub ebx, 1
jns 0x101c3761
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 0x101c3747
xor al, al
shl edi, 8
xor ebx, ebx
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x20], ebx
jle 0x101c380f
mov dword [ebp - 0x34], 7
nop word [eax + 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, 0xefb
shl dl, cl
add esi, esi
or byte [ebp - 0xd], dl
mov ecx, 8
sub ecx, ebx
mov edx, edi
shr edx, cl
inc ebx
and edx, 8
or esi, edx
or esi, eax
cmp ebx, dword [ebp - 0x20]
jl 0x101c37d0
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 0x101c3531
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