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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 8], 0
je 0x4dce6b
push esi
call fcn.004d5900
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4dbfa0
mov eax, dword [esi + 0xc]
test eax, 0x1000
je 0x4dbf1f
and eax, 0xffffefff
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x2a0]
push esi
call eax
add esp, 4
test eax, eax
jne 0x4dbf1f
push str.Error_post_encoding_before_directory_write
push str.TIFFWriteDirectorySec
push dword [esi + 0x304]
call fcn.004cb710
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2bc]
push esi
call eax
add esp, 4
cmp dword [esi + 0x2f0], 0
jle 0x4dbf4e
test byte [esi + 0xc], 0x40
je 0x4dbf4e
push esi
call fcn.004dab40
add esp, 4
test eax, eax
jne 0x4dbf4e
push str.Error_flushing_data_before_directory_write
jmp 0x4dbf03
test dword [esi + 0xc], 0x200
je 0x4dbf9c
mov eax, dword [esi + 0x2dc]
test eax, eax
je 0x4dbf9c
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov dword [esi + 0x2dc], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2e0], 0
mov dword [esi + 0x2e4], 0
mov dword [esi + 0x2e8], 0
and dword [esi + 0xc], 0xffffffaf
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
lea ecx, [ecx]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4dc794
test byte [esi + 0x28], 2
je 0x4dc004
push dword [esi + 0x38]
lea eax, [esp + 0x18]
push 0x100
push edi
push eax
push esi
call fcn.004de640
add esp, 0x14
test eax, eax
je 0x4dcbce
push dword [esi + 0x3c]
lea eax, [esp + 0x18]
push 0x101
push edi
push eax
push esi
call fcn.004de640
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 4
je 0x4dc048
push dword [esi + 0x44]
lea eax, [esp + 0x18]
push 0x142
push edi
push eax
push esi
call fcn.004de640
add esp, 0x14
test eax, eax
je 0x4dcbce
push dword [esi + 0x48]
lea eax, [esp + 0x18]
push 0x143
push edi
push eax
push esi
call fcn.004de640
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 8
je 0x4dc0b0
fld dword [esi + 0x74]
test edi, edi
jne 0x4dc05d
inc dword [esp + 0x14]
fstp st(0)
jmp 0x4dc07f
sub esp, 8
lea eax, [esp + 0x1c]
fstp qword [esp]
push 0x11a
push edi
push eax
push esi
call fcn.004dd230
add esp, 0x18
test eax, eax
je 0x4dcbce
fld dword [esi + 0x78]
test edi, edi
jne 0x4dc08e
inc dword [esp + 0x14]
fstp st(0)
jmp 0x4dc0b0
sub esp, 8
lea eax, [esp + 0x1c]
fstp qword [esp]
push 0x11b
push edi
push eax
push esi
call fcn.004dd230
add esp, 0x18
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 0x10
je 0x4dc112
fld dword [esi + 0x80]
test edi, edi
jne 0x4dc0c8
inc dword [esp + 0x14]
fstp st(0)
jmp 0x4dc0ea
sub esp, 8
lea eax, [esp + 0x1c]
fstp qword [esp]
push 0x11e
push edi
push eax
push esi
call fcn.004dd230
add esp, 0x18
test eax, eax
je 0x4dcbce
fld dword [esi + 0x84]
lea eax, [esp + 0x14]
sub esp, 8
fstp qword [esp]
push 0x11f
push edi
push eax
push esi
call fcn.004de190
add esp, 0x18
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 0x20
je 0x4dc137
push dword [esi + 0x50]
lea eax, [esp + 0x18]
push 0xfe
push edi
push eax
push esi
call fcn.004dde70
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 0x40
je 0x4dc15e
movzx eax, word [esi + 0x54]
push eax
push 0x102
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de6e0
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x28], 0x80
je 0x4dc185
movzx eax, word [esi + 0x58]
push eax
push 0x103
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x100
je 0x4dc1af
movzx eax, word [esi + 0x5a]
push eax
push 0x106
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x200
je 0x4dc1d9
movzx eax, word [esi + 0x5c]
push eax
push 0x107
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x400
je 0x4dc203
movzx eax, word [esi + 0x5e]
push eax
push 0x10a
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x8000
je 0x4dc22d
movzx eax, word [esi + 0x60]
push eax
push 0x112
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x10000
je 0x4dc257
movzx eax, word [esi + 0x62]
push eax
push 0x115
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x20000
je 0x4dc27f
push dword [esi + 0x64]
lea eax, [esp + 0x18]
push 0x116
push edi
push eax
push esi
call fcn.004de640
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x40000
je 0x4dc2a9
movzx eax, word [esi + 0x68]
push eax
push 0x118
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de6e0
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x80000
je 0x4dc2d3
movzx eax, word [esi + 0x6a]
push eax
push 0x119
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de6e0
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x100000
je 0x4dc2fd
movzx eax, word [esi + 0x7e]
push eax
push 0x11c
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x400000
je 0x4dc327
movzx eax, word [esi + 0x7c]
push eax
push 0x128
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x800000
je 0x4dc355
lea eax, [esi + 0x88]
push eax
push 2
push 0x129
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004de5e0
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x1000000
je 0x4dc396
test dword [esi + 0xc], 0x400
lea eax, [esp + 0x14]
push dword [esi + 0xb0]
push dword [esi + 0xa8]
jne 0x4dc37e
push 0x117
jmp 0x4dc383
push 0x145
push edi
push eax
push esi
call fcn.004ddf50
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x2000000
je 0x4dc3e8
test dword [esi + 0xc], 0x400
jne 0x4dc3c0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4dc3e8
push eax
push dword [esi + 0xa8]
push 0x111
jmp 0x4dc3d1
push dword [esi + 0xac]
push dword [esi + 0xa8]
push 0x144
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004ddf50
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x4000000
je 0x4dc408
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004dd930
add esp, 0xc
test eax, eax
je 0x4dcbce
test dword [esi + 0x28], 0x80000000
je 0x4dc456
cmp word [esi + 0x9c], 0
je 0x4dc456
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push 0x152
push esi
call fcn.004cca30
push dword [esp + 0x38]
movzx eax, word [esp + 0x24]
push eax
push 0x152
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004de5e0
add esp, 0x28
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 1
je 0x4dc47d
movzx eax, word [esi + 0x56]
push eax
push 0x153
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de6e0
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 2
je 0x4dc4a7
push dword [esi + 0x6c]
movzx eax, word [esi + 0x62]
push eax
push 0x154
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004de1f0
add esp, 0x18
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 4
je 0x4dc4d1
push dword [esi + 0x70]
movzx eax, word [esi + 0x62]
push eax
push 0x155
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004de1f0
add esp, 0x18
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 8
je 0x4dc4f6
push dword [esi + 0x40]
lea eax, [esp + 0x18]
push 0x80e5
push edi
push eax
push esi
call fcn.004dde70
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 0x10
je 0x4dc51b
push dword [esi + 0x4c]
lea eax, [esp + 0x18]
push 0x80e6
push edi
push eax
push esi
call fcn.004dde70
add esp, 0x14
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 0x20
je 0x4dc546
lea eax, [esi + 0x98]
push eax
push 2
push 0x141
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004de5e0
add esp, 0x18
test eax, eax
je 0x4dcbce
test byte [esi + 0x2c], 0x80
je 0x4dc571
lea eax, [esi + 0x100]
push eax
push 2
push 0x212
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004de5e0
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x2c], 0x100
je 0x4dc59e
movzx eax, word [esi + 0x104]
push eax
push 0x213
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004de580
add esp, 0x14
test eax, eax
je 0x4dcbce
test dword [esi + 0x2c], 0x200
je 0x4dc5d5
test edi, edi
jne 0x4dc5b1
inc dword [esp + 0x14]
jmp 0x4dc5d5
push dword [esi + 0x114]
lea eax, [esp + 0x18]
push 6
push 0x214
push edi
push eax
push esi
call fcn.004dd3b0
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x2c], 0x1000
je 0x4dc5f5
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004dea30
add esp, 0xc
test eax, eax
je 0x4dcbce
test dword [esi + 0x2c], 0x4000
je 0x4dc626
push dword [esi + 0x11c]
lea eax, [esp + 0x18]
push dword [esi + 0x118]
push 0x14d
push edi
push eax
push esi
call fcn.004dcf00
add esp, 0x18
test eax, eax
je 0x4dcbce
test dword [esi + 0x2c], 0x20000
je 0x4dc646
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004de890
add esp, 0xc
test eax, eax
je 0x4dcbce
xor ebx, ebx
cmp dword [esi + 0x324], ebx
jbe 0x4dc794
jmp 0x4dc660
mov eax, dword [esi + 0x320]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
movzx eax, word [eax + 0x18]
cmp eax, 0x42
jb 0x4dc787
mov edx, eax
mov eax, 1
mov ecx, edx
shr edx, 5
and ecx, 0x1f
shl eax, cl
test dword [esi + edx*4 + 0x28], eax
je 0x4dc787
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
dec eax
cmp eax, 0x27
ja case.0x4dc6ad.2
movzx eax, byte [eax + 0x4dce8c]
jmp dword [eax*4 + 0x4dce78]
lea eax, [esp + 0x2c]
push eax
push dword [ecx]
push esi
call fcn.004c1c60
mov edx, dword [esp + 0x38]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4dc6d1
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x24]
push edx
push ecx
movzx eax, word [eax]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004dcf00
add esp, 0x18
jmp 0x4dc77f
lea eax, [esp + 0x30]
push eax
push dword [ecx]
push esi
call fcn.004c1c60
push dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004de580
add esp, 0x20
jmp 0x4dc77f
lea eax, [esp + 0x34]
push eax
push dword [ecx]
push esi
call fcn.004c1c60
push dword [esp + 0x40]
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004dde70
add esp, 0x20
jmp 0x4dc77f
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ecx]
push esi
call fcn.004c1c60
push dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x50]
movzx eax, word [eax]
push eax
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004debb0
add esp, 0x28
test eax, eax
je 0x4dcbce
inc ebx
cmp ebx, dword [esi + 0x324]
jb 0x4dc660
cmp dword [esi + 0x120], 0
mov dword [esp + 0x24], 0
jbe 0x4dc9c2
xor ebx, ebx
jmp 0x4dc7b0
mov ecx, dword [esi + 0x124]
mov eax, dword [ebx + ecx]
movzx edx, word [eax]
mov eax, dword [eax + 8]
dec eax
mov dword [esp + 0x18], edx
mov edx, dword [ebx + ecx + 4]
cmp eax, 0x11
ja case.0x4dc7d1.14
jmp dword [eax*4 + 0x4dceb4]
test edi, edi
jne 0x4dc7e5
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
push edx
push edx
push 2
push dword [esp + 0x28]
lea eax, [esp + 0x28]
push edi
push eax
push esi
call fcn.004dda00
add esp, 0x20
jmp 0x4dc9a2
test edi, edi
jne 0x4dc812
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
push edx
push edx
push 7
jmp 0x4dc7ed
test edi, edi
jne 0x4dc829
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
push edx
push edx
push 1
jmp 0x4dc7ed
test edi, edi
jne 0x4dc840
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
push edx
push edx
push 6
jmp 0x4dc7ed
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004de5e0
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004de830
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004ddef0
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004de7b0
jmp 0x4dc99f
test edi, edi
jne 0x4dc8bf
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004dd170
jmp 0x4dc99f
test edi, edi
jne 0x4dc8e6
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004dd650
jmp 0x4dc99f
test edi, edi
jne 0x4dc90d
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004dd3b0
jmp 0x4dc99f
test edi, edi
jne 0x4dc92e
inc dword [esp + 0x14]
jmp case.0x4dc7d1.14
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004dd710
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004ddc80
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004ddc20
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004ddce0
jmp 0x4dc99f
push dword [ebx + ecx + 8]
lea eax, [esp + 0x18]
push edx
push dword [esp + 0x20]
push edi
push eax
push esi
call fcn.004ddd40
add esp, 0x18
test eax, eax
je 0x4dcbce
mov eax, dword [esp + 0x24]
add ebx, 0xc
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 0x120]
jb 0x4dc7b0
test edi, edi
jne 0x4dcb36
mov eax, dword [esp + 0x14]
shl eax, 5
push eax
call fcn.004c11e0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x4dcb2c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dca0a
mov ecx, dword [esi + 0x10]
or ecx, dword [esi + 0x14]
jne 0x4dca30
push esi
call fcn.004db610
add esp, 4
test eax, eax
je 0x4dcbce
jmp 0x4dca30
mov eax, dword [esi + 0x310]
push 2
push 0
push 0
push dword [esi + 0x304]
call eax
add esp, 0x10
add eax, 1
adc edx, 0
and eax, 0xfffffffe
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4dca42
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
and edx, 0x80000
jne 0x4dca5d
lea eax, [eax + eax*2]
lea eax, [eax*4 + 6]
jmp 0x4dca67
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, eax
add ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, 0
adc eax, ebx
mov dword [esi + 0x260], ecx
mov dword [esi + 0x264], eax
test edx, edx
jne 0x4dca98
mov eax, ecx
mov dword [esi + 0x264], edx
mov dword [esi + 0x260], eax
mov edx, dword [esi + 0x264]
mov ecx, dword [esi + 0x260]
cmp edx, ebx
jb 0x4dcb22
ja 0x4dcaaf
cmp ecx, dword [esi + 0x10]
jb 0x4dcb22
test edx, edx
jb 0x4dcb22
ja 0x4dcabb
cmp ecx, dword [esp + 0x1c]
jb 0x4dcb22
mov eax, ecx
and eax, 1
or eax, 0
je 0x4dcad7
add ecx, 1
mov dword [esi + 0x260], ecx
adc edx, 0
mov dword [esi + 0x264], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dbfb0
inc word [esi + 0x250]
jmp 0x4dbfb0
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4dcafa
mov eax, str.unknown
push eax
push ecx
call fcn.004cb7b0
add esp, 4
push eax
push str.Cannot_write_tag__d___s_
push str.TIFFWriteDirectorySec
push dword [esi + 0x304]
call fcn.004cb710
add esp, 0x14
jmp 0x4dcbce
push str.Maximum_TIFF_file_size_exceeded
jmp 0x4dcbbb
push str.Out_of_memory
jmp 0x4dbf03
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dcba0
test dword [esi + 0x2c], 0x20000
je 0x4dcba0
mov eax, dword [esi + 0x270]
or eax, dword [esi + 0x274]
jne 0x4dcba0
mov ecx, edi
cmp dword [esp + 0x14], eax
je 0x4dcb70
mov edx, 0x14a
cmp word [ecx], dx
je 0x4dcb77
inc eax
add ecx, 0x20
cmp eax, dword [esp + 0x14]
jne 0x4dcb61
push str.Cannot_find_SubIFD_tag
jmp 0x4dcbbb
test dword [esi + 0xc], 0x80000
jne 0x4dcbe8
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0xa
adc eax, 0
mov dword [esi + 0x270], ecx
mov dword [esi + 0x274], eax
push dword [esp + 0x1c]
call fcn.004c11e0
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x4dcbfb
push str.Out_of_memory
push str.TIFFWriteDirectorySec
push dword [esi + 0x304]
call fcn.004cb710
add esp, 0xc
test edi, edi
je 0x4dbf16
push edi
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0x14
jmp 0x4dcb91
test dword [esi + 0xc], 0x80000
jne 0x4dcce8
mov ax, word [esp + 0x14]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4dcc1f
push ebx
call fcn.004cc770
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x4dccb9
lea eax, [edi + 8]
mov dword [esp + 0x3c], eax
mov edi, eax
jmp 0x4dcc40
mov ax, word [edi - 8]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4dcc56
push ebx
call fcn.004cc770
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4dcc6f
push ebx
call fcn.004cc770
add esp, 4
mov eax, dword [edi]
add ebx, 2
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push ebx
call fcn.004c1260
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4dcc97
push ebx
call fcn.004cc710
add esp, 4
push 4
lea eax, [edi + 8]
add ebx, 4
push eax
push ebx
call fcn.004c1260
add esp, 0xc
add ebx, 4
add edi, 0x20
dec dword [esp + 0x18]
jne 0x4dcc40
mov edi, dword [esp + 0x20]
test byte [esi + 0xc], 0x80
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
je 0x4dccd3
lea eax, [esp + 0x10]
push eax
call fcn.004cc710
add esp, 4
push 4
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004c1260
add esp, 0xc
jmp 0x4dcdad
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], 0
test byte [esi + 0xc], 0x80
je 0x4dcd04
push ebx
call fcn.004cc730
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4dcd8f
lea eax, [edi + 8]
mov dword [esp + 0x3c], eax
mov edi, eax
mov ax, word [edi - 8]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4dcd36
push ebx
call fcn.004cc770
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4dcd4f
push ebx
call fcn.004cc770
add esp, 4
push 8
add ebx, 2
push edi
push ebx
call fcn.004c1260
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4dcd6d
push ebx
call fcn.004cc730
add esp, 4
push 8
lea eax, [edi + 8]
add ebx, 8
push eax
push ebx
call fcn.004c1260
add esp, 0xc
add ebx, 8
add edi, 0x20
dec dword [esp + 0x18]
jne 0x4dcd20
mov edi, dword [esp + 0x20]
push 8
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.004c1260
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4dcdad
push ebx
call fcn.004cc730
add esp, 4
push edi
call sub.MSVCRT.dll_free
push dword [esi + 0x14]
push dword [esi + 0x10]
push esi
call fcn.004cd0f0
add esp, 0x10
test eax, eax
jne 0x4dcdf4
push str.IO_error_writing_directory
push str.TIFFWriteDirectorySec
push dword [esi + 0x304]
call fcn.004cb710
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x30c]
push ebx
push edi
push dword [esi + 0x304]
call eax
add esp, 0xc
cmp eax, ebx
je 0x4dce3d
push str.IO_error_writing_directory
push str.TIFFWriteDirectorySec
push dword [esi + 0x304]
call fcn.004cb710
add esp, 0xc
push edi
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call sub.MSVCRT.dll_free
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4dce6b
push esi
call fcn.004c1a30
mov ecx, dword [esi + 0x2c4]
and dword [esi + 0xc], 0xffdffff7
push esi
call ecx
push esi
call fcn.004c1890
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret