Function at 0x10148270
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 0x1014917c
push esi
call fcn.10153e90
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x1014834c
mov eax, dword [esi + 0xc]
test eax, 0x1000
je 0x101482c8
and eax, 0xffffefff
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x210]
push esi
call eax
add esp, 4
test eax, eax
jne 0x101482c8
push str.Error_post_encoding_before_directory_write
jmp 0x10148e6d
mov eax, dword [esi + 0x22c]
push esi
call eax
add esp, 4
cmp dword [esi + 0x260], 0
jle 0x101482fa
test byte [esi + 0xc], 0x40
je 0x101482fa
push esi
call fcn.1014b380
add esp, 4
test eax, eax
jne 0x101482fa
push str.Error_flushing_data_before_directory_write
jmp 0x10148e6d
test dword [esi + 0xc], 0x200
je 0x10148348
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x10148348
push eax
call fcn.10037bb0
add esp, 4
mov dword [esi + 0x24c], 0
mov dword [esi + 0x260], 0
mov dword [esi + 0x250], 0
mov dword [esi + 0x254], 0
mov dword [esi + 0x258], 0
and dword [esi + 0xc], 0xffffffaf
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
nop dword [eax]
mov dword [esp + 0x14], 0
test eax, eax
je 0x10148b14
test byte [esi + 0x28], 2
je 0x101483b4
push dword [esi + 0x38]
lea eax, [esp + 0x18]
push 0x100
push edi
push eax
push esi
call fcn.1014a380
add esp, 0x14
test eax, eax
je 0x10148f26
push dword [esi + 0x3c]
lea eax, [esp + 0x18]
push 0x101
push edi
push eax
push esi
call fcn.1014a380
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 4
je 0x101483f8
push dword [esi + 0x44]
lea eax, [esp + 0x18]
push 0x142
push edi
push eax
push esi
call fcn.1014a380
add esp, 0x14
test eax, eax
je 0x10148f26
push dword [esi + 0x48]
lea eax, [esp + 0x18]
push 0x143
push edi
push eax
push esi
call fcn.1014a380
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 8
je 0x10148456
movss xmm0, dword [esi + 0x74]
lea eax, [esp + 0x14]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0x11a
push edi
push eax
push esi
call fcn.1014a030
add esp, 0x18
test eax, eax
je 0x10148f26
movss xmm0, dword [esi + 0x78]
lea eax, [esp + 0x14]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0x11b
push edi
push eax
push esi
call fcn.1014a030
add esp, 0x18
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 0x10
je 0x101484ba
movss xmm0, dword [esi + 0x80]
lea eax, [esp + 0x14]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0x11e
push edi
push eax
push esi
call fcn.1014a030
add esp, 0x18
test eax, eax
je 0x10148f26
movss xmm0, dword [esi + 0x84]
lea eax, [esp + 0x14]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0x11f
push edi
push eax
push esi
call fcn.1014a030
add esp, 0x18
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 0x20
je 0x101484df
push dword [esi + 0x50]
lea eax, [esp + 0x18]
push 0xfe
push edi
push eax
push esi
call fcn.10149ee0
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 0x40
je 0x10148506
movzx eax, word [esi + 0x54]
push eax
push 0x102
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a3c0
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x28], 0x80
je 0x1014852d
movzx eax, word [esi + 0x58]
push eax
push 0x103
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x100
je 0x10148557
movzx eax, word [esi + 0x5a]
push eax
push 0x106
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x200
je 0x10148581
movzx eax, word [esi + 0x5c]
push eax
push 0x107
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x400
je 0x101485ab
movzx eax, word [esi + 0x5e]
push eax
push 0x10a
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x8000
je 0x101485d5
movzx eax, word [esi + 0x60]
push eax
push 0x112
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x10000
je 0x101485ff
movzx eax, word [esi + 0x62]
push eax
push 0x115
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x20000
je 0x10148627
push dword [esi + 0x64]
lea eax, [esp + 0x18]
push 0x116
push edi
push eax
push esi
call fcn.1014a380
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x40000
je 0x10148651
movzx eax, word [esi + 0x68]
push eax
push 0x118
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a3c0
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x80000
je 0x1014867b
movzx eax, word [esi + 0x6a]
push eax
push 0x119
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a3c0
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x100000
je 0x101486a5
movzx eax, word [esi + 0x7e]
push eax
push 0x11c
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x400000
je 0x101486cf
movzx eax, word [esi + 0x7c]
push eax
push pe_nt_image_headers32
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x800000
je 0x101486fd
lea eax, [esi + 0x88]
push eax
push 2
push 0x129
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a360
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x1000000
je 0x1014873e
test dword [esi + 0xc], 0x400
lea eax, [esp + 0x14]
push dword [esi + 0xb0]
push dword [esi + 0xa8]
jne 0x10148726
push 0x117
jmp 0x1014872b
push 0x145
push edi
push eax
push esi
call fcn.10149f40
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x2000000
je 0x1014877f
test dword [esi + 0xc], 0x400
lea eax, [esp + 0x14]
push dword [esi + 0xac]
push dword [esi + 0xa8]
jne 0x10148767
push 0x111
jmp 0x1014876c
push 0x144
push edi
push eax
push esi
call fcn.10149f40
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x28], 0x4000000
je 0x1014879f
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10149ab0
add esp, 0xc
test eax, eax
je 0x10148f26
cmp dword [esi + 0x28], 0
jge 0x101487ea
cmp word [esi + 0x9c], 0
je 0x101487ea
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push 0x152
push esi
call fcn.1015b220
push dword [esp + 0x34]
movzx eax, word [esp + 0x24]
push eax
push 0x152
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.1014a360
add esp, 0x28
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 1
je 0x10148811
movzx eax, word [esi + 0x56]
push eax
push 0x153
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a3c0
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 2
je 0x1014883b
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.1014a090
add esp, 0x18
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 4
je 0x10148865
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.1014a090
add esp, 0x18
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 8
je 0x1014888a
push dword [esi + 0x40]
lea eax, [esp + 0x18]
push 0x80e5
push edi
push eax
push esi
call fcn.10149ee0
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 0x10
je 0x101488af
push dword [esi + 0x4c]
lea eax, [esp + 0x18]
push 0x80e6
push edi
push eax
push esi
call fcn.10149ee0
add esp, 0x14
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 0x20
je 0x101488da
lea eax, [esi + 0x98]
push eax
push 2
push 0x141
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a360
add esp, 0x18
test eax, eax
je 0x10148f26
test byte [esi + 0x2c], 0x80
je 0x10148905
lea eax, [esi + 0xc0]
push eax
push 2
push 0x212
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a360
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x2c], 0x100
je 0x10148932
movzx eax, word [esi + 0xc4]
push eax
push 0x213
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1014a340
add esp, 0x14
test eax, eax
je 0x10148f26
test dword [esi + 0x2c], 0x200
je 0x1014895f
push dword [esi + 0xd4]
lea eax, [esp + 0x18]
push 6
push 0x214
push edi
push eax
push esi
call fcn.1014a070
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x2c], 0x1000
je 0x1014897f
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.1014a640
add esp, 0xc
test eax, eax
je 0x10148f26
test dword [esi + 0x2c], 0x4000
je 0x101489b0
push dword [esi + 0xdc]
lea eax, [esp + 0x18]
push dword [esi + 0xd8]
push 0x14d
push edi
push eax
push esi
call fcn.10149240
add esp, 0x18
test eax, eax
je 0x10148f26
test dword [esi + 0x2c], 0x20000
je 0x101489d0
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.1014a4e0
add esp, 0xc
test eax, eax
je 0x10148f26
xor ebx, ebx
cmp dword [esi + 0x294], ebx
jbe 0x10148b14
nop
mov eax, dword [esi + 0x290]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
movzx eax, word [eax + 0x18]
cmp eax, 0x42
jb case.0x10148a2d.2
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 case.0x10148a2d.2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
dec eax
cmp eax, 0x27
ja case.0x10148a2d.2
movzx eax, byte [eax + 0x101491cc]
jmp dword [eax*4 + 0x101491b8]
lea eax, [esp + 0x28]
push eax
push dword [ecx]
push esi
call fcn.101448b0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10148a51
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x2c]
push edx
push ecx
movzx eax, word [eax]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149240
add esp, 0x18
jmp 0x10148aff
lea eax, [esp + 0x30]
push eax
push dword [ecx]
push esi
call fcn.101448b0
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.1014a340
add esp, 0x20
jmp 0x10148aff
lea eax, [esp + 0x34]
push eax
push dword [ecx]
push esi
call fcn.101448b0
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.10149ee0
add esp, 0x20
jmp 0x10148aff
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ecx]
push esi
call fcn.101448b0
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.1014a790
add esp, 0x28
test eax, eax
je 0x10148f26
inc ebx
cmp ebx, dword [esi + 0x294]
jb 0x101489e0
cmp dword [esi + 0xe0], 0
mov dword [esp + 0x18], 0
jbe 0x10148d2f
xor ebx, ebx
nop dword [eax + eax]
mov ecx, dword [esi + 0xe4]
mov edx, dword [ebx + ecx]
mov eax, dword [edx + 8]
dec eax
cmp eax, 0x11
ja case.0x10148b46.14
jmp dword [eax*4 + 0x101491f4]
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149240
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a790
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149260
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a320
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a360
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a4c0
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149f20
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a480
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149f00
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a460
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a070
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1014a4a0
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149db0
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149d90
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149dd0
jmp 0x10148d0c
push dword [ebx + ecx + 8]
movzx eax, word [edx]
push dword [ebx + ecx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10149df0
add esp, 0x18
test eax, eax
je 0x10148f26
mov eax, dword [esp + 0x18]
add ebx, 0xc
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0xe0]
jb 0x10148b30
test edi, edi
jne 0x10148e89
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.10037ba0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x10148e68
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10148d7a
mov ecx, dword [esi + 0x10]
or ecx, dword [esi + 0x14]
jne 0x10148da0
push esi
call fcn.10147d30
add esp, 4
test eax, eax
je 0x10148f26
jmp 0x10148da0
mov eax, dword [esi + 0x280]
push 2
push 0
push 0
push dword [esi + 0x274]
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 0x10148db2
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 0x10148dcd
lea eax, [eax + eax*2]
lea eax, [eax*4 + 6]
jmp 0x10148dd7
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 + 0x1d0], ecx
mov dword [esi + 0x1d4], eax
test edx, edx
jne 0x10148e08
mov eax, ecx
mov dword [esi + 0x1d4], edx
mov dword [esi + 0x1d0], eax
mov edx, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x1d0]
cmp edx, ebx
jb 0x10148e5e
ja 0x10148e1f
cmp ecx, dword [esi + 0x10]
jb 0x10148e5e
test edx, edx
jb 0x10148e5e
ja 0x10148e2b
cmp ecx, dword [esp + 0x1c]
jb 0x10148e5e
mov eax, ecx
and eax, 1
or eax, 0
je 0x10148e47
add ecx, 1
mov dword [esi + 0x1d0], ecx
adc edx, 0
mov dword [esi + 0x1d4], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10148360
inc word [esi + 0x1c0]
jmp 0x10148360
push str.Maximum_TIFF_file_size_exceeded
jmp 0x10148f13
push str.Out_of_memory
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.1015c990
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10148ef8
test dword [esi + 0x2c], 0x20000
je 0x10148ef8
mov eax, dword [esi + 0x1e0]
or eax, dword [esi + 0x1e4]
jne 0x10148ef8
mov edx, 0x14a
xor ecx, ecx
mov eax, edi
cmp word [edi], dx
je 0x10148ebe
lea eax, [eax + 0x18]
inc ecx
cmp word [eax], dx
jne 0x10148eb5
xor eax, eax
test dword [esi + 0xc], 0x80000
jne 0x10148eda
lea ecx, [ecx + ecx*2]
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0xa
jmp 0x10148ee9
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0x14
adc eax, 0
mov dword [esi + 0x1e0], ecx
mov dword [esi + 0x1e4], eax
push dword [esp + 0x1c]
call fcn.10037ba0
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x10148f40
push str.Out_of_memory
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.1015c990
add esp, 0xc
test edi, edi
je 0x101491ad
push edi
call fcn.10037bb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi + 0xc], 0x80000
jne 0x10149029
mov ax, word [esp + 0x14]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x10148f64
push ebx
call fcn.1015a8a0
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x10148ffa
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 0x10148f96
push ebx
call fcn.1015a8a0
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x10148faf
push ebx
call fcn.1015a8a0
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.10037be0
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x10148fd7
push ebx
call fcn.1015a8b0
add esp, 4
push 4
lea eax, [edi + 8]
add ebx, 4
push eax
push ebx
call fcn.10037be0
add esp, 0xc
add ebx, 4
add edi, 0x18
sub dword [esp + 0x18], 1
jne 0x10148f80
mov edi, dword [esp + 0x20]
test byte [esi + 0xc], 0x80
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
je 0x10149014
lea eax, [esp + 0x10]
push eax
call fcn.1015a8b0
add esp, 4
push 4
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10037be0
add esp, 0xc
jmp 0x101490ef
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], 0
test byte [esi + 0xc], 0x80
je 0x10149045
push ebx
call fcn.1015a8d0
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x101490d1
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 0x10149077
push ebx
call fcn.1015a8a0
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x10149090
push ebx
call fcn.1015a8a0
add esp, 4
push 8
add ebx, 2
push edi
push ebx
call fcn.10037be0
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x101490ae
push ebx
call fcn.1015a8d0
add esp, 4
push 8
lea eax, [edi + 8]
add ebx, 8
push eax
push ebx
call fcn.10037be0
add esp, 0xc
add ebx, 8
add edi, 0x18
sub dword [esp + 0x18], 1
jne 0x10149061
mov edi, dword [esp + 0x20]
push 8
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.10037be0
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x101490ef
push ebx
call fcn.1015a8d0
add esp, 4
push edi
call fcn.10037bb0
mov eax, dword [esi + 0x280]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x274]
call eax
add esp, 0x14
cmp eax, dword [esi + 0x10]
jne 0x10149188
cmp edx, dword [esi + 0x14]
jne 0x10149188
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x27c]
push ebx
push edi
push dword [esi + 0x274]
call eax
add esp, 0xc
cmp eax, ebx
je 0x1014914e
push str.IO_error_writing_directory
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.1015c990
jmp 0x101491a1
push edi
call fcn.10037bb0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x1014917c
push esi
call fcn.101449d0
mov ecx, dword [esi + 0x234]
and dword [esi + 0xc], 0xffdffff7
push esi
call ecx
push esi
call fcn.10144bc0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.IO_error_writing_directory
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.1015c990
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
call fcn.10037bb0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret