Function at 0x10001f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1008e014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x144], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
je 0x10002127
test edi, edi
je 0x1000205b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001fc0
sub ecx, edx
sar ecx, 1
je 0x1000205b
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
push edi
push 1
push str.SaveOption
push 0x1007e228
call esi
push edi
push 0x5a
push str.SaveQuality
push 0x1007e228
mov ebx, eax
call esi
push edi
push 0x32
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x68]
push eax
push str.20480
push str.SaveCompressionFileSize
push 0x1007e228
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x68]
push eax
call fcn.10049d9a
add esp, 4
mov dword [ebp - 0x120], eax
cmp ebx, 2
jne 0x10002040
mov dword [ebp - 0x120], 0
jmp 0x1000206d
mov dword [ebp - 0x124], 0
cmp ebx, 3
je 0x1000206d
mov dword [ebp - 0x120], 0
jmp 0x1000206d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x124], eax
push dword [ebp - 0x138]
xor eax, eax
mov dword [ebp - 0x104], 0xffffffff
mov word [edi], ax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xd8], 5
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, eax
test edx, edx
jne 0x1000213a
movups xmm0, xmmword [str.Error:_Cant_access_input_image.]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1007e298]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1007e2a8]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1007e2b8]
movups xmmword [edi + 0x30], xmm0
mov ax, word [0x1007e2c8]
mov word [edi + 0x40], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004e2b
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [ebp - 0xd8], eax
cmp dword [edx + 4], 0x200
jg 0x10002157
cmp dword [edx + 8], 0x200
jle 0x10002162
mov eax, 4
mov dword [ebp - 0xd8], eax
cmp dword [edx + 4], 0x400
jg 0x10002174
cmp dword [edx + 8], 0x400
jle 0x1000217b
inc eax
mov dword [ebp - 0xd8], eax
cmp dword [edx + 4], 0x800
jg 0x1000218d
cmp dword [edx + 8], 0x800
jle 0x10002194
inc eax
mov dword [ebp - 0xd8], eax
cmp dword [edx + 4], 0x1000
jg 0x100021a6
cmp dword [edx + 8], 0x1000
jle 0x100021ad
inc eax
mov dword [ebp - 0xd8], eax
cmp dword [edx + 4], 0x2000
jg 0x100021bf
cmp dword [edx + 8], 0x2000
jle 0x100021c6
inc eax
mov dword [ebp - 0xd8], eax
movzx ecx, word [edx + 0xe]
mov eax, 1
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x130], ecx
cmp ecx, 8
jbe 0x100021ee
xor ebx, ebx
mov dword [ebp - 0x128], ebx
jmp 0x1000222d
mov ebx, eax
xor esi, esi
shl ebx, cl
test ebx, ebx
jle 0x10002225
lea eax, [edx + 0x29]
nop dword [eax + eax]
mov cl, byte [eax + 1]
cmp cl, byte [eax]
jne 0x1000221b
cmp cl, byte [eax - 1]
jne 0x1000221b
inc esi
add eax, 4
cmp esi, ebx
jl 0x10002200
mov ebx, 1
jmp 0x10002227
xor ebx, ebx
mov dword [ebp - 0x128], ebx
jmp 0x10002227
mov ebx, eax
mov ecx, dword [ebp - 0x130]
mov eax, dword [edx + 4]
mov dword [ebp - 0x134], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xe0], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x120]
movzx esi, cx
test eax, eax
je 0x1000226b
mov dword [ebp - 0xb0], eax
mov eax, 1
jmp 0x10002271
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x124], 0
mov ecx, 1
cmova eax, ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [edx + 0x20]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x134]
add eax, edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x114], eax
mov eax, 8
mov dword [ebp - 0x10c], eax
cmp esi, 1
jne 0x100022c9
test ebx, ebx
cmovne eax, esi
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x13c]
mov eax, 1
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0xe4], edx
movzx edx, cx
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xe8], ebx
cmp edx, 0x18
je 0x10002325
cmp edx, 8
jne 0x10002311
test ebx, ebx
je 0x10002325
jmp 0x10002330
cmp edx, 4
jne 0x1000231c
test ebx, ebx
je 0x10002325
jmp 0x10002330
cmp edx, 1
jne 0x10002330
test ebx, ebx
jne 0x10002330
mov eax, 3
mov dword [ebp - 0x110], eax
imul esi, ecx
add esi, 0x1f
shr esi, 5
shl esi, 2
cmp eax, 3
jne 0x1000234b
cmp edx, 8
ja 0x1000234b
lea esi, [ecx + ecx*2]
add esi, esi
push 0
push esi
call fcn.10001de0
add esp, 8
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x10002393
movups xmm0, xmmword [str.Out_of_memory.]
mov ebx, 0xfffffc18
movups xmmword [edi], xmm0
movq xmm0, qword [0x1007e2dc]
movq qword [edi + 0x10], xmm0
mov eax, dword [0x1007e2e4]
mov dword [edi + 0x18], eax
mov ax, word [0x1007e2e8]
mov word [edi + 0x1c], ax
jmp 0x10002836
mov esi, dword [ebp - 0x144]
push 0x1007e2ec
push esi
call fcn.1004a1d9
add esp, 8
mov dword [ebp - 0x12c], eax
test eax, eax
jne 0x100023bf
push esi
lea ebx, [eax - 0x64]
push str.Cant_open_file_for_writing:__s._n
jmp 0x1000282d
push dword [ebp - 0x110]
lea eax, [ebp - 0x11c]
push 0
push fcn.10001dc0
push 0
push fcn.10001de0
push eax
call fcn.10009390
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10002827
push dword [0x1008e004]
push dword [section..data]
push dword [ebp - 0x11c]
call fcn.10007620
add esp, 0xc
test eax, eax
je 0x1000243d
movups xmm0, xmmword [str.Warning:_Invalid_license_number._n]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1007e390]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1007e3a0]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1007e3b0]
movups xmmword [edi + 0x30], xmm0
mov eax, dword [0x1007e3c0]
mov dword [edi + 0x40], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x114]
push 2
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x118]
push 1
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x10c]
push 4
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
cmp dword [ebp - 0x128], eax
jne 0x100024d2
push 0x14
push 0x14
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x100024ee
jmp 0x10002827
push 0xa
push 0x14
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x10002517
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0xc
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x10002540
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0xd
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x1000257d
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x1000257d
push 0
push 0
push 0
push ecx
push eax
push dword [ebp - 0x11c]
call fcn.10008de0
add esp, 0x18
test eax, eax
je 0x1000257d
push eax
push str.DPI_couldnt_set__library_error__d____DPI_will_not_be_stored_in_compressed_file._n
push edi
call fcn.10002b00
add esp, 0xc
cmp dword [ebp - 0x94], 0
je 0x100025a6
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x47
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0xd8]
push 0x48
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
cmp dword [ebp - 0x90], eax
je 0x100025f2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4c
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
cmp dword [ebp - 0x120], 0
je 0x10002622
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x42
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10002622
push ebx
push str.Internal_library_error___ld__while_setting_encoding_accuracy._n
jmp 0x1000282d
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x1000264b
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0x40
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x10002674
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 6
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x1000269d
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 7
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x100026c6
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0xe
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x100026ef
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0xf
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x10002718
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0x49
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x10002741
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0x4a
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
cmp dword [ebp - 0xb4], 0
je 0x1000276a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 9
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x10002793
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0x3f
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
mov eax, dword [ebp - 0x12c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push 0x2b
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x100016a0
push 0x2a
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0x29
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push 0xffffffffffffffff
push 0xffffffffffffffff
push section..text
push 0x28
push dword [ebp - 0x11c]
call fcn.10007be0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10002827
push dword [ebp - 0x11c]
call fcn.100069a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002836
push ebx
push str.Internal_library_error___ld_._n
push edi
call fcn.10002b00
add esp, 0xc
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x10002849
push eax
call fcn.10006170
add esp, 4
test ebx, ebx
je 0x1000286b
cmp ebx, 0xffffff9c
jg 0x100028cb
je 0x100028bb
cmp ebx, 0xfffffc18
je 0x1000286b
push ebx
push str.Ooops___An_error_occured_while_compressing_decompressing_this_file___d_._nPlease_help_us_to_find_this_error_and_send_the_error_number_and_this_image_to_LuraTech__and_or_IrfanView_._nThank_you.
push edi
call fcn.10002b00
add esp, 0xc
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x1000287e
push eax
call fcn.1005b81f
add esp, 4
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x10002893
push 0
push eax
call fcn.10001dc0
add esp, 8
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test ebx, ebx
jne 0x10002127
mov ecx, dword [ebp - 4]
lea eax, [ebx + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004e2b
mov esp, ebp
pop ebp
ret
mov ecx, 0x55
mov esi, str.Ooops___An_fatal_error_occured_while_compressing_decompressing_this_file._nPlease_help_us_to_find_this_error_and_send_this_image_to_LuraTech__and_or_IrfanView_._nThank_you.
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
lea eax, [ebx + 0x24]
cmp eax, 0x1e
ja case.0x100028da.34
movzx eax, byte [eax + 0x10002ad0]
jmp dword [eax*4 + 0x10002a90]
mov ecx, 0x1d
mov esi, str.Error:_The_evaluation_period_for_this_software_has_expired
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
mov ecx, 0x1d
mov esi, str.Error:_JPEG2000_File_contain_invalid_Number_Of_Components
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b
mov ecx, 0x1a
mov esi, str.Error:_JPEG2000_File_contain_invalid_Component_Index
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
mov ecx, 0x15
mov esi, str.Error:_JPEG2000_File_contain_invalid_Width
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
movups xmm0, xmmword [str.Error:_JPEG2000_File_contain_invalid_Height]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1007e6b8]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1007e6c8]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1007e6d8]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [0x1007e6e8]
movups xmmword [edi + 0x40], xmm0
movq xmm0, qword [0x1007e6f8]
movq qword [edi + 0x50], xmm0
jmp 0x1000286b
mov ecx, 0x1a
mov esi, str.Error:_JPEG2000_File_contain_invalid_Bits_Per_Sample
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
mov ecx, 0x1b
mov esi, str.Error:_JPEG2000_File_contain_invalid_Tile_Arrangement
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b
movups xmm0, xmmword [str.Error:_JPEG2000_File_contain_invalid_Colorspace]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1007e7f0]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1007e800]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1007e810]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [0x1007e820]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [0x1007e830]
movups xmmword [edi + 0x50], xmm0
jmp 0x1000286b
movups xmm0, xmmword [str.Error:_JPEG2000_File_contain_invalid_Dimensions]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1007e850]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1007e860]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1007e870]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [0x1007e880]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [0x1007e890]
movups xmmword [edi + 0x50], xmm0
jmp 0x1000286b
mov ecx, 0x15
mov esi, str.Error:_JPEG2000_File_contain_invalid_Index
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
mov ecx, 0x1b
mov esi, str.Error:_JPEG2000_File_contain_invalid_Resolution_Level
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b
mov ecx, 0x20
mov esi, str.Error:_JPEG2000_File_contain_invalid_Wavelet_Filter_Combination
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b
mov ecx, 0x19
mov esi, str.Error:_This_is_an_invalid_or_corrupt_JPEG2000_File
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1000286b
mov ecx, 0x4a
mov esi, str.This_file_contains_not_supported_JPEG2000_Parameters._nPlease_send_this_image_per_email_to_LuraTech__and_or_IrfanView__to_help_us_to_find_the_error.
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b
mov ecx, 0x22
mov esi, str.Error:_Requested_File_Size_Too_Small__try_another_compression_value
rep movsd dword es:[edi], dword [esi]
jmp 0x1000286b