Function at 0x10147640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push esi
mov si, word [esp + 0x50]
xorps xmm0, xmm0
push edi
mov edi, dword [esp + 0x50]
movzx eax, si
push 0
push eax
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x28], 0
call fcn.1015bac0
add esp, 0xc
test dword [edi + 0xc], 0x800
je 0x101476ad
push str.Memory_mapped_files_not_currently_supported_for_this_operation.
push str.TIFFResetField
push dword [edi + 0x274]
call fcn.1015c990
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x44
ret
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
jne 0x101476bc
push str.Attempt_to_reset_field_on_directory_not_already_on_disk.
jmp 0x10147692
mov eax, dword [edi + 0x280]
push ebx
mov ebx, dword [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10]
push 0
push ebx
push ebp
push dword [edi + 0x274]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x30], ebx
call eax
add esp, 0x10
cmp eax, ebp
jne 0x10147d01
cmp edx, ebx
jne 0x10147d01
test dword [edi + 0xc], 0x80000
jne 0x10147744
push 2
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x274]
mov eax, dword [edi + 0x278]
call eax
add esp, 0xc
cmp eax, 2
je 0x10147723
push dword [edi]
push str._s:_Can_not_read_TIFF_directory_count
jmp 0x10147d08
test byte [edi + 0xc], 0x80
je 0x10147736
lea eax, [esp + 0x14]
push eax
call fcn.1015a8a0
add esp, 4
mov eax, dword [esp + 0x14]
mov ebp, 0xc
lea ecx, [ebp - 0xa]
jmp 0x10147787
push 8
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x274]
mov eax, dword [edi + 0x278]
call eax
add esp, 0xc
cmp eax, 8
jne 0x10147717
test byte [edi + 0xc], 0x80
je 0x10147774
lea eax, [esp + 0x28]
push eax
call fcn.1015a8d0
add esp, 4
movzx eax, word [esp + 0x28]
mov ebp, 0x14
mov dword [esp + 0x14], eax
mov ecx, 8
xor ebx, ebx
mov dword [esp + 0x28], ebp
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
adc ebx, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
test ax, ax
je 0x10147803
push ebp
lea eax, [esp + 0x44]
push eax
push dword [edi + 0x274]
mov eax, dword [edi + 0x278]
call eax
add esp, 0xc
cmp eax, ebp
jne 0x101477f7
test byte [edi + 0xc], 0x80
movzx eax, word [esp + 0x40]
mov dword [esp + 0x18], eax
je 0x101477dd
lea eax, [esp + 0x18]
push eax
call fcn.1015a8a0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp ax, si
je 0x10147834
add dword [esp + 0x10], ebp
adc ebx, 0
cmp word [esp + 0x14], 0
mov dword [esp + 0x20], ebx
ja 0x101477a2
jmp 0x10147807
push dword [edi]
push str._s:_Can_not_read_TIFF_directory_entry.
jmp 0x10147d08
mov eax, dword [esp + 0x18]
cmp ax, si
je 0x10147834
movzx eax, si
push eax
push dword [edi]
push str._s:_Could_not_find_tag__d.
push str.TIFFResetField
push dword [edi + 0x274]
call fcn.1015c990
add esp, 0x14
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x44
ret
test byte [edi + 0xc], 0x80
movzx eax, word [esp + 0x42]
mov dword [esp + 0x1c], eax
je 0x10147850
lea eax, [esp + 0x1c]
push eax
call fcn.1015a8a0
add esp, 4
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x44]
test ecx, 0x80000
jne 0x101478b1
mov dword [esp + 0x5c], eax
test cl, cl
jns 0x10147878
lea eax, [esp + 0x5c]
push eax
call fcn.1015a8b0
mov eax, dword [esp + 0x60]
add esp, 4
test byte [edi + 0xc], 0x80
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x5c], eax
je 0x101478a3
lea eax, [esp + 0x5c]
push eax
call fcn.1015a8b0
mov eax, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
jmp 0x101478f1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
test cl, cl
jns 0x101478ce
lea eax, [esp + 0x38]
push eax
call fcn.1015a8d0
add esp, 4
test byte [edi + 0xc], 0x80
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
je 0x101478f1
lea eax, [esp + 0x30]
push eax
call fcn.1015a8d0
add esp, 4
mov ebp, dword [esp + 0x60]
push ebp
call fcn.1015bc50
add esp, 4
cmp eax, 8
jne 0x1014792f
test dword [edi + 0xc], 0x80000
jne 0x1014792f
cmp ebp, 0x10
jne 0x10147916
lea ebx, [ebp - 0xc]
jmp 0x10147931
cmp ebp, 0x11
jne 0x10147920
lea ebx, [ebp - 8]
jmp 0x10147931
cmp ebp, 0x12
mov ebx, ebp
mov eax, 0xd
cmove ebx, eax
jmp 0x10147931
mov ebx, ebp
push str.for_field_buffer.
push ebx
call fcn.1015bc50
mov esi, dword [esp + 0x6c]
add esp, 4
push eax
push esi
push edi
call fcn.1015b710
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10147d1b
mov eax, dword [esp + 0x60]
cmp ebx, eax
jne 0x1014797c
push ebx
call fcn.1015bc50
imul eax, esi
push eax
push dword [esp + 0x70]
push ebp
call fcn.101f8da0
add esp, 0x10
jmp 0x10147a23
cmp ebx, 9
jne 0x101479d6
cmp eax, 0x11
jne 0x10147a23
xor ecx, ecx
test esi, esi
jle 0x10147a23
mov eax, dword [esp + 0x68]
nop dword [eax + eax]
mov edi, dword [esp + 0x68]
mov eax, dword [eax + ecx*8]
mov dword [ebp + ecx*4], eax
cdq
cmp eax, dword [edi + ecx*8]
mov edi, dword [esp + 0x58]
jne 0x101479c6
mov eax, dword [esp + 0x68]
cmp edx, dword [eax + ecx*8 + 4]
jne 0x101479c6
inc ecx
cmp ecx, esi
jl 0x101479a0
jmp 0x10147a23
push ebp
call fcn.10037bb0
push str.Value_exceeds_32bit_range_of_output_type.
jmp 0x10147d08
cmp ebx, 4
jne 0x101479e2
cmp eax, 0x10
je 0x101479ec
jmp 0x10147a23
cmp ebx, 0xd
jne 0x10147a23
cmp eax, 0x12
jne 0x10147a23
xor ecx, ecx
test esi, esi
jle 0x10147a23
mov edx, dword [esp + 0x68]
nop word [eax + eax]
mov eax, dword [edx + ecx*8]
mov dword [ebp + ecx*4], eax
mov dword [esp + 0x5c], 0
cmp eax, dword [edx + ecx*8]
jne 0x101479c6
mov eax, dword [esp + 0x5c]
cmp eax, dword [edx + ecx*8 + 4]
jne 0x101479c6
inc ecx
cmp ecx, esi
jl 0x10147a00
push ebx
call fcn.1015bc50
add esp, 4
cmp eax, 1
jle 0x10147a7d
test byte [edi + 0xc], 0x80
je 0x10147a7d
push ebx
call fcn.1015bc50
add esp, 4
cmp eax, 2
jne 0x10147a4e
push esi
push ebp
call fcn.1015a970
jmp 0x10147a7a
push ebx
call fcn.1015bc50
add esp, 4
cmp eax, 4
jne 0x10147a65
push esi
push ebp
call fcn.1015a9d0
jmp 0x10147a7a
push ebx
call fcn.1015bc50
add esp, 4
cmp eax, 8
jne 0x10147a7d
push esi
push ebp
call fcn.1015aa10
add esp, 8
test dword [edi + 0xc], 0x80000
push ebx
jne 0x10147ab7
call fcn.1015bc50
imul eax, esi
add esp, 4
cmp eax, 4
jg 0x10147ae7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add ecx, 8
mov dword [esp + 0x30], ecx
adc eax, 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], eax
jmp 0x10147aef
call fcn.1015bc50
imul eax, esi
add esp, 4
cmp eax, 8
jg 0x10147ae7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add ecx, 0xc
mov dword [esp + 0x30], ecx
adc eax, 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], eax
jmp 0x10147aef
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, esi
cdq
cmp dword [esp + 0x38], eax
jne 0x10147b9d
cmp dword [esp + 0x3c], edx
jne 0x10147b9d
cmp word [esp + 0x1c], bx
jne 0x10147b9d
mov eax, dword [edi + 0x280]
push 0
push dword [esp + 0x60]
push ecx
push dword [edi + 0x274]
call eax
add esp, 0x10
cmp eax, dword [esp + 0x30]
jne 0x10147b8b
cmp edx, dword [esp + 0x34]
jne 0x10147b8b
push ebx
call fcn.1015bc50
imul eax, esi
push eax
mov eax, dword [edi + 0x27c]
push ebp
push dword [edi + 0x274]
call eax
push ebx
mov esi, eax
call fcn.1015bc50
imul eax, dword [esp + 0x78]
add esp, 0x14
push ebp
cmp esi, eax
je 0x10147b76
call fcn.10037bb0
push str.Error_writing_directory_link
jmp 0x10147d08
call fcn.10037bb0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
push ebp
call fcn.10037bb0
push dword [edi]
push str._s:_Seek_error_accessing_TIFF_directory
jmp 0x10147817
cmp dword [esp + 0x24], 0
jne 0x10147bff
mov eax, dword [edi + 0x280]
push 2
push 0
push 0
push dword [edi + 0x274]
call eax
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.1015bc50
imul eax, esi
push eax
mov eax, dword [edi + 0x27c]
push ebp
push dword [edi + 0x274]
call eax
push ebx
mov esi, eax
call fcn.1015bc50
imul eax, dword [esp + 0x88]
add esp, 0x24
push ebp
cmp esi, eax
jne 0x10147b67
call fcn.10037bb0
add esp, 4
jmp 0x10147c17
push ebx
call fcn.1015bc50
imul eax, esi
push eax
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.101f8da0
add esp, 0x10
test byte [edi + 0xc], 0x80
movzx eax, bx
mov dword [esp + 0x1c], eax
mov word [esp + 0x42], bx
je 0x10147c36
lea eax, [esp + 0x42]
push eax
call fcn.1015a8a0
add esp, 4
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
test ecx, 0x80000
jne 0x10147c74
test cl, cl
jns 0x10147c5a
lea eax, [esp + 0x44]
push eax
call fcn.1015a8b0
add esp, 4
test byte [edi + 0xc], 0x80
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
je 0x10147cb0
lea eax, [esp + 0x48]
push eax
call fcn.1015a8b0
jmp 0x10147cad
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
test cl, cl
jns 0x10147c8d
lea eax, [esp + 0x44]
push eax
call fcn.1015a8d0
add esp, 4
test byte [edi + 0xc], 0x80
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
je 0x10147cb0
lea eax, [esp + 0x4c]
push eax
call fcn.1015a8d0
add esp, 4
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0x280]
push 0
push ebx
push ebp
push dword [edi + 0x274]
call eax
add esp, 0x10
cmp eax, ebp
jne 0x10147d01
cmp edx, ebx
jne 0x10147d01
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x40]
push esi
push eax
push dword [edi + 0x274]
mov eax, dword [edi + 0x27c]
call eax
add esp, 0xc
cmp eax, esi
je 0x10147b7e
push dword [edi]
push str._s:_Can_not_write_TIFF_directory_entry.
jmp 0x10147d08
push dword [edi]
push str._s:_Seek_error_accessing_TIFF_directory
push str.TIFFResetField
push dword [edi + 0x274]
call fcn.1015c990
add esp, 0x10
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret