Function at 0x63c608
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x28
push ebx
push esi
push edi
test eax, eax
jne 0x63c631
push str.We_need_an_image_previously_created._n
push 1
push dword [ebp + 0x14]
call fcn.006346bc
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0x48]
cmp eax, dword [ecx + 0x10]
jae 0x63c646
push str.Image_has_less_components_than_codestream._n
jmp 0x63c61d
mov eax, dword [ebx + 0x6c]
imul eax, dword [ebx + 0x68]
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
jb 0x63c66b
dec eax
push eax
push ecx
push str.Tile_index_provided_by_the_user_is_incorrect__d__max___d___n
push 1
push dword [ebp + 0x14]
call fcn.006346bc
add esp, 0x14
jmp 0x63c62a
xor edx, edx
mov eax, ecx
div dword [ebx + 0x68]
mov eax, ecx
mov ecx, dword [ebp + 0x10]
mov esi, edx
xor edx, edx
div dword [ebx + 0x68]
mov edx, dword [ebx + 0x5c]
imul edx, esi
mov edi, eax
add edx, dword [ebx + 0x54]
mov dword [ecx], edx
mov ecx, edx
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax]
lea edx, [esi + 1]
cmovb ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov esi, eax
mov dword [eax], ecx
imul edx, dword [ebx + 0x5c]
add edx, dword [ebx + 0x54]
mov dword [esi + 8], edx
mov ecx, edx
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax + 8]
cmova ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0x60]
imul edx, edi
add edx, dword [ebx + 0x58]
mov dword [esi + 4], edx
mov ecx, edx
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax + 4]
lea edx, [edi + 1]
cmovb ecx, dword [eax + 4]
mov dword [esi + 4], ecx
imul edx, dword [ebx + 0x60]
add edx, dword [ebx + 0x58]
mov dword [esi + 0xc], edx
mov ecx, edx
mov eax, dword [ebx + 0x48]
cmp edx, dword [eax + 0xc]
mov edx, dword [esi + 0x18]
cmova ecx, dword [eax + 0xc]
and dword [ebp - 0x14], 0
mov dword [esi + 0xc], ecx
mov edi, dword [ebx + 0x48]
mov dword [ebp - 8], edx
cmp dword [edi + 0x10], 0
jbe 0x63c856
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ecx + 0x28]
mov dword [edx + 0x28], eax
mov dword [ebp - 4], eax
mov eax, dword [edx]
cdq
mov ebx, eax
mov ecx, edx
mov eax, dword [esi]
cdq
add eax, ebx
mov dword [ebp - 0x10], ebx
push ecx
adc edx, ecx
mov dword [ebp - 0x1c], ecx
sub eax, 1
push ebx
sbb edx, 0
push edx
push eax
call fcn.00722a90
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 4]
cdq
mov edi, eax
mov esi, edx
mov eax, dword [ebx + 4]
cdq
add eax, edi
push esi
adc edx, esi
sub eax, 1
push edi
sbb edx, 0
push edx
push eax
call fcn.00722a90
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push esi
push edi
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0xc]
cdq
add eax, edi
adc edx, esi
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00722a90
mov ecx, dword [ebp - 4]
xor ebx, ebx
bts ebx, ecx
xor esi, esi
mov edi, eax
cmp ecx, 0x20
mov eax, dword [ebp + 0x10]
cmovae esi, ebx
xor ebx, esi
cmp ecx, 0x40
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
cmovae esi, ebx
cdq
add eax, dword [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
adc edx, ecx
mov dword [ebp - 0xc], esi
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00722a90
cdq
add eax, ebx
adc edx, esi
mov ecx, dword [ebp - 4]
sub eax, 1
sbb edx, 0
call fcn.00724570
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 0x20]
cdq
add eax, ebx
adc edx, dword [ebp - 0xc]
sub eax, 1
sbb edx, 0
call fcn.00724570
mov ecx, dword [ebp - 4]
sub esi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x24]
cdq
add eax, ebx
adc edx, dword [ebp - 0xc]
sub eax, 1
sbb edx, 0
call fcn.00724570
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, edi
cdq
add eax, ebx
adc edx, dword [ebp - 0xc]
sub eax, 1
sbb edx, 0
call fcn.00724570
mov edx, dword [ebp - 8]
sub eax, esi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
add ecx, 0x34
mov dword [edx + 0xc], eax
add edx, 0x34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebx + 0x48]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, dword [edi + 0x10]
jb 0x63c70b
mov edi, dword [edi + 0x10]
cmp dword [esi + 0x10], edi
jbe 0x63c88a
imul ebx, edi, 0x34
mov ecx, dword [esi + 0x18]
mov ecx, dword [ebx + ecx + 0x2c]
call fcn.004f3d35
mov eax, dword [esi + 0x18]
lea ebx, [ebx + 0x34]
and dword [ebx + eax - 8], 0
inc edi
cmp edi, dword [esi + 0x10]
jb 0x63c861
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x63c896
call fcn.00607d91
call fcn.00607d7d
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x63c62a
mov edx, eax
mov ecx, esi
call fcn.00607f78
mov eax, dword [ebp + 0x18]
mov edx, 0x63c1aa
push dword [ebp + 0x14]
mov ecx, dword [ebx + 0xb8]
mov dword [ebx + 0x2c], eax
call fcn.00690035
pop ecx
test eax, eax
je 0x63c62a
push dword [ebp + 0x14]
mov edx, dword [ebx + 0xb8]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00635e34
pop ecx
pop ecx
test eax, eax
jne 0x63c8fb
mov ecx, dword [ebx + 0x48]
call fcn.00607d91
and dword [ebx + 0x48], 0
jmp 0x63c62a
mov edx, esi
mov ecx, ebx
call fcn.0063c398
jmp 0x63c62c